This package contains all materials needed for teaching a class on training AI models for dental X-ray analysis using the MONAI framework. The materials are designed to be accessible to dental professionals with minimal programming experience.
dataset_research.md: Comprehensive review of available dental X-ray datasetsdataset_preprocessing_guide.md: Guide to labeling and preprocessing dental X-raysdataset_preparation.md: Step-by-step instructions for preparing datasets for MONAI
monai_model_review.md: High-level overview of MONAI for dental studentsmonai_training_script.py: Complete training script with detailed commentsvalidation_report.md: Validation of the training pipeline
visual_explanations.md: Visual guide to each step of the AI pipelinetroubleshooting_guide.md: Solutions to common issues during training
todo.md: Checklist of completed preparation steps
- Review the
monai_model_review.mdto understand the MONAI framework - Ensure all prerequisites are installed (see Setup section below)
- Test the training script on a small dataset
- Begin with the visual explanations to introduce key concepts
- Walk through the dataset preparation steps
- Run the training script, explaining each component
- Show evaluation results and discuss clinical implications
- Address common issues using the troubleshooting guide
- Python 3.7+
- PyTorch 1.9+
- MONAI 0.9+
- CUDA-capable GPU (recommended but not required)
# Create virtual environment
python -m venv dental_ai_env
source dental_ai_env/bin/activate # On Windows: dental_ai_env\Scripts\activate
# Install dependencies
pip install torch torchvision
pip install monai
pip install matplotlib scikit-learn pandas
# Verify installation
python -c "import monai; print(monai.__version__)"- Follow instructions in
dataset_preparation.mdto organize your dental X-ray dataset - Use the preprocessing guide to standardize images
- Create train/validation/test splits as described
# Navigate to project directory
cd dental_ai_project
# Run the training script
python monai_training_script.py
# Results will be saved in dental_ai_dataset/results/The training script includes several configurable parameters:
- Model architecture (DenseNet121 or ResNet50)
- Learning rate
- Batch size
- Number of epochs
- Data augmentation options
Modify these in the Config class at the beginning of the script.
If you encounter issues during setup or training:
- Refer to the
troubleshooting_guide.mdfor common problems and solutions - Check that your dataset follows the expected directory structure
- Verify that all dependencies are correctly installed
- MONAI Documentation: https://docs.monai.io/
- PyTorch Tutorials: https://pytorch.org/tutorials/
- Dental X-ray Datasets: See
dataset_research.mdfor options
When using these materials or the trained models in research or clinical applications, please cite:
MONAI Consortium. (2020). MONAI: Medical Open Network for AI. https://monai.io/
For specific dental X-ray datasets, refer to the citation requirements in dataset_research.md.
For questions or assistance with these materials, please contact the instructor, Francisco Barbosa, email: cisco@periospot.com.
Prepared by Manus AI for dental AI training class, June 2025.