Coder Social home page Coder Social logo

pujachowdhury / paper-deterministic-and-low-latency-time-series-forecasting-of-nonstationary-signals Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arts-laboratory/paper-deterministic-and-low-latency-time-series-forecasting-of-nonstationary-signals

0.0 0.0 0.0 4.82 MB

This is a hardware implementation of time-deterministic model in LabVeiw-FPGA.

License: Creative Commons Attribution Share Alike 4.0 International

Python 2.55% LabVIEW 97.45%

paper-deterministic-and-low-latency-time-series-forecasting-of-nonstationary-signals's Introduction

Code repository for the paper "Deterministic and low-latency time-series forecasting of nonstationary signals"

REFERENCE: Puja Chowdhury, Vahid Barzegar, Joud Satme, Austin R.J. Downey, Simon Laflamme, Jason D. Bakos, and Chao Hub. Deterministic and low-latency time-series forecasting of nonstationary signals. In Proceedings of 2022 SPIE Smart Structures + Nondestructive Evaluation, 2022

Hardware Validation:

In this work, hardware validation is done on a Kintex-7 70T FPGA housed in a NI cRIO-9035 that also incorporates a CPU running NI Linux Real-Time. Fig. 1 diagrams how data is collected and processed on the FPGA, as well as how data is transmitted through the parallel MLP tracks. The sampling rate of the system is set to 25,000 S/s and is restricted to intervals of the internal clock of the 24-bit ADC used in this project, a NI-9239 manufactured by NI. Data is passed from the DAQ to a set of 50 registers, stored in the FPGA’s look-up table memory. The registers make up a software-defined rolling buffer of the 50 most recent digitized signals. The rolling buffer is sub-sampled at 5,000 S/s, 6,250 S/s, and 8,333 S/s for the three different MLP tracks. The data is then normalized, by detecting maximum and minimum values from input data and ranging the data between -1 to 1. Next, the normalized data is fed through the MLP (i.e. forward pass) to obtain a prediction that is then passed to the attention layer before a final prediction of the signal 25 clock cycles (1 ms) into the future is produced.

flowchart1 Figure 1. Flow chart of data collection and processing in parallel MLP tracks

Code/FPGA:

  • 3 MLP's
  • Main goal: measure computational time for different resources.
  • Making SubVI's of large calculation part( Data manipulation MLP 1/2/3, MLP forwardpass for MLP1/2/3, Attention layer and backpropagation).
  • One flat sequence inside whole MLP's (case structure). Which has 7 FIFO's for measuring (a) start tick (b) Data In (c) Subsampling (d) Data manipulation (e) MLP forwardpass (f) Attention layer and backpropagation and (g) end tick.
  • Run in compile mode.
  • Open with project.lvproj>host.vi(shows the output) and target.vi(whole MLP algothithum code)
  • Used data: \data\data_set_1\data_100points.csv

Result:

The deterministic characteristics of the algorithm are provided by the FPGA implementation, timing, and resource utilization are discussed here. The FPGA’s base clock is compiled at 80 MHz and a single pass through the algorithm takes 2,005 clock ticks (25.76 µs). As a new sample is digitized every 40 µs, the system is dormant for 1,195 clock ticks (14.24 µs) between each iteration as it waits for a new data point to be added to the rolling memory buffer. Fig. 2 reports the timing performance for different aspects of the process. Resource utilization is presented in Table 1, which reports the resource utilization in terms of slices used, slice availability, and percentage (%).

resource Figure 2. Time required for different aspects of the process.

    Table 1. The FPGA elements are shown by device utilization.

image

paper-deterministic-and-low-latency-time-series-forecasting-of-nonstationary-signals's People

Contributors

pujachowdhury avatar austindowney 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.