ConvNeXt-Transformer Mammo Report
mammography report generation
2 min readupdated
This model automates the creation of mammography reports based on four screening projections (LCC, LMLO, RCC, RMLO). It outputs a medical report specifying the BI-RADS category (breast imaging reporting and data system) along with recommendations for follow-up or biopsy. The architecture combines a ConvNeXt-Small encoder (a computer vision network for extracting features from each scan) and a Transformer-based decoder (a model for text generation). The development focuses on research tasks in medical diagnostics and radiological image analysis.
Key features
- Uses a ConvNeXt-Small convolutional network to encode images into embeddings (vector representations).
- Applies a Transformer (an architecture for handling sequences and text) to generate standardized reports.
- Supports various training configurations for different numbers of BI-RADS categories.
- Comes with ready-to-use scripts for feature extraction and running predictions.
What you can do
- Run feature extraction scripts to analyze a set of mammogram scans.
- Generate a file with predicted reports and probabilities for BI-RADS categories.
- Conduct research analysis of medical reports within scientific projects.
Example
git clone https://github.com/Tamez-Research-Group/convnext-transformer-mammo-report
cd convnext-transformer-mammo-report && pip install -r requirements.txt
huggingface-cli download lalodeavilaarm/convnext-transformer-mammo-report --local-dir weights
python scripts/extract_features.py --images images.csv --checkpoint weights/convnext/trained_model.pth --out features.csv
python scripts/predict.py --features features.csv --transformer weights/transformer/all --out conclusions.csvRead more
DetailsBenchmarks on tests (BI-RADS 1–5): BLEU 0.759, METEOR 0.849, BERTScore 0.925.
Hardware requirements: standard Python environment with TensorFlow/Keras and PyTorch support.
Limitations: for research value only, not a medical device, and not validated for clinical use.
Trained on data from TecSalud and RSNA.










Comments