Mean squared error (MSE) is a regression loss and evaluation metric that averages the squared differences between predicted and true values. In visual AI it scores continuous predictions like bounding box coordinates, depth maps, and keypoint locations, where lower is better.
MSE = (1/n) Σ (y_i − ŷ_i)²
| Metric | What it measures | Behavior |
|---|---|---|
| MSE | Mean of squared errors, squared units | Heavily penalizes outliers |
| RMSE | Square root of MSE, original units | Outlier-sensitive, easier to read |
| MAE | Mean of absolute errors, original units | Robust to outliers |
| Huber loss | Squared error for small residuals, absolute error for large ones | A tunable middle ground, robust to outliers while staying smooth near zero |
