Skip to content

Latest commit

 

History

History

Tutorial

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Verification and Validation of Neural Networks in Automated Vehicles (NNV Tutorial) - E2023 IEEE IAVVC

Previous tutorial at EMSOFT'23 (Embedded Systems Week 2023)

Getting Started

We recommend using MATLAB Online (prior license not required!) to participate in this tutorial, but one can also use a local installation of MATLAB and NNV to follow along as well.

It is important that participants complete this section before arriving at the tutorial.

MATLAB Online Instructions

Registered participants should have received a link with a MATLAB license to use in this tutorial. If a participant has not received it, please contact the organizers.

Note: this license is not required if participants already have a valid license for all the toolboxes listed in installation instructions.

Create a copy of NNV into your MathWorks account (personal MATLAB Drive): NNV Online

  • Click on Open in MATLAB Online -> Copy Folder
  • This will prompt you to log into your account (or register if you don’t have one)
Note: copying NNV online may take anywhere from 15 minutes to a couple of hours.

Standalone Installation

To run NNV locally, please follow these instructions.

Interactive Tutorial

During this tutorial, one will learn how to represent convex sets as Star sets, load neural networks into NNV, compute reachability analysis of classification neural networks, compute the certified robustness of neural networks and more!

Setup

Open MATLAB Online (or MATLAB), then go to the directory where NNV exists on your machine (/code/nnv/), then run the startup_nnv.m script (startup_nnv.m).

Note: if you restart MATLAB, rerun startup_nnv.m, which will add the necessary dependencies to the path; you alternatively can run savepath after installation to avoid this step after restarting Matlab, but this may require administrative privileges.

Neural Networks (NN)

Neural Network Control Systems (NNCS)

  • Reachability analysis of an inverted pendulum.
  • Safety verification example of an Adaptive Cruise Control (ACC) system.
  • Safety verification of an Automated Emergency Braking System (AEBS)
    • This system contains several neural networks, so a custom control loop is included in the verification script.

In addition, we have also prepared a set of exercises for the participants:

  • Verification of ACAS Xu neural network with ONNX and VNNLIB files: ONNX & VNNLIB exercise
  • Robustness verification of a neural network: NN exercise)
  • Safety verification of a linearized plant model of an adaptive cruise control system: NNCS exercise