Explore PredictiveOps through its live web application.
π Launch PredictiveOps Live Platform
PredictiveOps explores how time-series machine learning can help identify unusual industrial sensor behavior and support predictive maintenance through time-aware feature engineering, model evaluation, and monitoring.
Note: The live Streamlit application provides the user-facing interface. API availability and individual backend capabilities depend on the current deployment configuration.
PredictiveOps is an industrial time-series Machine Learning and MLOps project focused on detecting abnormal sensor behavior and exploring predictive maintenance workflows.
The project is designed to process multivariate sensor telemetry, engineer historical features, evaluate models using chronological validation, and support reproducible inference workflows.
Rather than relying exclusively on random train-test splits or generic accuracy metrics, PredictiveOps emphasizes temporal correctness, future-data leakage prevention, and evaluation strategies suited to time-dependent industrial data.
Its two primary modeling directions are:
- Anomaly Detection: Identifying unusual patterns in industrial sensor measurements.
- Remaining Useful Life (RUL) Prediction: Estimating the remaining operating time or cycles before equipment failure when suitable lifecycle labels are available.
- Process multivariate industrial sensor telemetry.
- Engineer lag, rolling-window, and exponential moving average features.
- Prevent future-data leakage during feature engineering and evaluation.
- Evaluate models using chronological and walk-forward validation.
- Explore anomaly detection and supervised RUL prediction.
- Design reproducible model-training and evaluation workflows.
- Support inference and operational monitoring through suitable application interfaces.
flowchart TD
A["Industrial IoT Sensor Telemetry"] --> B["Data Ingestion & Validation"]
B --> C["Causal Feature Engineering"]
C --> D["Point-in-Time Feature Pipeline"]
D --> E["Walk-Forward Temporal Validation"]
E --> F["Anomaly Detection"]
E --> G["Remaining Useful Life Prediction"]
F --> H["Model Evaluation"]
G --> H
H --> I["Inference Interface"]
I --> J["Monitoring & Performance Metrics"]
J --> K["Early-Warning Insights"]
style A fill:#0f172a,stroke:#38bdf8,stroke-width:2px,color:#ffffff
style B fill:#0f172a,stroke:#3b82f6,stroke-width:2px,color:#ffffff
style C fill:#1e1b4b,stroke:#818cf8,stroke-width:2px,color:#ffffff
style D fill:#1e1b4b,stroke:#818cf8,stroke-width:2px,color:#ffffff
style E fill:#78350f,stroke:#fbbf24,stroke-width:2px,color:#ffffff
style F fill:#064e3b,stroke:#34d399,stroke-width:2px,color:#ffffff
style G fill:#064e3b,stroke:#34d399,stroke-width:2px,color:#ffffff
style H fill:#0f172a,stroke:#38bdf8,stroke-width:2px,color:#ffffff
style I fill:#0f172a,stroke:#10b981,stroke-width:2px,color:#ffffff
style J fill:#0f172a,stroke:#10b981,stroke-width:2px,color:#ffffff
style K fill:#064e3b,stroke:#34d399,stroke-width:2px,color:#ffffff
The architecture illustrates the intended workflow from sensor telemetry to model evaluation and inference. Individual components should be considered implemented only when supported by the repository code and tests.
Transforms historical sensor measurements into features that capture equipment behavior over time.
Potential features include:
- Lag features from previous observations.
- Rolling means and standard deviations.
- Exponential moving averages (EMA).
- Sensor rate-of-change and first differences.
- Rolling minimums, maximums, and quantiles.
- Configurable historical observation windows.
Engineering focus: Features at a prediction timestamp should use only information available at that time.
Random train-test splits can produce misleading results when observations are time-dependent.
PredictiveOps emphasizes chronological evaluation through:
- Historical training intervals.
- Validation on later time periods.
- Repeated walk-forward evaluation.
- Training-only preprocessing and transformation fitting.
- Appropriate gaps between splits when overlapping windows or delayed labels create leakage risks.
- A final chronological test set for unbiased evaluation.
Anomaly detection helps identify sensor behavior that differs significantly from established operating patterns.
Potential approaches include:
- Statistical threshold-based baselines.
- Isolation Forest.
- Reconstruction-error-based anomaly detection.
- PyTorch-based models when justified by the data and task.
Evaluation can include precision, recall, false-alarm rate, detection delay, and operational alert volume when appropriate labels or event records are available.
RUL prediction is a separate supervised learning task that estimates the remaining time or operating cycles before equipment failure.
A reliable workflow requires:
- Appropriate equipment lifecycle and failure labels.
- Clearly defined prediction targets.
- Simple regression baselines.
- Chronological model evaluation.
- Error analysis across equipment units and operating conditions.
An anomaly score alone does not constitute a reliable RUL estimate.
Reliable machine learning requires more than training a model once.
The project emphasizes:
- Consistent feature definitions across training and inference.
- Documented data preprocessing.
- Reproducible evaluation splits.
- Comparisons against simple baselines.
- Explicit reporting of datasets, parameters, and measured results.
- Automated tests for important feature and validation behaviors.
A production-oriented predictive maintenance workflow can incorporate service-level monitoring through Prometheus and an inference API.
Useful operational metrics include:
- Request volume and inference latency.
- Service availability and error rates.
- Sensor input validation failures.
- Missing-value rates.
- Anomaly score distributions.
- Alert volume and model-quality metrics when ground truth becomes available.
Monitoring integrations and alerting rules should be documented as implemented only after they have been configured and tested.
| Metric | Purpose |
|---|---|
| Precision | Measures how many predicted anomalies are genuine. |
| Recall | Measures how many known anomalies are detected. |
| False Alarm Rate | Tracks incorrect anomaly alerts. |
| Detection Delay | Measures the delay between anomaly onset and detection. |
| MAE | Measures average absolute error for RUL prediction. |
| RMSE | Penalizes larger RUL prediction errors. |
| Inference Latency | Measures prediction response time. |
| Request Error Rate | Tracks failed inference requests. |
Metrics should be selected according to the task and the available ground truth. Actual benchmark scores should be reported only after running the evaluation pipeline.
| Component | Technology | Purpose |
|---|---|---|
| Programming Language | Python 3.11 | Core implementation |
| Data Processing | Pandas, NumPy | Data preparation |
| Machine Learning | Scikit-learn, PyTorch | Modeling and evaluation |
| Feature Engineering | Lag features, rolling statistics, EMA | Time-series representation |
| Temporal Validation | Walk-forward validation | Chronological evaluation |
| Web Application | Streamlit | Interactive user interface |
| API Serving | FastAPI, Uvicorn | Inference endpoints, where configured |
| Monitoring | Prometheus | Service metrics, where configured |
| Testing | Pytest | Automated testing |
| CI/CD | GitHub Actions | Automated validation |
| Containerization | Docker, Docker Compose | Reproducible deployment, where configured |
| Version Control | Git, GitHub | Source management |
The final technology stack should match the dependencies and integrations actually present in the repository.
- Python 3.11
- Git
- pip
- PowerShell, Command Prompt, or a Bash-compatible terminal
git clone https://github.com/Aditya70-creator/PredictiveOps.git
cd PredictiveOpsWindows PowerShell
python -m venv .venv
.\.venv\Scripts\Activate.ps1Linux / macOS
python3 -m venv .venv
source .venv/bin/activatepython -m pip install --upgrade pip
pip install -r requirements.txtIf the Streamlit entry point is app.py, run:
streamlit run app.pyIf your application entry point is located elsewhere, replace app.py with the actual path, for example streamlit run app/dashboard.py.
If the repository contains a configured Pytest suite:
pytest -vIf the repository includes the configured FastAPI entry point api/main.py:
uvicorn api.main:app --reload --port 8000The API command is optional and assumes that the specified module and application object exist.
PredictiveOps follows practical machine learning engineering principles:
- Temporal correctness: Avoid using future observations to construct historical features.
- Leakage prevention: Fit preprocessing transformations on training data only.
- Chronological evaluation: Preserve time ordering during validation and testing.
- Feature consistency: Reuse compatible feature transformations during training and inference.
- Baseline comparison: Evaluate complex models against simpler alternatives.
- Transparent evaluation: Document data sources, metrics, temporal splits, and assumptions.
- Automated testing: Verify feature calculations, validation logic, and application behavior.
- Responsible monitoring: Evaluate false alarms and operational limitations before deployment.
The roadmap describes planned development milestones. Update completion status as each feature is implemented and tested.
- Initial time-series pipeline design
- Initial causal-window and temporal-validation specifications
- Multivariate sensor feature pipeline with leakage tests
- Statistical anomaly detection baselines
- Isolation Forest benchmarking
- Supervised RUL benchmark with suitable lifecycle labels
- Walk-forward evaluation reports
- Feature correctness and data validation tests
- Inference endpoint validation
- Prometheus service-health and latency metrics
- Configurable early-warning rules
- Experiment tracking and model versioning
- Containerized deployment, if required
- Operational monitoring dashboard
PredictiveOps is intended for educational, research, and industrial predictive-maintenance experimentation.
- Use authorized datasets and protect sensitive industrial telemetry.
- Never commit credentials, API keys, or private configuration files.
- Validate incoming sensor data before model inference.
- Document dataset limitations and model assumptions.
- Evaluate false alarms and missed detections before operational use.
- Treat model predictions as decision-support signals rather than definitive proof of equipment failure.
Contributions, bug reports, and engineering improvements are welcome.
- Fork the repository.
- Create a feature branch.
- Implement your changes.
- Run relevant tests.
- Submit a pull request describing the changes.
Please include tests when modifying feature engineering, temporal validation, model behavior, or inference logic.
This project is intended to use the MIT License. See LICENSE for the applicable terms.
Aditya Mitra
- GitHub: @Aditya70-creator
- Repository: PredictiveOps
- Live Application: PredictiveOps on Streamlit Cloud
PredictiveOps
Turning industrial telemetry into actionable maintenance intelligence.