Designing Neural Networks for Real-Time Systems
- 17 July 2020
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Embedded Systems Letters
- Vol. 13 (3) , 94-97
Abstract
Artificial Neural Networks (ANNs) are increasingly being used within safety-critical Cyber-Physical Systems (CPSs). It is important to validate both the timing and functional correctness of these systems. However, most approaches in the literature consider guaranteeing only the functionality of ANN based controllers. This issue stems largely from the implementation strategies used within common neural network frameworks — their underlying source code is often simply unsuitable for formal techniques such as static timing analysis. As a result, developers of safety-critical CPS must rely on informal techniques such as measurement based approaches to prove correctness, techniques that provide weak guarantees at best. In this work we address this challenge. We propose a design pipeline whereby neural networks trained using the popular deep learning framework Keras are compiled to functionally equivalent C code. This C code is restricted to simple constructs that may be analysed by existing static timing analysis tools. As a result, if compiled to a suitable time-predictable platform all execution bounds may be statically derived. To demonstrate the benefits of our approach we execute an ANN trained to drive an autonomous vehicle around a race track. We compile the ANN to the Patmos time-predictable controller, and show that we can derive worst case execution timings.Keywords
All Related Versions
This publication has 13 references indexed in Scilit:
- Synchronous neural networks for cyber-physical systems2018
- Data-driven and model-based design2018
- Patmos: a time-predictable microprocessorReal-Time Systems, 2018
- Efficient Processing of Deep Neural Networks: A Tutorial and SurveyProceedings of the IEEE, 2017
- Tactics to Directly Map CNN Graphs on Embedded FPGAsIEEE Embedded Systems Letters, 2017
- You Only Look Once: Unified, Real-Time Object Detection2016
- T-CREST: Time-predictable multi-core architecture for embedded systemsJournal of Systems Architecture, 2015
- The T-CREST approach of compiler and WCET-analysis integration2013
- Flow*: An Analyzer for Non-linear Hybrid Systems2013
- Gradient-based learning applied to document recognitionProceedings of the IEEE, 1998