Stateful Cross-Session Injection: Attacks, Detection, and Session-Boundary Defenses
A research project that studies how prompt injections persist across agent sessions — building a stateful evaluation harness that measures...
Build a degradation-prediction system that learns from multivariate industrial sensor time series and issues maintenance-support alerts — a supervised remaining-useful-life style project on NASA’s public C-MAPSS run-to-failure dataset.

A machine-learning project that watches multivariate industrial sensor time series and raises maintenance-support alerts as equipment health degrades. Trained on NASA’s public C-MAPSS turbofan engine simulation data — multivariate sensor readings recorded from healthy operation to failure — the system learns what degradation looks like, estimates a risk level or remaining-useful-life style figure for a running asset, and fires threshold-based alerts into a maintenance dashboard. It is a decision-support prototype for reliability workflows: the alert says “this asset deserves attention soon,” and a human decides what happens next.
>Decision support, not a crystal ball. This system does not guarantee failure prediction, uptime, or accident prevention, and it is not a safety-certified product. Alerts are advisory; trained maintenance staff make the actual decisions using the alert as one input among many — inspection schedules, operating context, and professional judgment.
Unplanned equipment failure is expensive: emergency repairs cost multiples of scheduled ones, and downtime ripples through production. Maintenance programs therefore evolved from “fix it when it breaks” (reactive) to “fix it on a schedule” (preventive) — but fixed schedules over-maintain healthy equipment and can still miss early failures. The promise of predictive maintenance is to use the sensor streams industrial equipment already produces to focus attention where degradation actually appears. The catch: most public content stops at “plot the sensor data,” and real deployments are closed-source. What’s missing is a buildable, honest reference implementation — one that shows the full path from raw multivariate telemetry to a threshold-based alert, including the leakage traps and false-alarm economics that decide whether such a system is useful at all.
Predictive maintenance is a family of related problems, and the distinctions matter:
This project builds the degradation→RUL-style→alert chain on simulated run-to-failure data, where each “asset” is a unit whose sensors were recorded until it failed — which makes supervised training possible and reproducible.
C-MAPSS provides multiple multivariate time-series subsets: per-unit sensor readings (temperature, pressure, speed, and other simulated channels) over operational cycles, ending at failure for training units and cut mid-life for test units. Start with inspection: how many units, how many cycles per unit, sensor value ranges, which channels are flat or noisy, and what degradation actually looks like when you plot a few units end to end. Plot first, model second.
Compute a health label per cycle (for training units, a remaining-cycles count derived from the run-to-failure records; capped to avoid asymptotic distortion). Normalize sensor channels using training-set statistics only. Then split by unit, never by random rows: putting cycles from the same engine in both train and test is temporal leakage, and it is the single most common way predictive-maintenance projects lie to themselves.
Single-cycle readings are noisy; degradation lives in trends. Build rolling-window features per unit: windowed means, standard deviations, slopes, and deltas over the recent past for each sensor channel. The window length is a real modeling decision — too short and noise dominates, too long and early degradation is smoothed away. Windowed features also make the eventual alerting behave sensibly, because alerts keyed to smoothed signals fire less erratically than alerts keyed to single spikes.
With windowed features and per-cycle health labels, train a regression model (gradient-boosted trees are a strong, interpretable baseline; a small sequence model is the natural upgrade) to estimate remaining cycles — or a classification variant that predicts whether the unit is within a near-failure window. Start with regression on capped RUL: it is easier to evaluate honestly and maps naturally onto alert thresholds.
Standard regression metrics (MAE, RMSE) are necessary but not sufficient. Operators care about alert behavior: how often does the system cry wolf (false positives), how often does it miss a genuine near-failure (false negatives), and how early does the warning arrive (lead time)? Evaluate with alert-style metrics — precision/recall of “alerted before threshold” events and average lead time — alongside the regression metrics.
Convert model output into alerts via thresholds with hysteresis: enter the alert state above a risk level, exit below a lower one. Hysteresis prevents the flapping that destroys operator trust on the first week of use. Tune thresholds on validation data, and report the false-positive/false-negative trade-off explicitly rather than burying it.
Store per-unit features, predictions, and alert states in a database (any relational store works; time-series-friendly schemas keep queries fast). A small dashboard shows per-unit health over time, current risk, alert history, and the raw sensor context behind each alert — because an alert without its evidence trail is an alert operators will ignore.
A minimal but complete MVP:
Explicitly out of MVP: streaming ingestion, multi-fleet deployment, anomaly-detection ensembles, and any real-facility integration. All are natural extensions.
This project is deliberately distinct from the site’s Cloud Cost Anomaly Detector: #025 flags unusual spending patterns in cloud billing data using unsupervised anomaly detection, while #058 learns degradation trajectories from multivariate industrial sensor time series using supervised, remaining-useful-life-style modeling — different data (billing records vs sensor telemetry), different method (anomaly scoring vs supervised degradation regression), and different decision (cost review vs maintenance scheduling). It also extends the Real-Time IoT Dashboard Builder, which visualizes device telemetry but does not model it: #058 adds the intelligence layer — features, prediction, and threshold-based alerts — on top of the telemetry those dashboards display. The Smart Data Pipeline Monitor watches data pipelines for freshness and breakage; #058 watches machines for degradation.
| Tool type | Approach | Limitation |
|———–|———-|————|
| Enterprise predictive-maintenance platforms | Vendor suites with proprietary models | Expensive, opaque, not student-buildable |
| SCADA alarm systems | Static rule thresholds on sensor values | No trend learning; alarm floods; no lead-time view |
| Generic anomaly detectors | Unsupervised outlier scoring | No degradation trend, no remaining-life notion, no alert policy |
| Scheduled maintenance programs | Calendar-based servicing | Over-maintains healthy assets; can still miss early failures |
This project’s differentiators: a fully transparent supervised pipeline on public run-to-failure data, operator-grade alert metrics (lead time, false-positive rate), hysteresis-based alerting, and an explicit advisory-only, simulation-scoped boundary.
Browse more Project Ideas · Intermediate Ideas
A research project that studies how prompt injections persist across agent sessions — building a stateful evaluation harness that measures...
A research project that measures, for the first time at registry scale, how much tool-poisoning risk actually exists across public...
A research project that measures the full trade-off curve between prompt-injection resistance and task utility for LLM agent defenses —...
Ready to level up? These ideas offer more complexity:
Published on September 12, 2026
A team of developers, researchers, and innovators who review and publish practical ideas for builders and creators.
Published on September 12, 2026
A team of developers, researchers, and innovators who review and publish practical ideas for builders and creators.