How suriyaa-r/maternal-infant-risk works
This is an academic maternal-and-infant risk prediction application, trained primarily on synthetic data and explicitly not for clinical use. Its principal workflow generates data, preprocesses it, trains and evaluates candidate classifiers, selects a high-recall model, and serves predictions in a Streamlit app. Separate analysis branches provide clustering, association-rule mining, and explainability. The end-to-end script is the documented workflow orchestrator. Some app behavior and artifact wiring are documented in the README but not visible in the partial app excerpt; those edges cite the README.
Main entry points: run_all.py Workflow execution · preprocessing.py Preprocessing and SMOTE · evaluation.py Model evaluation and selection · raw Raw CSV data
Components 14
Risk prediction app
- Streamlit interface
app/app.py - Risk prediction
app/app.py
Data pipeline
- Synthetic data generation
src/data_generation.py - Preprocessing and SMOTE
src/preprocessing.py - Workflow execution
scripts/run_all.py
Mining and evaluation
- Classifier training
src/models.py - K-means analysis
src/models.py - Apriori rules
src/models.py - Model evaluation and selection
src/evaluation.py - SHAP and feature importance
src/evaluation.py
Data and models
- Raw CSV data
data/raw - Processed splits
data/processed - Serialized model artifacts
models
Other components
- Care professional
Connections 17
- Care professional → Streamlit interface: enters patient data
README.md - Streamlit interface → Risk prediction: requests prediction
README.md - Risk prediction → Serialized model artifacts: loads selected pipeline
README.md - Synthetic data generation → Raw CSV data: generates dataset
README.md - Workflow execution → Synthetic data generation: runs generation
scripts/run_all.py - Workflow execution → Preprocessing and SMOTE: runs preprocessing
scripts/run_all.py - Preprocessing and SMOTE → Raw CSV data: reads dataset
- Preprocessing and SMOTE → Processed splits: saves splits
src/preprocessing.py - Workflow execution → Classifier training: trains models
scripts/run_all.py - Workflow execution → K-means analysis: runs clustering
scripts/run_all.py - Workflow execution → Apriori rules: runs rule mining
scripts/run_all.py - Workflow execution → Model evaluation and selection: evaluates candidates
scripts/run_all.py - Model evaluation and selection → Classifier training: scores models
- Model evaluation and selection → Serialized model artifacts: saves best pipeline
src/evaluation.py - Workflow execution → SHAP and feature importance: generates explanations
scripts/run_all.py - Workflow execution → Serialized model artifacts: stores trained models
scripts/run_all.py - Workflow execution → Raw CSV data: uses generated data