File size: 5,163 Bytes
0da4788
2b488b7
ca6d198
0da4788
 
 
c1c9690
0da4788
c1c9690
0da4788
 
c1c9690
 
0da4788
 
67d0075
 
 
 
5587ed5
67d0075
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5587ed5
67d0075
 
 
 
 
 
 
 
 
 
 
 
5587ed5
67d0075
 
 
 
 
 
5587ed5
67d0075
 
 
 
 
 
5587ed5
67d0075
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
---
title: Vertebro_Duplicate
emoji: 🦴
colorFrom: yellow
colorTo: purple
sdk: gradio
sdk_version: 5.49.1
app_file: app.py
pinned: true
hf_oauth: true
hf_oauth_scopes:
- inference-api
short_description: AI-driven spine billing and operative note analyzer
---

# 🦴 Vertebro — Automated Spine CPT Billing & Operative Note NLP

**Live Demo:** [Vertebro (Hugging Face Space)](https://huggingface.co/spaces/Slaiwala/Vertebro)  
**Developed by:** Shubham Laiwala (Nazarian Lab, BIDMC)  
**Advisor:** Dr. Jason Pittman, Dr. Ara Nazarian 
**Version:** `v1.0 — CPT Logic Core: deterministic spine billing inference`

---

## 💡 Overview

**Vertebro** is an intelligent, rule-based NLP engine that automatically interprets *spine operative notes* and suggests the most relevant **CPT billing codes**, **modifiers**, and **rationales** — all while maintaining payer-aware logic (Medicare, BCBS, Aetna, etc.).

It’s built for:
- **Research:** Rapid auditing of spine operative notes  
- **Billing validation:** Cross-checking documentation against CPT standards  
- **Clinical education:** Understanding how procedural phrasing drives billing logic  

The underlying logic is **deterministic, explainable**, and optimized for cervical, thoracic, and lumbar spine cases.

---

## 🧠 Key Features

| Feature | Description |
|----------|--------------|
| **CPT Suggestion Engine** | Extracts primary and add-on CPT codes from free-text operative notes |
| **Payer Logic** | Adjusts code and modifier recommendations for each payer |
| **Multi-Region Support** | Recognizes cervical, thoracic, and lumbar levels |
| **Explainable Outputs** | Every CPT code includes rationale and confidence score |
| **Modifier Awareness** | Detects 22, 50, 58, 78, 79, 82, and laterality codes automatically |
| **No PHI Retention** | Inputs are transient and never stored or logged |

---

## 🧩 How to Use Vertebro

1. **Open the app:** [Vertebro on Hugging Face](https://huggingface.co/spaces/Slaiwala/Vertebro)  
2. **Paste or type an operative note** (e.g., “Left-sided TLIF L4–L5 with pedicle screws and interbody cage; posterolateral fusion performed. Navigation used.”)  
3. **Select the payer** (e.g., Medicare, BCBS, Aetna)  
4. **Click “Submit.”**  
5. **Review results:**
   - CPT suggestions  
   - Descriptions  
   - Rationales  
   - Categories (fusion, instrumentation, graft, etc.)  
   - Confidence levels  

💬 **Please feel free to test real-life, de-identified operative note examples** from your own cases.  
The more diverse the phrasing, the better we can evaluate the model’s robustness.

---

## 🔍 Example Operative Notes to Try

### 1. Anterior Cervical Discectomy and Fusion (ACDF)
Anterior cervical discectomy and fusion performed at C5–C6 and C6–C7.
PEEK cages placed at both levels with anterior plate fixation.
 

---

### 2. Transforaminal Lumbar Interbody Fusion (TLIF)
Left-sided TLIF L4–L5 with pedicle screws and interbody cage.
Posterolateral fusion performed with local autograft.

---

### 3. Posterior Cervical Fusion with Instrumentation
Posterior cervical fusion from C3–C5 with lateral mass screws and rods.
Local autograft used for fusion.


---

### 4. Hardware Removal
Removal of posterior instrumentation at L2–L4.
No reinstrumentation performed.
 

---

### 5. Decompression Only
L3–L4 decompression with partial medial facetectomy and foraminotomy.
Microscope used.
  

---

## 🧾 Feedback Workflow (Dr. Pittman)

Every time you use **Vertebro**, please:
1. Review the CPT output table.  
2. Compare it with the *true billing sheet or expected codes*.  
3. Provide **feedback** such as:  
   - ✅ “Correct CPTs and rationale.”  
   - ⚠️ “Partially correct — missing code X or modifier Y.”  
   - ❌ “Incorrect — CPT Z should not appear.”  
4. Optionally add notes on **phrasing not recognized** (e.g., “MIS lateral approach not detected”).  

This feedback will be used to iteratively refine and retrain the rule logic and future ML models.

---

## 📈 Testing & Exploration Areas

| Region | Case Type | Focus |
|--------|------------|--------|
| Cervical | ACDF, CDA, Posterior Fusion | Fusion + anterior plating logic |
| Thoracic | Decompression, Instrumentation | Mid-thoracic handling |
| Lumbar | TLIF, PLIF, ALIF, Post-lat Fusion | Interbody vs posterolateral overlap |
| Any | Revision, Hardware Removal | 22849, 22852, staged operations |
| Multi-Level | Complex constructs | Code chaining: 22552, 22614 |
| Graft / Instrumentation | Autograft, Allograft, Plate/Rods | Add-ons: 20936, 20930, 22842 |

---

## 📬 Contact

For questions, case feedback, or feature suggestions, please reach out to:  
**📧** `slaiwala@bidmc.harvard.edu`  
**👤** Developer: *Shubham Laiwala*  
**🏥** Affiliation: Nazarian Lab, BIDMC / Harvard Medical School  

---

### 🩺 Short Summary (for Hugging Face “About” sidebar)

> **Vertebro** automatically suggests CPT codes from spine operative notes using a rule-based NLP engine.  
> Designed for research, billing validation, and clinical education.  
> *Feel free to test real, de-identified operative notes!*