← All case studies
Classical MLHealthcarePersivia · 2022

Clinical NLP & Risk Models

Clinical-note segmentation and disease recognition, plus claim-cost and heart-failure readmission models (70% AUC).

500Kpatient records coded to ICD-10/HCC

Context

A population-health platform held clinical notes, claims and EHR data in separate JSON, SQL and unstructured stores.

Challenge

Extract structured diagnoses from free-text notes and predict cost and readmission risk early enough to intervene.

My role

Built the ingestion layer, NLP pipeline and risk models, and reported KPIs to the CEO and CTO.

Architecture

How the system fits together

Clinical NLP & Risk Models architecture diagramClinical notes500K recordsClaims & EHRJSON · SQLNote segmentationrules + spaCyUnified layeranalytics storeDisease NERRisk modelscost · readmissionICD-10 / HCCfuzzy mappingRisk flags & KPIscare teams · execs
External sourceData storeServiceModel / AIUser / outputTelemetry / async

Simplified for public sharing; client-specific details are omitted.

Approach

Key engineering decisions

  1. 01

    Unified analytics layer

    JSON, SQL and unstructured repositories were merged into one queryable layer.

  2. 02

    Clinical NLP

    Notes are segmented with rules and spaCy, diseases recognised with NER, and mapped to ICD-10 and HCC codes using approximate matching.

  3. 03

    Risk models

    Claim-cost forecasts (80% accuracy small-bill, 65% high-bill) and 30-day heart-failure readmission prediction (70% AUC) flag patients for proactive care.