Inspiration
In a hospital, a data centre, or an office tower, chilled water is what keeps the building cool — and losing it is expensive.
After power, cooling problems are the most common cause of serious data-centre outages. In Uptime Institute's 2025 survey, 57% of operators said their most recent major outage cost more than $100,000, while one in five reported costs exceeding $1 million.
One overlooked way a chilled-water pump can fail is through a clogging suction strainer. As debris builds up, the pressure at the pump inlet drops. When the local pressure falls below the water's vapour pressure, vapour bubbles begin to form inside the pump.
This is cavitation: vapour bubbles collapse against the impeller, pit the metal, and cause vibration that can damage bearings and seals. One pump specialist documented a stainless-steel impeller destroyed by cavitation in as little as three months. Often, the problem goes unnoticed until damage has already occurred.
Reliability engineers recommend determining cleaning intervals from trends in strainer pressure drop, with maintenance thresholds established before the pump suffers damage. In practice, however, strainers are often cleaned on a fixed schedule or after a problem occurs.
The necessary data may already exist in building monitoring systems. What is missing is a practical way to turn that data into answers to two critical questions:
"When do I need to clean this, and did my cleaning actually work?"
That's why we built Pump Detective.
What it does
Pump Detective follows the entire maintenance lifecycle:
Monitor → Diagnose → Predict → Recommend → Maintain → Verify
One screen answers the main question. A central dashboard shows the pump's current condition, recommended action, maintenance priority, cleaning deadline, and historical forecast accuracy.
Predicts when maintenance becomes necessary. It monitors strainer pressure-drop trends, corrects them for changes in flow, and forecasts when the pump's NPSH safety margin could be lost, with a 95% statistical uncertainty range.
Tests its own forecasts. A built-in backtest hides the last two weeks of data, forecasts that period using the same method, and compares the predictions against the withheld readings. On synthetic demo data, the forecast made 14 days earlier was within approximately 1% of the actual simulated value. Even in a deliberately mismatched scenario, the error remained within a few percent.
Automatically generates work orders. With one click, technicians receive a work order containing the recommended action, priority, deadline, supporting evidence, and verification checks. The work order is generated using AI or a built-in offline alternative when AI is unavailable.
Verifies maintenance effectiveness. After cleaning, the technician enters the measured pressure drop and flow rate. Pump Detective determines whether the strainer has returned to its clean condition, accounting for instrument uncertainty. It also detects misleading situations, such as a dirty strainer appearing clean because measurements were taken at low flow.
Supports real-world data formats. Users can upload CSV exports from existing data loggers. The application automatically detects cleaning events and sensor glitches, restarting the fouling trend after the most recent cleaning.
Provides engineering diagnostic tools. A suction-line diagram helps identify whether the strainer or the wider system is responsible for the problem. A repair comparison evaluates cleaning, increasing pipe diameter, or restoring system pressure. Additional tools include cavitation analysis using a published pump curve and part-load analysis for variable-speed pumps.
Generates professional reports. Forecasts, work orders, sensor-data analyses, and engineering results can be exported as PDF reports.
How we built it
Physics-driven intelligence
Python decides. AI explains.
Every numerical result, status, maintenance priority, and predicted deadline is calculated in Python before being passed to the AI.
The AI is instructed to explain these calculated facts without modifying them. The application can also generate work orders offline without an API key.
Engineering core
- NPSH available is calculated using absolute suction pressure, velocity head, and the vapour pressure of water.
- NPSH required is obtained from a published Lowara pump performance curve.
- Strainer pressure drop is normalised to design flow using the equation:
Δp* = Δp × (Q_ref / Q)²
This accounts for the approximate quadratic relationship between flow and strainer pressure loss.
- The pump's NPSH safety margin is converted into a meaningful strainer pressure-drop threshold, providing the forecast with a physics-based maintenance target.
Predictive forecasting
- A robust rolling filter identifies and removes sensor glitches.
- Sudden pressure-drop increases caused by potential debris accumulation and sudden decreases associated with cleaning events are detected automatically.
- The forecasting trend restarts after significant events when appropriate.
- An exponential fouling model estimates future pressure drop and its statistical uncertainty.
- Historical backtesting evaluates forecast performance against withheld readings.
Maintenance verification
The verification system calculates an acceptable clean-condition range using instrument datasheet accuracy and measurement uncertainty principles based on the GUM methodology.
This allows Pump Detective to evaluate whether maintenance was successful within the limits of what the installed instruments can reliably measure.
Technology stack
- Python:Engineering calculations, diagnostics, forecasting, and verification.
- Streamlit: Interactive application interface.
- Altair: Data visualisation and forecasting charts.
- SVG: Custom engineering diagrams.
- ReportLab:Automated PDF generation.
- AI:Maintenance explanations and work-order generation.
- GitHub Actions:Automated workflows supporting demo availability.
- Streamlit Community Cloud:Application deployment.
The project includes 70 automated tests covering engineering calculations, forecasting, back testing, CSV uploads, maintenance verification, and PDF generation.
Challenges we ran into
Making forecasts trustworthy, not just visually impressive
Our initial forecasting model was tested on synthetic data generated using the same mathematical trend.
We recognized that this was not sufficient evidence of reliability. To improve the evaluation, we introduced historical back testing and a deliberately mismatched synthetic scenario to assess how the forecasting method behaves when its assumptions are not fully satisfied.
Raw pressure drop can be misleading
Pressure drop changes throughout the day as flow changes. Without proper flow correction, a dirty strainer measured at low flow can appear clean.
Solving this problem significantly improved both our forecasting and maintenance verification systems.
Being honest about the physics
For the reference pump and system configuration used in our demonstration, the model indicates that cavitation risk emerges when the system loses sufficient fill pressure.
Rather than hiding this finding, we designed Pump Detective to explain when strainer cleaning alone is insufficient and when the wider system requires attention.
Keeping AI in its proper role
We did not want a language model independently making engineering or safety-related decisions.
Instead, deterministic Python calculations establish the maintenance findings, while AI makes those findings easier for technicians to understand.
An offline alternative ensures that the application remains functional without AI access.
Accomplishments that we're proud of
- Building a complete maintenance lifecycle, from raw sensor readings to maintenance verification.
- Developing a physics-based forecasting system with built-in backtesting and uncertainty reporting.
- Creating a system that openly communicates when its forecasts may be unreliable, particularly after sudden operational events.
- Supporting CSV uploads and automatic detection of cleaning events and sensor anomalies.
- Generating professional engineering reports and actionable maintenance work orders.
- Implementing 70 automated tests across the application's core functionality.
- Creating an accessible interface that technicians can use without needing to interpret complex engineering calculations themselves.
What we learned
- Engineering credibility comes from transparent assumptions, meaningful calculations, and thorough testing — not simply adding more features.
- The most appropriate role for generative AI in safety-related applications is to communicate engineering decisions rather than independently make them.
- Measurement uncertainty matters when determining whether maintenance has actually succeeded.
- Predictive maintenance is most valuable when it leads to actionable recommendations and measurable results.
- Good user experience is just as important as accurate calculations: one clear dashboard can be more useful than six tabs filled with numbers.
What's next for Pump Detective
- Direct integration with building management systems (BMS) and industrial monitoring platforms.
- Validation using real-world plant measurements and historical maintenance records.
- Support for individual installed pump performance curves.
- Real-time alerts and mobile-friendly interfaces for technicians.
- Multi-pump monitoring across entire buildings and facilities.
- Integration with maintenance management systems to automate work-order tracking.
Our long-term vision is to transform Pump Detective into a scalable predictive maintenance platform that helps facilities move from reactive repairs and fixed maintenance schedules toward proactive, evidence-based maintenance.
Honest limitations
Transparency is an essential part of Pump Detective.
All demonstration data are synthetic. The pump performance curve is a published catalogue reference rather than a curve obtained from a specific installed pump.
Although the engineering calculations and software functionality have undergone automated testing, the system has not yet been validated against real-world field measurements.
Forecast performance on synthetic data should not be interpreted as proven field accuracy.
Pump Detective is a maintenance-planning and engineering decision-support tool, not a safety certification system or a replacement for qualified engineering judgement.
Sources
- Uptime Institute — Annual Outage Analysis 2026
- Computer Weekly — Data-centre outages decreasing in frequency, Uptime Institute Intelligence data shows
- Allan R. Budris, WaterWorld — Understanding Pump Cavitation and Its Impact on Pump Reliability
- Reliability Magazine — Pump Cavitation Is a Symptom and You're Treating It Like the Disease
Tools used (including AI tools): Python, Streamlit, Altair, numpy, pandas, reportlab, GitHub Actions, Streamlit Community Cloud. Google Gemini API writes the work-order explanations (Python calculates every decision). ChatGPT and Claude Code assisted with code, review and documentation. Demo video: screen-recorded from the live app with a Playwright script (built with Claude Code); narration by Microsoft Edge text-to-speech.
Team
Abedahfiz Sharawi