How kreaver/observer-based-fault-detection-isolation-for-industrial-systems works
This repository models and visualizes a quadruple-tank process, with additional observer, fault, and experiment modules indicated by the file tree. The visible runtime workflow is to advance tank levels using the plant dynamics and display the resulting simulation. The experiment and diagnostic files are empty in the supplied excerpts, so their internal behavior and connections cannot be verified; those capabilities are represented without asserting unsupported calls.
Main entry points: plot_results.py Result plotting · sim.py Batch simulation · animate.py Live animation · 02_observer_test.py Observer test
Components 15
Tank plant
- Tank dynamics
plant/quad_tank.py - Steady state
plant/quad_tank.py
Simulation views
- Batch simulation
sim.py - Live animation
animate.py
Fault and observer
- State observer
observer/state_observer.py - Residuals
observer/residuals.py - Sensor fault
faults/fs_sensor.py - Actuator fault
faults/fs_actuator.py
Experiment analysis
- Baseline experiment
experiments/01_baseline.py - Observer test
experiments/02_observer_test.py - Sensor experiment
experiments/03_fs_sensor.py - Actuator experiment
experiments/04_fs_actuator.py - Fault sweep
experiments/05_fs_sweep.py - Result plotting
experiments/plot_results.py
Other components
- Operator
Connections 16
- Operator → Batch simulation: runs
sim.py - Batch simulation → Tank dynamics: calls
sim.py - Batch simulation → Steady state: calls
sim.py - Operator → Live animation: runs
animate.py - Live animation → Tank dynamics: calls
animate.py - Live animation → Steady state: calls
animate.py - Observer test → State observer: may exercise
- Observer test → Residuals: may exercise
- Sensor experiment → Sensor fault: may use
- Actuator experiment → Actuator fault: may use
- Fault sweep → Sensor experiment: may evaluate
- Fault sweep → Actuator experiment: may evaluate
- Result plotting → Baseline experiment: may plot
- Result plotting → Observer test: may plot
- Result plotting → Sensor experiment: may plot
- Result plotting → Actuator experiment: may plot