AI Training Log Analyzer & Overfitting Detector
Upload YOLO or deep learning training CSV logs to plot loss and mAP curves and automatically diagnose overfitting, underfitting, or gradient instability.
๐ Diagnosing Overfitting, Underfitting & Convergence from Training Logs
Interpreting raw epoch metrics in CSV training logs can be tedious, especially when balancing box regression loss, classification loss, distribution focal loss (DFL), Precision, Recall, and mean Average Precision (mAP@50 and mAP@50-95). The DevPanda Training Analyzer parses Ultralytics YOLOv5/YOLOv8/YOLOv11 results.csv files (or custom tabular logs) to plot interactive multi-axis learning curves and run automated heuristics that pinpoint the exact epoch where overfitting, learning rate instability, or stagnation begins.
๐ How to Use This Tool
- Upload your training log CSV file (e.g., results.csv from a YOLO training run) or click "Load Sample Data" to inspect a realistic 50-epoch training curve.
- Examine the automated Diagnostic Summary banner, which evaluates train-vs-validation loss divergence and mAP progression.
- Toggle individual loss components (box_loss, cls_loss, dfl_loss) and validation metrics (Precision, Recall, mAP50, mAP50-95) on the interactive chart.
- Check the Best Checkpoint table to identify which epoch achieved peak validation performance before generalization degraded.
๐ Reading Deep Learning Loss & Metric Curves
- Overfitting Signature: Training loss continues to decrease monotonically while validation loss bottoms out and begins rising (or mAP50-95 plateaus/declines). Remedies include early stopping, stronger data augmentation (Mosaic, MixUp, Cutout), weight decay, or dropout.
- Underfitting Signature: Both training and validation losses remain high and flatten early. This indicates insufficient model capacity (e.g., using YOLOv8n on a complex dense dataset), an overly aggressive regularization policy, or a learning rate that is too small.
- Gradient Explosion & LR Instability: Sharp vertical spikes in validation loss or oscillating mAP curves typically indicate that the initial learning rate is too high for the current batch size, or that warmup epochs are missing.
โ Frequently Asked Questions (FAQ)
Q. What is the difference between mAP@50 and mAP@50:95?
mAP@50 considers a predicted bounding box correct if its Intersection over Union (IoU) with ground truth is at least 0.50. mAP@50:95 averages mAP across 10 stricter IoU thresholds (0.50, 0.55, ..., 0.95), rewarding models with highly precise boundary localization.
Q. Why does validation loss increase near the final epochs while mAP stays flat?
As the classifier becomes overly confident on training examples, cross-entropy loss penalizes high-confidence misclassifications on validation samples much more heavily, even if the top-1 class ranking (and thus mAP) has not yet flipped.
Q. Which CSV formats are supported by the Training Analyzer?
It natively auto-detects Ultralytics YOLO results.csv headers (with or without leading whitespace) as well as generic CSV files containing epoch, train_loss, val_loss, and accuracy/mAP columns.