SlideShare a Scribd company logo
1 of 36
Toward an Equation-Oriented Framework for
Diagnosis of Complex Systems
Gregory Provan and Alexander Feldman
Apr 19, 2013, Nottingham
Overview
• Motivation
• Related Work
– Lydia-NG vs. MODELICA
• LYDIA-NG Overview
• Examples
– Circuits
– Thermo-Fluid Systems
• Summary
Motivation
• How can MODELICA libraries be used for Model-
Based Diagnosis (MBD)?
• Significant value in MODELICA libraries
– Can this be leveraged for MBD?
• Must understand difference between
– Simulation (via MODELICA)
– MBD
Contributions
• Equation-based framework for Model-Based
Diagnosis
– Generalisation of MODELICA (inference)
– Uses multiple simulation tools, as well as
diagnosis inference tools
• Application to several systems
– Circuits, thermo-fluid systems
Diagnostics Modeling
• Assume component-based framework
• Each component has operating mode
– Mode defines a set of dynamical equations
– Example
• y = f(x,h)
• y : output; x: state vector; h: mode
Example: Boolean XOR
system xor2(bool o, i1, i2)
{
bool h;
attribute health(h) = h;
h => (o = (i1 != i2));
!h => (o = !(i1 != i2));
}
modes
mode variable
like annotations
Simulation
• Given inputs and a health state, compute outputs
x: input, y: output,
f: system function, fi: component functions
• Simulate: solve problem y = f(x)
y = f(x)x
f1 f2
f4 f5
f3
Fault Diagnosis
• Identify component(s) that are root cause of failure
(error)
x, y: observation vectors
f: system function, fi: component functions
h: system health state vector, hi: component health variables
• Diagnose failure: solve inverse problem h = f-1(x,y)
• Diagnosis: h2 = fault state, or h4 and h5 = fault state
y = f(x,h)x
f1 f2
f4 f5
f3 healthy
faulty
Simulation vs. Diagnosis
• Simulation
– solving a system of equations for some output
variables
• Diagnosis
– solving a system of equations for some set of health
variables,
– However:
• Diagnostic systems typically under-constrained due to
ignorance of abnormal behavior, etc.
• Simulation systems often constructed to have one solution,
– in diagnosis we want to compute multiple solutions
(hypotheses/diagnostic candidates)
Overview
• Motivation
• Related Work
– Lydia-NG vs. MODELICA
• LYDIA-NG Overview
• Examples
– Circuits
– Thermo-Fluid Systems
• Summary
Related Work
• RODELICA
– Atemporal, interval-based approach
• MODELICA
• Bond graphs
LYDIA-NG and MODELICA
• LYDIA-NG is very similar to MODELICA
– solves MODELICA models for some parameters
– we plan a MODELICA translation tool for easy
modeling
• problem is some MODELICA component libraries include
non-declarative model entities
LYDIA-NG vs. MODELICA
• LYDIA-NG
– Braces (C/C++/Verilog)
– Not object-oriented
(may become in the
future)
– strongly-typed
– quantified
(existential, universal),
static expansion
• MODELICA
– begin/end
(Pascal/VHDL)
– object-oriented
– strongly-typed
– less static
LYDIA-NG vs. MODELICA (cont.)
• LYDIA-NG
– no connectors (only
variables)
– no flow variables (a.k.a.
write your own “global”
equations)
– fairly complex data types:
structures, arrays, array
of structures, etc.
– special treatment of
Boolean systems (legacy)
• MODELICA
– uses connectors
– flow variables
(equation sugar)
Compilation and Inference
• LYDIA-NG
– Compilation not a key
aspect
• Output C code can be
used by any inference
system
• MODELICA
– Compilation key
aspect for efficiency
– Compilation can lead
to incompatibility
among MODELICA
inference systems
LYDIA-NG Example
system HeatingCoil(PneumaticPort pneumaticCold, pneumaticHot,
HydraulicPort hydraulicCold, hydraulicHot)
{
float c = 4180.0; // water specific heat
float coldSideCapacitanceRate = pneumaticCold.mflow * c;
float hotSideCapacitanceRate = hydraulicCold.mflow * c;
float eff = 0.6;
float minCapacitanceRate = min(coldSideCapacitanceRate,
hotSideCapacitanceRate);
float maxCapacitanceRate = max(coldSideCapacitanceRate,
hotSideCapacitanceRate);
float heatRate = eff * minCapacitanceRate *
(hydraulicHot.T - pneumaticCold.T);
hydraulicHot.T = hydraulicCold.T - heatRate / (hydraulicCold.mflow * c);
pneumaticHot.T = pneumaticCold.T + heatRate / (pneumaticCold.mflow * c);
}
LYDIA-NG
• LYDIA-NG is a diagnostic framework
– Use cases:
• modeling of diagnostic systems (also an IDE)
• running of diagnostic scenarios in batch mode (computation
of diagnostic metrics)
• embedding in a SCADA system, e.g., a BMS
• Our view on the development of LYDIA-NG
– collection of tools (simulators, translators, etc.)
– simple interfaces (our users are not assumed to be
expert MBD users)
– higher coding/documentation/knowledge
dissemination standards than typical projects
LYDIA-NG Overview
• Core libraries
– simulation
• SPICE
• symbolic
• ODEs/DAEs
• Boolean circuits (old LYDIA heritage)
– diagnosis
• forward reasoning (simulation for various health/fault states)
• backward reasoning (residual analysis)
– disambiguation
• entropy-based selection of tests
• virtual sensors (by-product)
LYDIA-NG Approach to Diagnosis
• The main idea is to run
multiple-simulations
simultaneously (each
simulation reflects
different health state)
• Choose those
simulations that
minimize some
residual function
• Report diagnosis as a
probability of each
component being
healthy/faulty
Model
Generate
diagnostic
assumptions
health1 health2 healthn
Simulate Simulate ... Simulate
prediction1 prediction2
predictionn
Sensor
readings Analyze
residual
Analyze
residual ... Analyze
residual
candidate1 candidate2 candidaten
Choose
plausible
candidates
set of plausible candidates
Compute probability for
each component state
(healthy, faulty)
State of LYDIA-NG Development
• LYDIA-NG has reached a
milestone in diagnosing an
electrical system
– results show that the
software will be useful in
practice
– releasing version 1.0 after
fixing some
bugs, documentation, an
d testing
– preview versions of the
software continuously
made available to
EMWiNS team members
for purpose of progress-
tracking, collaboration, a
nd planning
Validation of Diagnostics
• Validation of diagnostics is in general more
difficult than that of simulation
– simulation accuracy metrics such as mean difference
from measured values
– diagnostic accuracy metrics are interrelated (false
positives vs. false negatives, classification errors, etc.)
– diagnostic metrics are often domain-dependent
(e.g., energy)
– diagnostic world is “less closed”, some metrics can be
computed only after, e.g., “repair”
Overview
• Motivation
• Related Work
– LYDIA-NG vs. Modelica
• LYDIA-NG Overview
• Examples
– Circuits
– Thermo-Fluid Systems
• Summary
A Small Boolean Circuit
GOCE Electrical Power System
4/21/2013 24
Use-Cases
• Many Boolean circuits (ISCAS-85)
– show properties of complex systems, easier to
analyze complexity
– check correctness of some diagnostic algorithms
• Analog electrical circuits (GOCE satellite EPS,
NASA’s ADAPT)
• Thermal-fluid systems (UCC’s AHU-9)
Use-Case AHU System
AHU Modeling
LYDIA-NG and AHU-9
• Modeling effort
includes the
following:
– Top-level
topology (100%)
– Component fault-
modes and user
commands
(100%)
– Component
equations (0%)
• Model
parametrization
and calibration
AHU Simulation
• ODE
– not stiff
– RK4 will do the job
– error is function of the step-size
• We need to maintain multiple simulations that
can be stopped/continued whenever sensor data
arrives
• Some ODEs reduce to algebraic equations –
we also saw from GOCE that fault simulations
are cheaper in terms of CPU time, memory
Overview
• Motivation
• Related Work
– LYDIA-NG vs. Modelica
• LYDIA-NG Overview
• Examples
– Circuits
– Thermo-Fluid Systems
• Summary
Summary
• LYDIA-NG: MBD framework
– Accepts multiple equation types
– Generalises MODELICA
• mode-based equations
• Wider range of inference algorithms
Future Work
• Integrate control
• Extend language to wider range of dynamical
systems
• Examine other real-world applications
– thermal systems
– Mechanical systems (drive trains)
• DXC-2013
Call for Participation
• Want to play with/test/develop LYDIA-NG?
– LYDIA-NG is free for academic use/open-source
– send an email to alex@general-diagnostics.com
• Want to apply LYDIA-NG to your research/write
a paper?
• Want to extend LYDIA-NG to solve #@!
equations?
4/21/2013 33
Come to DX-2013
• Come to DX-2013, Oct 1-4, Dan Panorama
Hotel, Jerusalem (http://dx-2013.org/)
• DXC-2013
• synthetic track (ISCAS)
• electrical system (ADAPT)
• thermal fluid system (AHU-9)
• software track
4/21/2013 34
Future (Present) Work
4/21/2013 35
Thank You

More Related Content

Similar to Toward an Equation-Oriented Framework for Diagnosis of Complex Systems

Introduction to Modeling and Simulations.ppt
Introduction to Modeling and Simulations.pptIntroduction to Modeling and Simulations.ppt
Introduction to Modeling and Simulations.pptQasimAli493018
 
Survey on Software Defect Prediction
Survey on Software Defect PredictionSurvey on Software Defect Prediction
Survey on Software Defect Predictionlifove
 
(ATS4-DEV02) Accelrys Query Service: Technology and Tools
(ATS4-DEV02) Accelrys Query Service: Technology and Tools(ATS4-DEV02) Accelrys Query Service: Technology and Tools
(ATS4-DEV02) Accelrys Query Service: Technology and ToolsBIOVIA
 
Survey on Software Defect Prediction
Survey on Software Defect PredictionSurvey on Software Defect Prediction
Survey on Software Defect PredictionSung Kim
 
Using Metrics for Fun, Developing with the KV Store + Javascript & News from ...
Using Metrics for Fun, Developing with the KV Store + Javascript & News from ...Using Metrics for Fun, Developing with the KV Store + Javascript & News from ...
Using Metrics for Fun, Developing with the KV Store + Javascript & News from ...Harry McLaren
 
Survey on Software Defect Prediction (PhD Qualifying Examination Presentation)
Survey on Software Defect Prediction (PhD Qualifying Examination Presentation)Survey on Software Defect Prediction (PhD Qualifying Examination Presentation)
Survey on Software Defect Prediction (PhD Qualifying Examination Presentation)lifove
 
Big learning 1.2
Big learning   1.2Big learning   1.2
Big learning 1.2Mohit Garg
 
An Easier Way to Prepare Clinical Trial Data for Reporting and Analysis
An Easier Way to Prepare Clinical Trial Data for Reporting and AnalysisAn Easier Way to Prepare Clinical Trial Data for Reporting and Analysis
An Easier Way to Prepare Clinical Trial Data for Reporting and AnalysisPerficient
 
Integrated modeling and simulation framework for wireless sensor networks
Integrated modeling and simulation framework for wireless sensor networksIntegrated modeling and simulation framework for wireless sensor networks
Integrated modeling and simulation framework for wireless sensor networksDaniele Gianni
 
The art of architecture
The art of architectureThe art of architecture
The art of architectureADDQ
 
simulation modeling in DSS
 simulation modeling in DSS simulation modeling in DSS
simulation modeling in DSSEnaam Alotaibi
 
Revolutionise your Machine Learning Workflow using Scikit-Learn Pipelines
Revolutionise your Machine Learning Workflow using Scikit-Learn PipelinesRevolutionise your Machine Learning Workflow using Scikit-Learn Pipelines
Revolutionise your Machine Learning Workflow using Scikit-Learn PipelinesPhilip Goddard
 
ScilabTEC 2015 - Noesis Solutions
ScilabTEC 2015 - Noesis SolutionsScilabTEC 2015 - Noesis Solutions
ScilabTEC 2015 - Noesis SolutionsScilab
 
Modelon Modelica executable requirements Ansys Conference 2016
Modelon Modelica executable requirements Ansys Conference 2016Modelon Modelica executable requirements Ansys Conference 2016
Modelon Modelica executable requirements Ansys Conference 2016Modelon
 
Optimica Compiler Toolkit - Overview
Optimica Compiler Toolkit - OverviewOptimica Compiler Toolkit - Overview
Optimica Compiler Toolkit - OverviewModelon
 
Informs presentation new ppt
Informs presentation new pptInforms presentation new ppt
Informs presentation new pptSalford Systems
 
Scaling Face Recognition with Big Data - Key Notes at DevTalks Bucharest 2017
Scaling Face Recognition with Big Data - Key Notes at DevTalks Bucharest 2017Scaling Face Recognition with Big Data - Key Notes at DevTalks Bucharest 2017
Scaling Face Recognition with Big Data - Key Notes at DevTalks Bucharest 2017VisageCloud
 
InfoEducatie - Face Recognition Architecture
InfoEducatie - Face Recognition ArchitectureInfoEducatie - Face Recognition Architecture
InfoEducatie - Face Recognition ArchitectureBogdan Bocse
 
The Art of Performance Evaluation
The Art of Performance EvaluationThe Art of Performance Evaluation
The Art of Performance EvaluationYuto Hayamizu
 

Similar to Toward an Equation-Oriented Framework for Diagnosis of Complex Systems (20)

Introduction to Modeling and Simulations.ppt
Introduction to Modeling and Simulations.pptIntroduction to Modeling and Simulations.ppt
Introduction to Modeling and Simulations.ppt
 
l1_introduction.pdf
l1_introduction.pdfl1_introduction.pdf
l1_introduction.pdf
 
Survey on Software Defect Prediction
Survey on Software Defect PredictionSurvey on Software Defect Prediction
Survey on Software Defect Prediction
 
(ATS4-DEV02) Accelrys Query Service: Technology and Tools
(ATS4-DEV02) Accelrys Query Service: Technology and Tools(ATS4-DEV02) Accelrys Query Service: Technology and Tools
(ATS4-DEV02) Accelrys Query Service: Technology and Tools
 
Survey on Software Defect Prediction
Survey on Software Defect PredictionSurvey on Software Defect Prediction
Survey on Software Defect Prediction
 
Using Metrics for Fun, Developing with the KV Store + Javascript & News from ...
Using Metrics for Fun, Developing with the KV Store + Javascript & News from ...Using Metrics for Fun, Developing with the KV Store + Javascript & News from ...
Using Metrics for Fun, Developing with the KV Store + Javascript & News from ...
 
Survey on Software Defect Prediction (PhD Qualifying Examination Presentation)
Survey on Software Defect Prediction (PhD Qualifying Examination Presentation)Survey on Software Defect Prediction (PhD Qualifying Examination Presentation)
Survey on Software Defect Prediction (PhD Qualifying Examination Presentation)
 
Big learning 1.2
Big learning   1.2Big learning   1.2
Big learning 1.2
 
An Easier Way to Prepare Clinical Trial Data for Reporting and Analysis
An Easier Way to Prepare Clinical Trial Data for Reporting and AnalysisAn Easier Way to Prepare Clinical Trial Data for Reporting and Analysis
An Easier Way to Prepare Clinical Trial Data for Reporting and Analysis
 
Integrated modeling and simulation framework for wireless sensor networks
Integrated modeling and simulation framework for wireless sensor networksIntegrated modeling and simulation framework for wireless sensor networks
Integrated modeling and simulation framework for wireless sensor networks
 
The art of architecture
The art of architectureThe art of architecture
The art of architecture
 
simulation modeling in DSS
 simulation modeling in DSS simulation modeling in DSS
simulation modeling in DSS
 
Revolutionise your Machine Learning Workflow using Scikit-Learn Pipelines
Revolutionise your Machine Learning Workflow using Scikit-Learn PipelinesRevolutionise your Machine Learning Workflow using Scikit-Learn Pipelines
Revolutionise your Machine Learning Workflow using Scikit-Learn Pipelines
 
ScilabTEC 2015 - Noesis Solutions
ScilabTEC 2015 - Noesis SolutionsScilabTEC 2015 - Noesis Solutions
ScilabTEC 2015 - Noesis Solutions
 
Modelon Modelica executable requirements Ansys Conference 2016
Modelon Modelica executable requirements Ansys Conference 2016Modelon Modelica executable requirements Ansys Conference 2016
Modelon Modelica executable requirements Ansys Conference 2016
 
Optimica Compiler Toolkit - Overview
Optimica Compiler Toolkit - OverviewOptimica Compiler Toolkit - Overview
Optimica Compiler Toolkit - Overview
 
Informs presentation new ppt
Informs presentation new pptInforms presentation new ppt
Informs presentation new ppt
 
Scaling Face Recognition with Big Data - Key Notes at DevTalks Bucharest 2017
Scaling Face Recognition with Big Data - Key Notes at DevTalks Bucharest 2017Scaling Face Recognition with Big Data - Key Notes at DevTalks Bucharest 2017
Scaling Face Recognition with Big Data - Key Notes at DevTalks Bucharest 2017
 
InfoEducatie - Face Recognition Architecture
InfoEducatie - Face Recognition ArchitectureInfoEducatie - Face Recognition Architecture
InfoEducatie - Face Recognition Architecture
 
The Art of Performance Evaluation
The Art of Performance EvaluationThe Art of Performance Evaluation
The Art of Performance Evaluation
 

Recently uploaded

2k Shot Call girls Karol Bagh Delhi 9205541914
2k Shot Call girls Karol Bagh Delhi 92055419142k Shot Call girls Karol Bagh Delhi 9205541914
2k Shot Call girls Karol Bagh Delhi 9205541914Delhi Call girls
 
3D Architectural Rendering Company by Panoram CGI
3D Architectural Rendering Company by Panoram CGI3D Architectural Rendering Company by Panoram CGI
3D Architectural Rendering Company by Panoram CGIPanoram CGI
 
Kohinoor Hinjewadi Phase 2 Pune E-Brochure.pdf
Kohinoor Hinjewadi Phase 2 Pune  E-Brochure.pdfKohinoor Hinjewadi Phase 2 Pune  E-Brochure.pdf
Kohinoor Hinjewadi Phase 2 Pune E-Brochure.pdfManishSaxena95
 
Call Girls in Karkardooma Delhi +91 84487779280}Woman Seeking Man in Delhi NCR
Call Girls in Karkardooma Delhi +91 84487779280}Woman Seeking Man in Delhi NCRCall Girls in Karkardooma Delhi +91 84487779280}Woman Seeking Man in Delhi NCR
Call Girls in Karkardooma Delhi +91 84487779280}Woman Seeking Man in Delhi NCRasmaqueen5
 
9990771857 Call Girls in Dwarka Sector 2 Delhi (Call Girls) Delhi
9990771857 Call Girls in Dwarka Sector 2 Delhi (Call Girls) Delhi9990771857 Call Girls in Dwarka Sector 2 Delhi (Call Girls) Delhi
9990771857 Call Girls in Dwarka Sector 2 Delhi (Call Girls) Delhidelhimodel235
 
Majestique Viman Nagar Pune Brochure.pdf
Majestique Viman Nagar Pune Brochure.pdfMajestique Viman Nagar Pune Brochure.pdf
Majestique Viman Nagar Pune Brochure.pdfBabyrudram
 
SVN Live 5.6.24 Weekly Property Broadcast
SVN Live 5.6.24 Weekly Property BroadcastSVN Live 5.6.24 Weekly Property Broadcast
SVN Live 5.6.24 Weekly Property BroadcastSVN International Corp.
 
Properties for Sale in Istanbul with Schools and Parks | Antalya Development
Properties for Sale in Istanbul with Schools and Parks | Antalya DevelopmentProperties for Sale in Istanbul with Schools and Parks | Antalya Development
Properties for Sale in Istanbul with Schools and Parks | Antalya DevelopmentAntalya Development
 
9990771857 Call Girls Dwarka Sector 9 Delhi (Call Girls ) Delhi
9990771857 Call Girls Dwarka Sector 9 Delhi (Call Girls ) Delhi9990771857 Call Girls Dwarka Sector 9 Delhi (Call Girls ) Delhi
9990771857 Call Girls Dwarka Sector 9 Delhi (Call Girls ) Delhidelhimodel235
 
BDSM⚡Call Girls in Sector 57 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 57 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 57 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 57 Noida Escorts >༒8448380779 Escort ServiceDelhi Call girls
 
Greater Vancouver Realtors Statistics Package April 2024
Greater Vancouver Realtors Statistics Package April 2024Greater Vancouver Realtors Statistics Package April 2024
Greater Vancouver Realtors Statistics Package April 2024VickyAulakh1
 
2k Shot Call girls Aiims Delhi 9205541914
2k Shot Call girls Aiims Delhi 92055419142k Shot Call girls Aiims Delhi 9205541914
2k Shot Call girls Aiims Delhi 9205541914Delhi Call girls
 
Kohinoor Flats In Hinjewadi Phase 2 | Homes Built To Suit Your Needs
Kohinoor Flats In Hinjewadi Phase 2 | Homes Built To Suit Your NeedsKohinoor Flats In Hinjewadi Phase 2 | Homes Built To Suit Your Needs
Kohinoor Flats In Hinjewadi Phase 2 | Homes Built To Suit Your Needsaidasheikh47
 
Best Deal Virtual Space in Satya The Hive Tata Zudio 750 Sqft 1.89 Cr All inc...
Best Deal Virtual Space in Satya The Hive Tata Zudio 750 Sqft 1.89 Cr All inc...Best Deal Virtual Space in Satya The Hive Tata Zudio 750 Sqft 1.89 Cr All inc...
Best Deal Virtual Space in Satya The Hive Tata Zudio 750 Sqft 1.89 Cr All inc...ApartmentWala1
 
TENANT SCREENING REPORT SERVICES​ How Tenant Screening Reports Work
TENANT SCREENING REPORT SERVICES​ How Tenant Screening Reports WorkTENANT SCREENING REPORT SERVICES​ How Tenant Screening Reports Work
TENANT SCREENING REPORT SERVICES​ How Tenant Screening Reports WorkTurbo Tenant
 
M3M The Line Brochure - Premium Investment Opportunity for Commercial Ventures
M3M The Line Brochure - Premium Investment Opportunity for Commercial VenturesM3M The Line Brochure - Premium Investment Opportunity for Commercial Ventures
M3M The Line Brochure - Premium Investment Opportunity for Commercial Venturessheltercareglobal
 
9990771857 Call Girls in Dwarka Sector 1 Delhi (Call Girls) Delhi
9990771857 Call Girls in Dwarka Sector 1 Delhi (Call Girls) Delhi9990771857 Call Girls in Dwarka Sector 1 Delhi (Call Girls) Delhi
9990771857 Call Girls in Dwarka Sector 1 Delhi (Call Girls) Delhidelhimodel235
 
call girls in ganesh nagar Delhi 8264348440 ✅ call girls ❤️
call girls in ganesh nagar Delhi 8264348440 ✅ call girls ❤️call girls in ganesh nagar Delhi 8264348440 ✅ call girls ❤️
call girls in ganesh nagar Delhi 8264348440 ✅ call girls ❤️soniya singh
 
9990771857 Call Girls in Dwarka Sector 137 Noida (Call Girls) Delhi
9990771857 Call Girls in Dwarka Sector 137 Noida (Call Girls) Delhi9990771857 Call Girls in Dwarka Sector 137 Noida (Call Girls) Delhi
9990771857 Call Girls in Dwarka Sector 137 Noida (Call Girls) Delhidelhimodel235
 
Premium Villa Projects in Sarjapur Road Bengaluru
Premium Villa Projects in Sarjapur Road BengaluruPremium Villa Projects in Sarjapur Road Bengaluru
Premium Villa Projects in Sarjapur Road BengaluruShivaSeo3
 

Recently uploaded (20)

2k Shot Call girls Karol Bagh Delhi 9205541914
2k Shot Call girls Karol Bagh Delhi 92055419142k Shot Call girls Karol Bagh Delhi 9205541914
2k Shot Call girls Karol Bagh Delhi 9205541914
 
3D Architectural Rendering Company by Panoram CGI
3D Architectural Rendering Company by Panoram CGI3D Architectural Rendering Company by Panoram CGI
3D Architectural Rendering Company by Panoram CGI
 
Kohinoor Hinjewadi Phase 2 Pune E-Brochure.pdf
Kohinoor Hinjewadi Phase 2 Pune  E-Brochure.pdfKohinoor Hinjewadi Phase 2 Pune  E-Brochure.pdf
Kohinoor Hinjewadi Phase 2 Pune E-Brochure.pdf
 
Call Girls in Karkardooma Delhi +91 84487779280}Woman Seeking Man in Delhi NCR
Call Girls in Karkardooma Delhi +91 84487779280}Woman Seeking Man in Delhi NCRCall Girls in Karkardooma Delhi +91 84487779280}Woman Seeking Man in Delhi NCR
Call Girls in Karkardooma Delhi +91 84487779280}Woman Seeking Man in Delhi NCR
 
9990771857 Call Girls in Dwarka Sector 2 Delhi (Call Girls) Delhi
9990771857 Call Girls in Dwarka Sector 2 Delhi (Call Girls) Delhi9990771857 Call Girls in Dwarka Sector 2 Delhi (Call Girls) Delhi
9990771857 Call Girls in Dwarka Sector 2 Delhi (Call Girls) Delhi
 
Majestique Viman Nagar Pune Brochure.pdf
Majestique Viman Nagar Pune Brochure.pdfMajestique Viman Nagar Pune Brochure.pdf
Majestique Viman Nagar Pune Brochure.pdf
 
SVN Live 5.6.24 Weekly Property Broadcast
SVN Live 5.6.24 Weekly Property BroadcastSVN Live 5.6.24 Weekly Property Broadcast
SVN Live 5.6.24 Weekly Property Broadcast
 
Properties for Sale in Istanbul with Schools and Parks | Antalya Development
Properties for Sale in Istanbul with Schools and Parks | Antalya DevelopmentProperties for Sale in Istanbul with Schools and Parks | Antalya Development
Properties for Sale in Istanbul with Schools and Parks | Antalya Development
 
9990771857 Call Girls Dwarka Sector 9 Delhi (Call Girls ) Delhi
9990771857 Call Girls Dwarka Sector 9 Delhi (Call Girls ) Delhi9990771857 Call Girls Dwarka Sector 9 Delhi (Call Girls ) Delhi
9990771857 Call Girls Dwarka Sector 9 Delhi (Call Girls ) Delhi
 
BDSM⚡Call Girls in Sector 57 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 57 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 57 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 57 Noida Escorts >༒8448380779 Escort Service
 
Greater Vancouver Realtors Statistics Package April 2024
Greater Vancouver Realtors Statistics Package April 2024Greater Vancouver Realtors Statistics Package April 2024
Greater Vancouver Realtors Statistics Package April 2024
 
2k Shot Call girls Aiims Delhi 9205541914
2k Shot Call girls Aiims Delhi 92055419142k Shot Call girls Aiims Delhi 9205541914
2k Shot Call girls Aiims Delhi 9205541914
 
Kohinoor Flats In Hinjewadi Phase 2 | Homes Built To Suit Your Needs
Kohinoor Flats In Hinjewadi Phase 2 | Homes Built To Suit Your NeedsKohinoor Flats In Hinjewadi Phase 2 | Homes Built To Suit Your Needs
Kohinoor Flats In Hinjewadi Phase 2 | Homes Built To Suit Your Needs
 
Best Deal Virtual Space in Satya The Hive Tata Zudio 750 Sqft 1.89 Cr All inc...
Best Deal Virtual Space in Satya The Hive Tata Zudio 750 Sqft 1.89 Cr All inc...Best Deal Virtual Space in Satya The Hive Tata Zudio 750 Sqft 1.89 Cr All inc...
Best Deal Virtual Space in Satya The Hive Tata Zudio 750 Sqft 1.89 Cr All inc...
 
TENANT SCREENING REPORT SERVICES​ How Tenant Screening Reports Work
TENANT SCREENING REPORT SERVICES​ How Tenant Screening Reports WorkTENANT SCREENING REPORT SERVICES​ How Tenant Screening Reports Work
TENANT SCREENING REPORT SERVICES​ How Tenant Screening Reports Work
 
M3M The Line Brochure - Premium Investment Opportunity for Commercial Ventures
M3M The Line Brochure - Premium Investment Opportunity for Commercial VenturesM3M The Line Brochure - Premium Investment Opportunity for Commercial Ventures
M3M The Line Brochure - Premium Investment Opportunity for Commercial Ventures
 
9990771857 Call Girls in Dwarka Sector 1 Delhi (Call Girls) Delhi
9990771857 Call Girls in Dwarka Sector 1 Delhi (Call Girls) Delhi9990771857 Call Girls in Dwarka Sector 1 Delhi (Call Girls) Delhi
9990771857 Call Girls in Dwarka Sector 1 Delhi (Call Girls) Delhi
 
call girls in ganesh nagar Delhi 8264348440 ✅ call girls ❤️
call girls in ganesh nagar Delhi 8264348440 ✅ call girls ❤️call girls in ganesh nagar Delhi 8264348440 ✅ call girls ❤️
call girls in ganesh nagar Delhi 8264348440 ✅ call girls ❤️
 
9990771857 Call Girls in Dwarka Sector 137 Noida (Call Girls) Delhi
9990771857 Call Girls in Dwarka Sector 137 Noida (Call Girls) Delhi9990771857 Call Girls in Dwarka Sector 137 Noida (Call Girls) Delhi
9990771857 Call Girls in Dwarka Sector 137 Noida (Call Girls) Delhi
 
Premium Villa Projects in Sarjapur Road Bengaluru
Premium Villa Projects in Sarjapur Road BengaluruPremium Villa Projects in Sarjapur Road Bengaluru
Premium Villa Projects in Sarjapur Road Bengaluru
 

Toward an Equation-Oriented Framework for Diagnosis of Complex Systems

  • 1. Toward an Equation-Oriented Framework for Diagnosis of Complex Systems Gregory Provan and Alexander Feldman Apr 19, 2013, Nottingham
  • 2. Overview • Motivation • Related Work – Lydia-NG vs. MODELICA • LYDIA-NG Overview • Examples – Circuits – Thermo-Fluid Systems • Summary
  • 3. Motivation • How can MODELICA libraries be used for Model- Based Diagnosis (MBD)? • Significant value in MODELICA libraries – Can this be leveraged for MBD? • Must understand difference between – Simulation (via MODELICA) – MBD
  • 4. Contributions • Equation-based framework for Model-Based Diagnosis – Generalisation of MODELICA (inference) – Uses multiple simulation tools, as well as diagnosis inference tools • Application to several systems – Circuits, thermo-fluid systems
  • 5. Diagnostics Modeling • Assume component-based framework • Each component has operating mode – Mode defines a set of dynamical equations – Example • y = f(x,h) • y : output; x: state vector; h: mode
  • 6. Example: Boolean XOR system xor2(bool o, i1, i2) { bool h; attribute health(h) = h; h => (o = (i1 != i2)); !h => (o = !(i1 != i2)); } modes mode variable like annotations
  • 7. Simulation • Given inputs and a health state, compute outputs x: input, y: output, f: system function, fi: component functions • Simulate: solve problem y = f(x) y = f(x)x f1 f2 f4 f5 f3
  • 8. Fault Diagnosis • Identify component(s) that are root cause of failure (error) x, y: observation vectors f: system function, fi: component functions h: system health state vector, hi: component health variables • Diagnose failure: solve inverse problem h = f-1(x,y) • Diagnosis: h2 = fault state, or h4 and h5 = fault state y = f(x,h)x f1 f2 f4 f5 f3 healthy faulty
  • 9. Simulation vs. Diagnosis • Simulation – solving a system of equations for some output variables • Diagnosis – solving a system of equations for some set of health variables, – However: • Diagnostic systems typically under-constrained due to ignorance of abnormal behavior, etc. • Simulation systems often constructed to have one solution, – in diagnosis we want to compute multiple solutions (hypotheses/diagnostic candidates)
  • 10. Overview • Motivation • Related Work – Lydia-NG vs. MODELICA • LYDIA-NG Overview • Examples – Circuits – Thermo-Fluid Systems • Summary
  • 11. Related Work • RODELICA – Atemporal, interval-based approach • MODELICA • Bond graphs
  • 12. LYDIA-NG and MODELICA • LYDIA-NG is very similar to MODELICA – solves MODELICA models for some parameters – we plan a MODELICA translation tool for easy modeling • problem is some MODELICA component libraries include non-declarative model entities
  • 13. LYDIA-NG vs. MODELICA • LYDIA-NG – Braces (C/C++/Verilog) – Not object-oriented (may become in the future) – strongly-typed – quantified (existential, universal), static expansion • MODELICA – begin/end (Pascal/VHDL) – object-oriented – strongly-typed – less static
  • 14. LYDIA-NG vs. MODELICA (cont.) • LYDIA-NG – no connectors (only variables) – no flow variables (a.k.a. write your own “global” equations) – fairly complex data types: structures, arrays, array of structures, etc. – special treatment of Boolean systems (legacy) • MODELICA – uses connectors – flow variables (equation sugar)
  • 15. Compilation and Inference • LYDIA-NG – Compilation not a key aspect • Output C code can be used by any inference system • MODELICA – Compilation key aspect for efficiency – Compilation can lead to incompatibility among MODELICA inference systems
  • 16. LYDIA-NG Example system HeatingCoil(PneumaticPort pneumaticCold, pneumaticHot, HydraulicPort hydraulicCold, hydraulicHot) { float c = 4180.0; // water specific heat float coldSideCapacitanceRate = pneumaticCold.mflow * c; float hotSideCapacitanceRate = hydraulicCold.mflow * c; float eff = 0.6; float minCapacitanceRate = min(coldSideCapacitanceRate, hotSideCapacitanceRate); float maxCapacitanceRate = max(coldSideCapacitanceRate, hotSideCapacitanceRate); float heatRate = eff * minCapacitanceRate * (hydraulicHot.T - pneumaticCold.T); hydraulicHot.T = hydraulicCold.T - heatRate / (hydraulicCold.mflow * c); pneumaticHot.T = pneumaticCold.T + heatRate / (pneumaticCold.mflow * c); }
  • 17. LYDIA-NG • LYDIA-NG is a diagnostic framework – Use cases: • modeling of diagnostic systems (also an IDE) • running of diagnostic scenarios in batch mode (computation of diagnostic metrics) • embedding in a SCADA system, e.g., a BMS • Our view on the development of LYDIA-NG – collection of tools (simulators, translators, etc.) – simple interfaces (our users are not assumed to be expert MBD users) – higher coding/documentation/knowledge dissemination standards than typical projects
  • 18. LYDIA-NG Overview • Core libraries – simulation • SPICE • symbolic • ODEs/DAEs • Boolean circuits (old LYDIA heritage) – diagnosis • forward reasoning (simulation for various health/fault states) • backward reasoning (residual analysis) – disambiguation • entropy-based selection of tests • virtual sensors (by-product)
  • 19. LYDIA-NG Approach to Diagnosis • The main idea is to run multiple-simulations simultaneously (each simulation reflects different health state) • Choose those simulations that minimize some residual function • Report diagnosis as a probability of each component being healthy/faulty Model Generate diagnostic assumptions health1 health2 healthn Simulate Simulate ... Simulate prediction1 prediction2 predictionn Sensor readings Analyze residual Analyze residual ... Analyze residual candidate1 candidate2 candidaten Choose plausible candidates set of plausible candidates Compute probability for each component state (healthy, faulty)
  • 20. State of LYDIA-NG Development • LYDIA-NG has reached a milestone in diagnosing an electrical system – results show that the software will be useful in practice – releasing version 1.0 after fixing some bugs, documentation, an d testing – preview versions of the software continuously made available to EMWiNS team members for purpose of progress- tracking, collaboration, a nd planning
  • 21. Validation of Diagnostics • Validation of diagnostics is in general more difficult than that of simulation – simulation accuracy metrics such as mean difference from measured values – diagnostic accuracy metrics are interrelated (false positives vs. false negatives, classification errors, etc.) – diagnostic metrics are often domain-dependent (e.g., energy) – diagnostic world is “less closed”, some metrics can be computed only after, e.g., “repair”
  • 22. Overview • Motivation • Related Work – LYDIA-NG vs. Modelica • LYDIA-NG Overview • Examples – Circuits – Thermo-Fluid Systems • Summary
  • 23. A Small Boolean Circuit
  • 24. GOCE Electrical Power System 4/21/2013 24
  • 25. Use-Cases • Many Boolean circuits (ISCAS-85) – show properties of complex systems, easier to analyze complexity – check correctness of some diagnostic algorithms • Analog electrical circuits (GOCE satellite EPS, NASA’s ADAPT) • Thermal-fluid systems (UCC’s AHU-9)
  • 28. LYDIA-NG and AHU-9 • Modeling effort includes the following: – Top-level topology (100%) – Component fault- modes and user commands (100%) – Component equations (0%) • Model parametrization and calibration
  • 29. AHU Simulation • ODE – not stiff – RK4 will do the job – error is function of the step-size • We need to maintain multiple simulations that can be stopped/continued whenever sensor data arrives • Some ODEs reduce to algebraic equations – we also saw from GOCE that fault simulations are cheaper in terms of CPU time, memory
  • 30. Overview • Motivation • Related Work – LYDIA-NG vs. Modelica • LYDIA-NG Overview • Examples – Circuits – Thermo-Fluid Systems • Summary
  • 31. Summary • LYDIA-NG: MBD framework – Accepts multiple equation types – Generalises MODELICA • mode-based equations • Wider range of inference algorithms
  • 32. Future Work • Integrate control • Extend language to wider range of dynamical systems • Examine other real-world applications – thermal systems – Mechanical systems (drive trains) • DXC-2013
  • 33. Call for Participation • Want to play with/test/develop LYDIA-NG? – LYDIA-NG is free for academic use/open-source – send an email to alex@general-diagnostics.com • Want to apply LYDIA-NG to your research/write a paper? • Want to extend LYDIA-NG to solve #@! equations? 4/21/2013 33
  • 34. Come to DX-2013 • Come to DX-2013, Oct 1-4, Dan Panorama Hotel, Jerusalem (http://dx-2013.org/) • DXC-2013 • synthetic track (ISCAS) • electrical system (ADAPT) • thermal fluid system (AHU-9) • software track 4/21/2013 34