Overview
The conversion analyzer provides granular performance analysis by breaking down predictions according to baseline diagnostic group (CN, MCI, AD) and conversion status. This analysis reveals which patient subgroups the model handles well and where improvements are needed. Implemented in conversion_analyzer.py, this module tracks accuracy separately for:- CN-Stable: Cognitively Normal subjects who remain stable
- CN→MCI: CN subjects who convert to Mild Cognitive Impairment
- MCI-Stable: MCI subjects who remain stable
- MCI→AD: MCI subjects who convert to Alzheimer’s Disease
- AD-Stable: AD subjects (typically remain stable)
Conversion Type Classification
Each subject is assigned a conversion type based on baseline group and conversion label:TADPOLE_Simplified.csv to determine baseline diagnostic group and conversion status.
Analysis Process
The analysis matches predictions to conversion types for all test subjects:Stable vs Converter Predictions
For each conversion type, accuracy is broken down by prediction outcome:- How well the model identifies stable subjects within each group
- How well the model identifies converters within each group
- Whether the model has different strengths for different conversion patterns
Result Structure
For each conversion type, the analysis returns:Reporting Format
Results are printed in a structured format showing per-group performance:Cross-Fold Aggregation
Results are aggregated across all cross-validation folds:Usage in Training Pipeline
The conversion analysis runs automatically after each fold’s test evaluation:Interpretation
This analysis helps identify:- Group-specific challenges: Which baseline groups are harder to predict
- Class imbalance effects: Whether the model struggles more with stable or converter predictions within each group
- Clinical relevance: Different conversion patterns (CN→MCI vs MCI→AD) may have different clinical implications
- Model bias: Whether the model is systematically biased toward predicting one class for certain groups