RadShield is an integrated clinical decision support system designed for risk assessment and patient care management in prostate cancer radiotherapy. The system integrates multi-dimensional information including clinical factors, genomic markers, and dosimetric parameters to provide real-time radiation proctitis risk prediction and personalized treatment recommendations.
- Precise Risk Assessment: Integrates multi-dimensional risk factors to provide acute and chronic toxicity risk stratification
- Clinical Decision Support: Automatically generates optimized treatment recommendations based on risk assessment results
- Patient Engagement: Tracks post-treatment symptom changes through electronic patient-reported outcomes (ePRO)
- Visual Analytics: Intuitive dashboards and charts to help clinicians quickly understand patient risk status
-
Multi-dimensional Risk Factor Integration
- Clinical factors: Diabetes, Inflammatory Bowel Disease (IBD), Anticoagulant use, Smoking history
- Genomic markers: Mutation detection for ATM, NBN, LIG1, LIG4, PCNA, REV3L, POLH, XPC
- Dosimetric parameters: Rectal V70, V50, and other DVH metrics
- Treatment modalities: VMAT, IMRT, Proton Therapy
-
Risk Stratification
- Acute Toxicity Risk: Assesses risk during treatment and up to 3 months post-treatment
- Late Toxicity Risk: Assesses long-term risk 6 months or more after treatment
- Risk levels: Low risk (< 30%), Intermediate risk (30-60%), High risk (> 60%)
-
Risk Gauge Charts
- Real-time display of acute and chronic risk scores (0-100%)
- Color coding: Green (low risk), Orange (intermediate risk), Red (high risk)
- Alert threshold indicator (60% as high-risk threshold)
-
Population Risk Positioning
- Displays patient's risk distribution position among 1,200 prostate cancer radiotherapy patients
- Normal distribution curve visualization
- Model confidence display (87.4%)
-
Multi-dimensional Risk Radar Chart
- Five-dimensional assessment: Dosimetry, Genomics, Comorbidities, Medications, Age
- Intuitive presentation of relative intensity across risk dimensions
The system automatically generates the following recommendations based on risk assessment results:
-
High-Risk Alerts
- Recommend use of rectal spacer gel (SpaceOAR) to increase physical distance
- Re-optimize treatment plan: Limit Rectum V70 < 15%
-
Genomic Sensitivity Recommendations
- When high radiosensitivity gene mutations are detected, consider reducing single-fraction dose or switching to proton therapy
-
Bleeding Risk Management
- When anticoagulants are used and acute risk > 40%, recommend cardiology consultation to assess temporary suspension of anticoagulants
- PDF Report Download
- Includes patient information, risk stratification, key risk drivers, and optimization recommendations
- Supports export to Electronic Medical Record (EMR) systems
- Report content can be edited before generation
Patients can report the following symptoms through the system:
-
Rectal Bleeding Status
- None, Mild (on tissue), Severe (dripping)
-
Pain Score
- 0-10 scale (0 = no pain, 10 = most severe pain)
-
Bowel Urgency
- 0-10 scale (0 = none, 10 = very severe)
-
Daily Bowel Movement Frequency
- Numerical input (0-20 times)
-
Historical Trend Charts
- Pain score trend line chart
- Bowel urgency trend line chart
- Historical record table
-
Risk Alerts
- System automatically alerts when pain score β₯ 7 or bleeding is "severe"
- Recommends early referral to colorectal surgery department
- Recommended Reading Content
- Low-residue diet guidelines
- Probiotic supplementation recommendations
- Personalized patient education information based on patient symptoms
risk_eval/
βββ integrated_app.py # Main application (Streamlit)
βββ logic.py # Core risk calculation logic
βββ styles.py # Custom CSS styles
βββ test.py # Python prototype version
βββ test.html # HTML prototype version
βββ README.md # This file
- Streamlit main application
- Integrates Clinical Decision Support and ePRO modes
- UI/UX design and interaction logic
calculate_risk(): Core risk calculation functioncreate_population_chart(): Population risk positioning chart generationcreate_pdf(): PDF report generation engine
- Custom CSS styles
- Modern UI design (gradient backgrounds, animation effects)
- Python 3.8+
- Streamlit
- Plotly
- NumPy
- Pandas
- FPDF (optional, for PDF report generation)
- Install Dependencies
pip install streamlit plotly numpy pandas fpdf- Launch Application
streamlit run risk_eval/integrated_app.pyOr use the full path:
streamlit run "/Users/vince/model test/risk_eval/integrated_app.py"- Open Browser
The system will automatically open in the default browser, typically at http://localhost:8501
-
Select Mode
- Choose "Clinical Decision Support" in the sidebar
-
Enter Patient Information
- Clinical Profile: Enter patient name, ID, risk factors (diabetes, IBD, anticoagulants, smoking history)
- Radiogenomics Panel: Check relevant gene mutations
- Dosimetry (DVH): Select treatment modality, adjust Rectum V70 and V50 parameters
-
View Risk Assessment Results
- Risk Dashboard: View acute and chronic risk scores
- Population Study: View patient's risk position in the population
- Analysis Detail: View multi-dimensional risk radar chart and key risk factors
- Decision Report: Preview and download PDF report
-
Select Mode
- Choose "Patient-Reported Outcomes (ePRO)" in the sidebar
-
Enter Patient ID
- Enter patient ID in the sidebar
-
Complete Symptom Report
- Fill in today's symptoms in the "Symptom Report (ePRO)" tab
- Click the "Submit Report" button
-
View Historical Trends
- View symptom change charts and historical records in the "Historical Trends" tab
The system uses a weighted scoring approach, integrating multiple risk factors:
- Acute risk base score: 10
- Chronic risk base score: 5
- IBD: Acute +25, Chronic +30
- Diabetes: Chronic +10
- Anticoagulants: Acute +15, Chronic +25
- ATM Mutation: Acute +20, Chronic +25
- NBN Mutation: Acute +15, Chronic +20
- LIG1 Mutation: Acute +12, Chronic +18
- LIG4 Mutation: Acute +30, Chronic +40 (highest risk)
- PCNA Mutation: Acute +10, Chronic +15
- REV3L Mutation: Acute +18, Chronic +25
- POLH Mutation: Acute +16, Chronic +20
- XPC Mutation: Acute +14, Chronic +15
- Rectum V70 > 20%: Chronic risk + (V70 - 20) Γ 2
- Rectum V50 > 50%: Acute risk + (V50 - 50) Γ 1.5
- VMAT / IMRT: Multiplier 1.0 (standard)
- Proton Therapy: Multiplier 0.5 (risk reduction)
- Age > 75 years: Chronic risk +5
- Age > 70 years: Acute risk +3
- Low Risk: Score < 30
- Intermediate Risk: 30 β€ Score < 60
- High Risk: Score β₯ 60
- Modern UI: Gradient backgrounds, card-based design, smooth animation effects
- Blue Theme: Professional medical system color scheme
- Responsive Design: Supports different screen sizes
- Real-time Calculation: Risk assessment results update immediately after parameter input
- Visualization Charts: Plotly interactive charts with zoom and hover tooltips
- Multi-tab Design: Clear information architecture for easy navigation
- This system is a Prototype version, primarily for research and demonstration purposes
- Genomic marker weights are currently set relatively low, pending prospective study validation
- Complete validation and review processes are required before clinical use
- This system is a locally deployed version; data is not uploaded to external servers
- Recommended for use in environments compliant with HIPAA/GDPR regulations
- Data encryption and access control should be strengthened for actual deployment
- Risk calculation model is based on literature and clinical experience, not a machine learning model
- Population risk positioning charts use simulated data (normal distribution), not actual hospital data
- Model confidence (87.4%) is a demonstration value
- PDF generation requires installation of the
fpdfpackage - If
fpdfis not installed, the system will provide plain text report download - ePRO historical records are currently stored in Session State; restarting the application will clear them
To adjust risk factor weights, edit the calculate_risk() function in logic.py:
# Example: Adjust IBD risk weight
if patient_data.get('ibd', False):
acute_score += 30 # Originally 25
chronic_score += 35 # Originally 30To modify UI styles, edit the CSS settings in styles.py.
Currently, PDF reports can be manually downloaded and imported into EMR. Future API integration can enable automatic upload functionality.
- Concept 1: Application of rectal spacer gel (SpaceOAR)
- Concept 3: Optimization of DVH constraints
- Concept 4: Pre-treatment genomic marker risk prediction
- Rectal toxicity risk assessment in prostate cancer radiotherapy
- Application of genomics in radiosensitivity prediction
- Value of electronic patient-reported outcomes (ePRO) in cancer care
This project is for education & research purposes. Please comply with relevant regulations and ethical guidelines.
Suggestions and feedback are welcome. To contribute code, please contact the development team first.
For any questions or suggestions, please contact through the project management system or directly with the development team.
Last Updated: 2024
System Status: Prototype Version