Implementation for AI-driven method for exhaustive hazard scenario generation in chemical process systems
conda env create -f environment.yml
conda activate graphdecoder
This dataset was generated based on rule-based logic. The input and output are built independently using different scripts. You can access the processed dataset and pre-trained model weights via the following Google Drive link: https://drive.google.com/drive/folders/1-l79eFNjTlllNm4z0sQ9jAv7sgOAJ9_p?usp=sharing
data_forming.ipynb
: Generates node features for Process Flow Diagrams (PFDs).
These features serve as the structural input for downstream tasks.
- Hazard scenarios are created using yEd Graph Editor and saved in
total.graphml
. json_generate.ipynb
: Readstotal.graphml
and converts the scenarios into structured JSON format, saved asgraph_relations_labeled_structured.json
.
data_preprocess.ipynb
: Combines the input features and output scenarios into a unified binary filegraph_data.bin
.
This file serves as the dataset for model training, validation, and testing.
This project includes a pre-configured .vscode/launch.json
file that defines several run/debug configurations for Visual Studio Code.
- Click the Run and Debug icon on the sidebar (or press
Ctrl+Shift+D
). - In the dropdown at the top of the panel, choose one of the available configurations, such as:
Run Generate_case_study Module
Run Main (Train)
- Click the ▶ Run button or press
F5
.
The authors thankfully acknowledge the financial support provided by the Mary Kay O’Connor Process Safety Centre at Texas A&M University.