STAMP-Informed Machine Learning for Process Safety Event Prediction: Synthetic Dataset and Reproducibility Material
Description
This dataset provides the synthetic data, Python analysis code, model evaluation outputs, and supporting figures associated with the research manuscript entitled “STAMP-Informed Machine Learning for Short-Horizon Prediction of High-Potential Process Safety Events in Oil and Gas Operations: A Reproducible Simulation Study.” The study investigates whether leading indicators informed by the System-Theoretic Accident Model and Processes (STAMP) can improve short-horizon prediction of high-potential process safety events compared with conventional lagging indicators. The dataset represents 60 hypothetical oil and gas assets, including offshore installations, onshore facilities, and pipeline stations, observed over 72 simulated monthly intervals. It comprises 4,320 synthetic asset-month observations and 228 simulated high-potential process safety events. Three predictive approaches are evaluated: 1. Logistic regression using lagging indicators only. 2. Logistic regression using STAMP-informed leading indicators. 3. Gradient boosting using the same STAMP-informed leading indicators. The analysis incorporates temporally separated model development, validation, and testing, alongside discrimination, calibration, precision–recall analysis, cluster-bootstrap comparisons, and permutation-based feature importance. The accompanying supplementary materials include the synthetic dataset, Python analysis script, model performance results, paired model comparisons, test-set predictions, calibration data, feature-importance results, and supporting visualizations. Data provenance and limitations: all observations, operational indicators, and process safety events are computationally simulated. No actual industrial incident records, confidential operational data, or personal information are included. The dataset is intended for methodological demonstration, computational reproducibility, and further research. Its results do not establish real-world predictive performance or validate the models for operational safety-critical decision-making. The materials should be interpreted alongside the associated research manuscript. Application to actual industrial operations would require site-specific hazard analysis, validation using real operational data, and appropriate safety assurance.
Files
Steps to reproduce
The dataset was generated computationally using Python to simulate operational and process safety conditions across 60 hypothetical oil and gas assets: 20 offshore installations, 20 onshore facilities, and 20 pipeline stations. Each asset was represented over 72 simulated monthly intervals, producing 4,320 synthetic asset-month observations. Operational indicators were constructed to represent safety-critical element maintenance, barrier impairments, alarm activity, feedback delays, permit-to-work deviations, management-of-change backlogs, overdue audit actions, staffing shortfalls, process upsets, and production pressure. A simulated event-generation mechanism was used to produce 228 synthetic high-potential process safety events. These events do not represent actual industrial incidents. Three predictive models were evaluated: lagging-indicator logistic regression, STAMP-informed logistic regression, and gradient boosting using STAMP-informed leading indicators. The dataset was divided chronologically into development (months 1–42), validation (months 43–54), and out-of-time testing (months 55–72). Model performance was evaluated using ROC-AUC, average precision, Brier score, precision, recall, specificity, and F2 score. Additional analyses included asset-cluster bootstrap comparisons, calibration assessment, and permutation-based feature importance. The accompanying Python script and CSV files document the computational workflow, synthetic observations, model outputs, and supporting analyses. The simulation uses a fixed random seed (20260721) to support reproducibility. The supplementary package was reconstructed from the documented manuscript methodology and reported results. It should not be interpreted as an archived copy of the original computational run. All data are synthetic and intended exclusively for methodological research. The results do not demonstrate real-world predictive validity or establish suitability for safety-critical operational decisions.
Institutions
- Heriot-Watt UniversityScotland, Edinburgh