structuring medical records with apache stanbol
play

Structuring Medical Records with Apache Stanbol Rafa Haro, Senior - PowerPoint PPT Presentation

Structuring Medical Records with Apache Stanbol Rafa Haro, Senior Software Engineer, Athento Antonio Prez Morales, Senior Software Engineer, Ixxus Committer, PMC Member @ Apache Stanbol, Apache ManifoldCF Topics : Document Analysis,


  1. Structuring Medical Records with Apache Stanbol Rafa Haro, Senior Software Engineer, Athento Antonio Pérez Morales, Senior Software Engineer, Ixxus 


  2. • Committer, PMC Member @ Apache Stanbol, Apache ManifoldCF • Topics : Document Analysis, NLP, Machine Learning, Semantic Technologies, ECM • Committer @ Apache Stanbol, Apache ManifoldCF • Topics : ECM, Semantic Search, ETL, Machine Learning

  3. Apache Stanbol provides a set of reusable components for semantic content management. It extends existing CMSs with a number of semantic services. Traditional Semantic CMS

  4. Software Architecture for Semantically Enabled CM and ECM systems

  5. Apache Stanbol Story • Started within FP7 European Project IKS (Interactive Knowledge Stack. 2009 - 2012) 
 • IKS project brought together an Open Source Community for Defining and Building Platforms in the Semantic CMS Space 
 • Incubated in November 2010 
 • Successfully promoted within CMS and ECM industry through IKS Early Adopters Program 
 • Graduated to Top-Level Apache Project in October 2012

  6. What is a Semantic CMS? Traditional CMS Semantic CMS Atomic Unit: Document Atomic Unit: Entity Properties as meta-data Semantic meta-data (key-value schemas) (RDF) Keyword Search Semantic Search Document Management Knowledge Management Document Types Entity Management Document Workflow Ontologies Source: What Apache Stanbol Can Do for You?. Fabian Christ. ApacheCon Europe 2012

  7. Key Points • Designed to bring Semantic Technologies to existing CMS 
 • Non-intrusive set of RESTful ‘Semantic’ Services 
 • Extremely Modular : Use only the modules you need 
 • Main Features: • Multilingual Content Enhancement : Structure Content through Semantic Metadata 
 • Knowledge Bases Management 
 • Knowledge Models and Reasoning 
 • Semantic Indexing and Search

  8. Stanbol Components • Stanbol components provide: • RESTful API • Java APIs and OSGi services • Stanbol components do NOT depend on each other • however they can be easily combined to Apache Apache Apache Apache Stanbol Stanbol Stanbol Stanbol Ontology Manager Enhancer EntityHub Reasoners Apache Apache Apache Stanbol Stanbol Stanbol Rules ContentHub FactStore Stanbol Enhancement Engines Apache Apache Stanbol Stanbol CMS Adapter Component Layer

  9. Stanbol Components (II) • Enhancer : Extracts Knowledge from unstructured parsed content 
 • EntityHub : Manage Domain Entities and Topics (Knowledge Bases) 
 • ContentHub: Semantic Indexing / Search over your - semantic enhanced - Content 
 • CMS Adapter : Sync. your CMS with Apache Stanbol (JCR/CMIS) 
 • Ontology Manager : Manage you formal Domain Knowledge 
 • Reasoners & Rules : Apply Domain Knowledge to improve / validate extracted Information. Refactor / refine knowledge to align it to public schemas such as schema.org

  10. Built on Top of Apache…. • Apache Felix as OSGi environment • Apache Sling launchers and OSGi Tools • Apache Maven for building • Apache Clerezza as RDF Framework • Apache Jena as TripleStore • Apache Solr for Knowledge Bases Management • Apache Tika for converting input • Apache OpenNLP for NLP Processing

  11. Integration Scenarios • Stand-Alone Server (Stanbol Launchers) • Web Application (Servlet-Container) • Embedded within an OSGi environment Source: What Apache Stanbol Can Do for You?. Fabian Christ. ApacheCon Europe 2012

  12. Project Current Status Apache Stanbol IKS Project Ending Apache Stanbol Apache Stanbol Incubation Graduation 0.9.0-incubating (Dec 2012) 0.12.0 1.0.0 (Nov 2010) (October 2012) (Aug 2012) (March 2014) (October 2016) Contributions (commits) to Trunk Since Incubation

  13. Project Current Status (II) • 22 PMC Members (Last Addition Jul 2016) • 26 Committers (Last Addition May 2015) • 3-5 active committers last 2 years • dev@stanbol.apache.org: 228 subscribers • Activity has been gradually decreasing • 3 major releases Source: Apache Stanbol Committee Report Helper (https://reporter.apache.org/?stanbol)

  14. Stanbol Enhancer RDF

  15. Stanbol Enhancer (II)

  16. Stanbol Enhancer (III)

  17. Stanbol Enhancement Chains • Define how Content is processed by the Enhancer through an ExecutionPlan • Different Implementations: • ListChain : in order sequential enhancement engines execution. Parallel Execution of engines not supported • WeightedChain : ExecutionPlan is calculated using the engines order metadata. Parallel Execution of engines allowed • API: • /enhancer : executes the default chain • /enhancer/chain/{chain-name} : executes a concrete named chain • /enhancer/engine/{engine-name} : executes a concrete named engine

  18. Current Enhancement Engines • Preprocessing • Tika Engine • content type detection • text extraction from several document formats • metadata extraction from several document formats • Natural Language Processing • Language Detection (different implementations) • Sentence Detection (OpenNLP, SmartCN, REST) • Tokenizer (OpenNLP, SmartCN, REST) • POS Tagging (OpenNLP, REST) • Chunking (OpenNLP, REST) • NER (OpenNLP, OpenCalais, REST) • Entity Linking • Named Entity Linking • EntityHub Linking Engine • FST (Lucene Finit State Transducer) Linking Engine • Entity Co-mention • Commercial Engines (OpenCalais, Zemanta, CELI…) • Sentiment Analysis • Disambiguation • DBPedia Spotlight • Solr MLT based • PostProcessing : • Dereferencing

  19. Stanbol EntityHub

  20. 
 
 Stanbol EntityHub (II) • Manage Multiple Entity Sources (Knowledge Bases) • Allows Fast Entity-Lookup using Apache Solr 
 • Referenced Site (Remote LD + Local Caches) Vs Managed Site (Entity CRUD Api over manually configured Sites) 
 • API: • Query for Entities (used by Entity Linking Engines) 
 curl -X POST -d "name=lyon&limit=10" \ http://localhost:8080/entityhub/site/dbpedia/find • CRUD for Managed Sites friend-names = foaf:knows/foaf:name • LDPath support for: • Graph Path Retrieval (Used for dereferencing) • Schema Translation schema:name = rdfs:label[@en]; • Simple Reasoning

  21. Use Case: Hexin Project - Structuring Medical Records • R&D Project for Sergas (Galician Public Health Office) • Clinical Data Analysis Platform for supporting: • Clinical Assistance • Epidemiology studies • Medical Research • Big Data approach for analyzing both structured historical clinical data and unstructured medical records • Medical Records are written in Spanish and Galician

  22. Hexin: Architecture Event Detection New Case Reference Cases Process Detection Process BIG DATA (HDFS + PatientId HIVE) Date BI Structured Events Semantic Events URX Symptoms: Rules • Cough ETL • Unrest Data Source Cassandra Unrest Cough Fever>38 Patient Validation Analysis

  23. Hexin: Semantic Tagging

  24. Hexin: Objective “Paciente diabético desde los 5 años y con EPOC moderada grado 2 de la GOLD ”

  25. Hexin:Solution Design • Structure Medical Records using Apache Stanbol Enhancer • Custom Ontology : • Symptoms • Diseases • Diagnosis Tests • Family and Personal History • Custom Enhancement Chain : • Language Detection > NLP > Entity Linking > Negation Detection > Fact Extraction

  26. Hexin: Ontology

  27. Hexin: Ontology Indexing • For supporting the Entity Linking process against Hexin Ontology, an EntityHub site must be created • 2 options: • ManagedSite : full CRUD storage <-> DYNAMIC • ReferencedSite : READ-ONLY remote site + local index • Stanbol EntityHub Indexing Tool : hexin:* • RDF —> JenaTDB —> Solr Index hexin:label > rdfs:label • Configure Custom Namespaces, Mappings and Properties • Generates an OSGi Bundle with the Yard and YardSite default configurations • Copy the index to Stanbol /datafiles folder and install the bundle using Apache Felix OSGi Web Console

  28. Hexin: Enhancement Chain Lang. Detect. OpenNLP-Sent. OpenNLP-Token OpenNLP-POS OpenNLP-Chunker Hexin Linking Fact Extract. Negex Custom Hexin Engine . Implemented for the project Entity Linking Engine. Available in Stanbol with a Custom Configuration for this use case NLP Engines. Available in Stanbol. Default Configuration Pre-Processing Engine. Available in Stanbol

  29. Hexin: Linking

  30. Hexin: Linking (II)

  31. Hexin: Custom Engines @Component @Service OSGi bundle public class MyEngine implements EnhancementEngine { Maven build MANIFEST.MF @Activate OSGi 
 public void activate(ComponentContext c) { metadata // initialize, configure, ... maven-bundle- } plugin registered by OSGi public int canEnhance(ContentItem item) { adds OSGI metadata if(...item matches our expectations...) { MyEngine 
 return ENHANCE_SYNCHRONOUS; Service } else { maven-scr-plugin return CANNOT_ENHANCE; adds services metadata } } public void computeEnhancements(ContentItem item) { Install in 
 // run the engine and add results to item’s // RDF graph based on the item’s InputStream Stanbol 
 } no restart 
 } needed

  32. NLP at Apache Stanbol

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend