• Services
    LLM
    AI & ML
    Digital Healthcare
    Data Science
    DevOps
  • Products
    Jackalope
    EyeAI
  • Industries
    Healthcare
    Agriculture
    EdTech / LMS
    Retail / E-commerce
    Manufacturing
  • Resources
    Blog
    Case Studies
    Expert Guides
  • Company
    About us
    Careers
  • Contact us
logo
Services
LLMAI & MLDigital HealthcareData ScienceDevOps
Industries
HealthcareAgricultureEdTech / LMSRetail / E-commerceManufacturing
Case StudiesAbout UsBlogCareers
Our contacts
+380(66)54-32-579
sales@sciforce.tech

Get monthly digest of innovations

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Social Media:
Privacy Policy © 2026 Sciforce
5.0
Patient Similarity Networks Development cover

Patient Similarity Networks Development To Guide Clinical Decision-Making

Published: January 21, 2025
# Healthcare
# Data Science
# NLP
A private research organization focused on evaluating the safety and effectiveness of medications. Their goal is to use advanced medical data analytics and data harmonization in healthcare to support healthcare decisions and meet regulatory standards. For this project, they aimed to assess the safety of hydroxychloroquine, used alone or with azithromycin, for treating rheumatoid arthritis. The study focused on identifying short-term side effects and long-term risks, especially related to heart health and the use of multiple medications together. The client needed a data-driven approach, similar to methods used in federated healthcare data platforms, to fill gaps in existing evidence by combining different clinical data sources and applying patient similarity networks for clinical decision-making to identify patient groups with similar characteristics and address factors that could affect treatment outcomes.

Challenge

AI in Healthcare

Find out more with SciForce free playbook

1. Data Integration and Standardization

Integrating datasets from EHRs, genetic data, lab results, and patient-reported outcomes was challenging due to varying formats and qualities. Mismatched medical codes like ICD-10 and SNOMED CT caused inconsistencies, while missing data and conflicting details required resolution and tracking. These issues complicated the creation of a clean, unified dataset for analysis.

2. Patient Variability and Subgroup Representation

Differences in demographics (age, gender, ethnicity), medical histories (comorbidities, disease severity), medications, and lifestyle factors (e.g., smoking, activity levels) made accounting for variability challenging. Hidden factors, such as undiagnosed conditions or environmental influences, introduced biases that could distort results.

3. Patient Grouping and Similarity Analysis

Creating meaningful patient groupings was difficult due to variations in medical histories, lab results, genetic markers, symptoms, and social factors like income and access to care, limiting data-driven patient cohort matching in healthcare analytics. Many patients didn’t fit neatly into a single group, making clustering methods like k-means and hierarchical clustering challenging to implement effectively.

4. Reliable and Reproducible Results

Ensuring reliable results required handling complex data and addressing uncertainties. Missing data and confounding variables posed significant challenges, demanding advanced techniques like survival analysis and mixed-effects models. Probabilistic predictions added complexity, requiring external validation to confirm relevance in real-world scenarios.

5. Treatment Risk Analysis and Impact Assessment

Evaluating treatment risks was challenging due to differences in patient demographics, pre-existing conditions, concurrent medications, and external factors like seasonal trends and socioeconomic disparities. Issues like inconsistent adherence and variable data collection further complicated efforts to ensure findings reflected real-world conditions.

Solution

To address the challenges of evaluating hydroxychloroquine safety, we developed a comprehensive solution that integrates advanced data processing, analysis, and modeling techniques. The product offers tools to:

1) Integrate and Standardize Diverse Medical Data:

Consolidates large datasets from multiple sources (EHRs, genetic data, lab results, patient-reported outcomes) into the OMOP Common Data Model (CDM), enabling OMOP-based patient similarity analysis for real-world evidence. What that consolidation looks like at scale across hospital and insurance systems is shown in our PCORnet ETL pipeline on Snowflake, where heterogeneous feeds from 5 hospitals and 12 insurers were harmonized into a conformant CDM.

2) Build Patient Similarity Networks (PSNs):

Groups patients with similar characteristics (clinical, genetic, and phenotypic) using advanced patient clustering for treatment risk assessment, enhancing risk analysis and treatment outcome prediction.

01_PS.jpg

3) Analyze Risks and Long-Term Safety:

Provides detailed insights into treatment risks and safety, accounting for variability across patient subgroups and external factors.

4) Data-Driven Clinical Decision-Making Support:

Enables evidence-based findings for scientific publications and regulatory reports, facilitating clinical research automation.

02_PS.jpg

Features

1) Unified Patient Network Framework

Creates a streamlined system for identifying patient similarities by combining clinical histories, genetic data, phenotypic traits, and social determinants of health (SDOH). It integrates this information from various sources into a unified network that supports precise and meaningful analysis.

2) Context-Aware Clustering Algorithms

Uses advanced clustering methods like hierarchical, density-based, and k-means to group patients accurately. These algorithms combine data such as clinical histories, genetic markers, phenotypic traits, and SDOH to create detailed and practical health profiles.

3) Confounder-Resilient Matching System

Uses methods like propensity score matching, inverse probability weighting, and stratification to enable confounder-aware patient matching for drug safety studies. These techniques reduce bias, improve fairness in comparisons, and ensure results are precise and relevant for clinical decisions.

4) Dynamic Sensitivity Exploration

Performs thorough sensitivity analyses, including E-values, tipping point scenarios, and leave-one-out tests, to ensure findings are stable and reliable. It highlights potential weaknesses caused by unmeasured confounders, checks the validity of model assumptions, and adjusts methods to address variations and complexities in real-world data.

5) Insight-Enriched Clinical Tools

Features interactive dashboards for subgroup-specific risk assessments, predictive models for treatment outcomes, scenario-driven decision support tools, detailed effectiveness reports, and a proactive alert system for potential adverse events.

Development Journey

1. Iterative Methodology Refinement

  • Began with clustering approaches based solely on demographic data, but low accuracy necessitated incorporating genetic and phenotypic data to refine models.
  • Adjusted methods repeatedly to address unexpected data inconsistencies, ensuring robustness.

2. Adaptation to Rheumatoid Arthritis Patients

  • Factored in comorbidities, such as cardiovascular conditions, by adding specific adjustment coefficients.
  • Collaborated with clinicians to validate and refine these adjustments for clinical relevance.

3. Multidisciplinary Team Coordination

  • Brought together experts from clinical medicine, statistics, and informatics to balance rigorous statistical analysis with practical usability.
  • Facilitated continuous communication to align objectives and resolve interdisciplinary challenges.

4. Addressing Key Data Challenges

  • Terminology Mismatches: Automating mapping through SQL and OHDSI Usagi tools to resolve coding differences between datasets (e.g., SNOMED CT and ICD-10). The underlying methodology for attribute-based concept alignment across classification systems is documented in our medical terms mapping case, where ICD-10-PCS and LOINC concepts were mapped to OMOP vocabularies by decomposing them into atomic attributes.
  • Underrepresented Subgroups: Applied reweighting techniques and generative methods to model characteristics of underrepresented patient groups.
  • Seasonality Effects: Used STL (Seasonal and Trend decomposition using Loess) to remove seasonal components from data and added seasonal indicators to statistical models to capture residual effects.

Technical Highlights

Clinical Data Integration and Standardization:

OMOP CDM mapping automation:

Standardizes and integrates diverse medical data, including EHRs, laboratory results, and genetic profiles, ensuring consistency and compatibility for robust analysis.

OHDSI Framework Tools:

  • Rabbit-in-a-Hat: Designs and implements ETL processes to streamline the integration of complex datasets from multiple sources.
  • Data Quality Dashboard: Automates the validation and quality assessment of data inputs, ensuring accuracy and reliability.

Data Processing, Analysis, and Sensitivity Assessment:

Python Healthcare Analytics::

  • Pandas and NumPy: Handle data manipulation, transformation, and numerical computations efficiently.
  • Scikit-learn: Provides tools for clustering (e.g., K-means, hierarchical), dimensionality reduction (e.g., PCA, t-SNE), machine learning for healthcare, and predictive modeling.
  • Statsmodels: Facilitates statistical modeling, hypothesis testing, mixed-effects models, and sensitivity analyses.
  • Lifelines: Supports survival and time-to-event analysis for deeper insights into treatment outcomes.
  • SciPy: Offers advanced computations and similarity metrics like cosine similarity and Euclidean distance.
  • spaCy and NLTK: Enable NLP for clinical text for tasks such as tokenization, named entity recognition, and analysis of unstructured data.

R Packages:

  • EValue: Calculates E-values to assess robustness against unmeasured confounders.
  • boot: Performs bootstrap resampling for estimating confidence intervals and validating model stability.

SQL:

  • Efficiently queries and manages large-scale relational datasets, supporting data integration and analysis.

Visualization and Dashboard Development:

Python Libraries:

  • Dash: Creates interactive, web-based dashboards for data exploration and visualization.
  • Plotly: Delivers high-quality visualizations integrated seamlessly into dashboards.
  • Flask: Supports server-side integration and API deployment for dashboard hosting.

Deployment and Hosting:

AWS:

  • Provides scalable, secure hosting for dashboards and AI in healthcare analytics pipelines, ensuring accessibility and reliability.

Impact

Starting Point (Point A):

At the beginning of the project, the client faced significant challenges:

  • Data came from heterogeneous sources, including EHRs, lab results, and genetic profiles, and lacked standardization.
  • Missing, incomplete, and conflicting data due to different terminologies (e.g., SNOMED CT vs. ICD-10) hindered analysis.
  • No clear analytical framework existed to accurately evaluate the risks and efficacy of hydroxychloroquine.
  • The client lacked tools to group patients with similar characteristics or account for critical risk factors.

Final Outcome (Point B):

The project delivered an integrated solution centered on Patient Similarity Networks (PSNs), providing:

  • Accurate Patient Grouping: PSNs formed patient cohorts with similar demographic, phenotypic, and genetic traits for precise risk and treatment analysis.
  • Interactive Dashboards: Enabled data visualization, subgroup analysis, AI-assisted patient risk prediction, and scenario modeling for both short- and long-term treatment effects.
  • Validated Findings: Demonstrated short-term safety of hydroxychloroquine while identifying potential long-term risks, including cardiovascular mortality.
  • Foundation for Research: Established a robust evidence base for personalized medicine analytics and future studies.

RELATED CASE STUDIES

View all Case Studies
Computable Phenotyping Using OMOP And Human-Governed LLM Assistance

Our client was a U.S.-based, multi-institutional healthcare research initiative developing an AI-ready clinical data ecosystem for critical-care research. The initiative brought together several institutional data sources with differences in clinical workflows, source systems, coding practices, data availability, and OMOP ETL implementations. The client needed a systematic way to translate complex clinical research questions into reproducible computable phenotypes that could support cohort discovery, population characterization, outcome definition, and downstream analytical and machine-learning workflows. The project focused on structured electronic health record data represented primarily through the OMOP Condition, Procedure, Measurement, Observation, Device, Drug, Specimen and Visit domains. To preserve confidentiality, the organization and individual clinical use cases are not disclosed.

# Healthcare
# Data Science
# LLM
End-to-End ETL on Snowflake cover smallFrom Raw Claims and Clinical Data to PCORnet CDM: End-to-End ETL on Snowflake

Our client, a U.S. health insurer collaborating with multiple hospital systems, aimed to aggregate and harmonize anonymized claims and clinical data in the PCORnet Common Data Model (CDM) to support large-scale outcomes research and operational analytics. The incoming medical and billing feeds came from heterogeneous hospital and payer systems with inconsistent schemas, variable data quality, and no unified governance. The client asked SciForce to design and implement a sustainable, cloud-native ETL/ELT pipeline on Snowflake that would: 1) Continuously integrate raw source feeds into a centralized Snowflake data platform; 2) Transform them into a PCORnet-conformant CDM with strong data quality guarantees; 3) Enable near real-time analytics for patient demand forecasting, capacity planning, and revenue cycle optimization.

# Healthcare
# AI / ML
# Big Data
# Data Science
Sensor-Based Fall Detection and Monitoring for Patient SafetyReal-Time Fall Detection System for Elderly Care Facilities

The client was a residential care facility for elderly patients who were at risk of falling, relying on wearable sensor fall detection for assisted living facilities to reduce incidents and response time. Each resident wore a small motion-tracking device as part of a wearable health monitoring setup that measured their movements in three directions. Their rooms were also equipped with AI in assisted living facilities that monitored temperature, humidity, light, noise levels, and whether someone was in or out of bed. The goal was to build an AI fall detection system that could automatically detect when someone had fallen and notify staff quickly. The team focused on understanding how movement patterns could indicate a fall and explored how room data could help add context in the future.

# Healthcare
# Tech
# AI / ML
# Big Data
# Data Science
OMOP to FHIR Conversion: Scalable Healthcare Data PipelineAutomating Research-to-Care Data Integration via OMOP and FHIR

Our client is a university hospital based in Germany, aimed to enhance cross-institutional standardized healthcare data exchange through structured health data pipelines. Multiple institutions involved in observational research sought integrating observational research data into clinical systems via FHIR, including risk models and disease prevalence metrics, into operational clinical workflows. To support this goal, the client required a conversion pipeline from OMOP CDM (used in research analytics) to HL7 FHIR (used in clinical applications) to enable real-time data AI for healthcare data interoperability.

# Healthcare
# AI / ML
# Big Data
# Data Science