Back to portfolio

Case Study

Thermal Eye

AI thermal inspection for power transmission infrastructure

PyTorchOpenCVFastAPIPostgreSQLDocker

Problem

Manual thermal inspection was periodic, expensive, and often reactive. Critical faults were discovered late, increasing downtime risk.

System Architecture

High-level component flow.

Component

Thermal Sensor Feeds

Thermal Sensor Feeds is an internal service layer responsible for transformation, scoring, or orchestration.

Connected To

  • Sends output to Ingestion Service

Key Engineering Decisions

  • Used a two-stage detection pipeline to separate noise filtering and hotspot localization for higher precision.
  • Designed asynchronous ingestion to support field bursts without blocking inference.
  • Introduced calibrated confidence thresholds by asset category to reduce alert fatigue.

Implementation Details

  • Model training with transfer learning on thermographic datasets and controlled augmentations.
  • FastAPI inference service with request batching and edge-compatible fallback mode.
  • PostgreSQL-backed traceability for every inspection event and model decision.

Results

Fault Detection Accuracy

95%

Inspection Time Reduction

62%

False Positive Reduction

38%

  • Delivered 95% fault detection accuracy on validation aligned with real field conditions.
  • Reduced manual inspection effort by over half through risk-based prioritization.
  • Improved operator trust with explainable heat overlays and confidence bands.

Code Snippet

Anomaly Scoring

def score_anomaly(temperature_map, baseline_mean, baseline_std):
    z_score = (temperature_map.max() - baseline_mean) / (baseline_std + 1e-6)
    confidence = min(max(z_score / 6.0, 0.0), 1.0)
    return {"z_score": round(z_score, 2), "confidence": round(confidence, 3)}

Lessons Learned

  • Operational value comes from calibrated precision, not just benchmark accuracy.
  • Field deployments need strong observability from day one.
  • Human-in-the-loop workflows can accelerate adoption in safety-critical domains.