Replication Data and Code for: Real-Time Recognition of Multivariate Event-Based Time Series on Embedded Devices Using Recurrent Neural Networks: A Practical Study

DOI

This repository contains the source code and processed datasets for a deep learning framework designed to multivariate event-based time series classification applied to monitor police firearm usage via embedded sensor fusion. The software features a custom-built Recurrent Neural Network (RNN) library implemented in pure Python/NumPy, enabling the training of lightweight models (Vanilla RNN, GRU, MGRU) suitable for deployment on low-resource embedded systems.

The framework utilizes a multi-objective architecture to process simultaneous inputs from piezoelectric (vibration) and photoelectric (light) sensors. Key capabilities include "Zoneout" regularization, custom Backpropagation Through Time (BPTT), and export functionality to C-style headers for microcontroller integration. The included datasets consist of pre-processed, labelled time-series vectors representing real-world firearm manipulations (shots, reloads, and handling events)

To run the code, the .json files must be placed in a folder named example_dataset located in the same directory as the script.

GRANT INFORMATION:

Grant Agency: UdL-Banc Santander Grant Number: Ajuts UdL-Banc Santander per a la contractació de personal Predoctoral en Formació

Identifier
DOI https://doi.org/10.34810/data2956
Metadata Access https://dataverse.csuc.cat/oai?verb=GetRecord&metadataPrefix=oai_datacite&identifier=doi:10.34810/data2956
Provenance
Creator Gairí Pallarés, Pau ORCID logo; Tresanchez Ribes, Marcel ORCID logo; Pallejà Cabrè, Tomàs ORCID logo
Publisher CORA.Repositori de Dades de Recerca
Contributor Gairí Pallarés, Pau; Universitat de Lleida
Publication Year 2026
Rights MIT; info:eu-repo/semantics/openAccess; https://opensource.org/licenses/MIT
OpenAccess true
Contact Gairí Pallarés, Pau (Universitat de Lleida)
Representation
Resource Type Program source code; Dataset
Format text/x-python; text/plain; application/json
Size 9245; 11264; 83034; 32042805; 4068321
Version 1.0
Discipline Construction Engineering and Architecture; Engineering; Engineering Sciences