Giter Site home page Giter Site logo

falsifai's Introduction

FalsifAI

This repository is for the artifact evaluation of the paper "FalsifAI: Falsification of AI-Enabled Hybrid Control Systems Guided by Time-Aware Coverage Criteria".

System requirement

Folder Structure Conventions

.
├── Makefile
├── README.md
├── benchmarks
│   ├── train
│   │   ├── ACC
│   │   │   ├── ACC_config.txt
│   │   │   ├── ACC_falsification.m
│   │   │   ├── ACC_falsify.m
│   │   │   └── ACC_trainController.m
│   │   ├── AFC
│   │   │   ├── AFC_config.txt
│   │   │   ├── AFC_falsification.m
│   │   │   ├── AFC_falsify.m
│   │   │   └── AFC_trainController.m
│   │   └── DPC
│   │       ├── buck_config.txt
│   │       ├── buck_falsification.m
│   │       ├── buck_falsify.m
│   │       └── buck_trainController.m
│   ├── ACC
│   │   ├── dataset
│   │   │   └── ACC_trainset.mat
│   │   ├── model
│   │   │   ├── mpcACCsystem.slx
│   │   │   └── nncACCsystem.slx
│   │   ├── nnconfig
│   │   └── nncontroller
│   ├── AFC
│   │   ├── dataset
│   │   │   └── AFC_trainset.mat
│   │   ├── model
│   │   │   ├── fuel_control.slx
│   │   │   └── nn_fuel_control.slx
│   │   ├── nnconfig
│   │   └── nncontroller
│   └── DPC
│       ├── dataset
│       │   └── buck_trainset.mat
│       ├── model
│       │   ├── my_buck_pid.slx
│       │   └── buck_nn.slx
│       ├── nnconfig
│       └── nncontroller
├── log/
├── results/
├── run
├── robustness_calculator.m(relied on Breach)
├── src
│   ├── TestGen.m
│   ├── main.m
│   ├── nc
│   │   ├── NC.m
│   │   ├── TKC.m
│   │   ├── TNC.m
│   │   ├── TTK.m
│   │   ├── PD.m
│   │   ├── ND.m
│   │   ├── MI.m
│   │   └── MD.m
│   └── util
│       └── CQueue.m
└── test
│   ├── falsifai_test.py
│   ├── breach_test.py
│   ├── scripts
│   └── config
│       ├── AI
│       │   ├── acc.conf
│       │   ├── afc.conf
│       │   └── dpc.conf
│       └── breach
│           ├── acc.conf
│           ├── afc.conf
│           └── dpc.conf
└── analyses
    ├── results.txt
    └── statTest.R

Installation

  • Clone the repository git clone https://github.com/lyudeyun/FalsifAI.git

  • Install Breach

    1. start matlab, set up a C/C++ compiler using the command mex -setup. (Refer to here for more details.)
    2. navigate to breach/ in Matlab commandline, and run InstallBreach

Usage

To reproduce the experimental results, users should follow the steps below:

  • The user-specified configuration files are stored in the directory test/config/. Replace the paths of FalsifAI and breach in user-specified file under the line addpath 2 with their own paths. Users can also specify other configurations, such as model, input ranges, optimization methods, and etc.
  • Navigate to the directory test/. Run the command python [type]_test.py config/[user-specified configuration file]. Users can generate the testing scripts by ai_test.py or breach_test.py.
  • Now the executable scripts have been generated under the directory test/benchmarks/. Users need to edit the executable scripts permission using the command chmod -R 777 *.
  • Navigate to the root directory falsifAI/ and run the command make. The automatically generated .csv experimental results will be stored in directory results/.
  • The corresponding log will be stored under directory output/.

falsifai's People

Contributors

choshina avatar lyudeyun avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.