Skip to content

SaeMind/cms-physician-network-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Medicare Specialty Referral Network Analysis

Python NetworkX License

Quantifying ACO Revenue Leakage Through Healthcare Network Graph Analysis


Project Overview

This project analyzes Medicare specialty referral patterns using network graph theory to:

  • Identify key opinion leaders in healthcare referral networks
  • Quantify revenue leakage from out-of-network referrals
  • Prioritize partnership opportunities for Accountable Care Organizations (ACOs)
  • Visualize care coordination pathways

Key Results:

  • 93-specialty network analyzed (536K providers, 9.6M service records)
  • $18.4B annual revenue leakage quantified (52.8% out-of-network rate)
  • Ophthalmology and Dermatology identified as $7.6B partnership opportunity

Project Architecture

cms-physician-network-analysis/
├── data/
│   ├── Medicare_Physician_..._2023.csv    # Raw CMS data (not in repo)
│   ├── specialty_summary.csv              # Aggregated specialty metrics
│   ├── specialty_network.graphml          # Network graph structure
│   ├── centrality_analysis.csv            # Node centrality scores
│   └── leakage_analysis_summary.csv       # ACO leakage metrics
├── notebooks/
│   ├── 01_data_exploration.ipynb
│   ├── 02_specialty_network_construction.ipynb
│   ├── 03_network_analysis.ipynb
│   └── 04_visualization_dashboard.ipynb
├── src/                                   # Modular Python source files
├── visualizations/
│   ├── network_graph.html                 # Force-directed network
│   ├── influence_ranking.html             # Top specialties bar chart
│   ├── leakage_sankey.html                # Referral flow diagram
│   └── opportunity_matrix.html            # Partnership prioritization
├── docs/
│   └── Executive_Summary.md              # Full case study report
├── .gitattributes
├── requirements.txt
└── README.md

Quick Start

Prerequisites

  • Python 3.10+
  • pip or conda package manager

Installation

# Clone repository
git clone https://github.com/SaeMind/cms-physician-network-analysis.git
cd cms-physician-network-analysis

# Create virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

Data Acquisition

  1. Download CMS Medicare Provider Utilization dataset from data.cms.gov
  2. Place CSV file in data/ directory
  3. Update filepath in notebook 02_specialty_network_construction.ipynb

Run Analysis

jupyter notebook
# Execute notebooks in sequence: 01 → 02 → 03 → 04

Key Findings

Network Structure

  • 93 specialties representing Primary Care, Specialists, Surgical, Diagnostic, and Hospital-Based categories
  • 147 referral pathways based on empirical care patterns
  • Network density: 0.0172 (sparse, realistic healthcare referral structure)

Most Influential Specialties

Rank Specialty Influence Score
1 Diagnostic Radiology 0.500
2 Diagnostic Pathology 0.460
3 Surgical Oncology 0.395

ACO Revenue Leakage (10-Specialty Network)

  • 52.8% referral leakage rate
  • $18.4B estimated annual revenue loss
  • Primary Care drives 86% of leakage

Top Partnership Opportunities

Specialty Revenue Opportunity
Ophthalmology $4.3B
Dermatology $3.3B
Urology $1.9B

Methodology

1. Data Preparation

  • 10% stratified sample (966K records) from 9.6M total
  • Specialty standardization and categorization
  • Provider-level aggregation to specialty metrics

2. Network Construction

  • Nodes: Medical specialties (filtered for minimum 10 providers)
  • Edges: Directed referral pathways based on care patterns
  • Weights: Estimated referral volume (service correlation × 20% referral rate)

3. Graph Analysis

  • PageRank: Overall network importance
  • Betweenness Centrality: Care coordination roles
  • Degree Centrality: Direct referral connections
  • Composite Influence Score: Weighted combination of metrics

4. Leakage Quantification

  • Simulated 10-specialty ACO network
  • Calculated in-network vs. out-of-network referral volume
  • Revenue loss estimation ($2,500 per referral)

Visualizations

All visualizations are interactive HTML files rendered with Plotly:

  • Network Graph: Force-directed layout — node size = influence score, node color = specialty category
  • Influence Ranking: Horizontal bar chart of top 15 specialties by composite influence score
  • Leakage Sankey: Flow diagram showing ACO source → external specialty destination
  • Opportunity Matrix: Scatter plot of network influence vs. revenue opportunity

Technical Stack

Component Technology
Language Python 3.10+
Graph Analysis NetworkX 3.0+
Data Manipulation Pandas, NumPy
Visualization Plotly, Matplotlib, Seaborn
Notebooks Jupyter
Network Storage GraphML format

Key Insights for Healthcare Leaders

For ACO Executives: Quantifies revenue leakage with precision, providing an objective framework for partnership prioritization and data-driven network expansion decisions.

For Clinical Operations: Identifies high-leakage referral sources, maps care coordination pathways, and supports EMR referral management optimization.

For Strategic Planning: Competitive intelligence on specialty referral patterns, ROI projections for practice acquisitions, and network gap analysis.


Future Enhancements

  1. Physician-level analysis (if CMS shared patient data available)
  2. Geographic clustering (state and MSA-level patterns)
  3. Temporal trends (multi-year longitudinal analysis)
  4. Predictive modeling (ML for referral behavior forecasting)
  5. Cost integration (episode-based cost data for ROI precision)

Contact

Andrew Lee Clinical Data Science | Healthcare Network Analytics


Acknowledgments

  • Data Source: Centers for Medicare & Medicaid Services (CMS)
  • Inspiration: ACO network optimization challenges in value-based care
  • Tools: NetworkX community for graph analysis algorithms

License

MIT License — see LICENSE file for details


Citation

Lee, A. (2026). Medicare Specialty Referral Network Analysis.
GitHub repository: https://github.com/SaeMind/cms-physician-network-analysis

About

ACO revenue leakage quantification via Medicare specialty referral network analysis (NetworkX, Python)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors