tinyHLS: a novel open source high level synthesis tool targeting hardware accelerators for artificial neural network inference
Open Access
- 29 January 2025
- journal article
- research article
- Published by IOP Publishing in Physiological Measurement
- Vol. 46 (1) , 015002
Abstract
Objective. In recent years, wearable devices such as smartwatches and smart patches have revolutionized biosignal acquisition and analysis, particularly for monitoring electrocardiography (ECG). However, the limited power supply of these devices often precludes real-time data analysis on the patch itself. Approach. This paper introduces a novel Python package, tinyHLS (High Level Synthesis), designed to address these challenges by converting Python-based AI models into platform-independent hardware description language code accelerators. Specifically designed for convolutional neural networks, tinyHLS seamlessly integrates into the AI developer’s workflow in Python TensorFlow Keras. Our methodology leverages a template-based hardware compiler that ensures flexibility, efficiency, and ease of use. In this work, tinyHLS is first-published featuring templates for several layers of neural networks, such as dense, convolution, max and global average pooling. In the first version, rectified linear unit is supported as activation. It targets one-dimensional data, with a particular focus on time series data. Main results. The generated accelerators are validated in detecting atrial fibrillation on ECG data, demonstrating significant improvements in processing speed (62-fold) and energy efficiency (4.5-fold). Quality of code and synthesizability are ensured by validating the outputs with commercial ASIC design tools. Significance. Importantly, tinyHLS is open-source and does not rely on commercial tools, making it a versatile solution for both academic and commercial applications. The paper also discusses the integration with an open-source RISC-V and potential for future enhancements of tinyHLS, including its application in edge servers and cloud computing. The source code is available on GitHub: https://github.com/Fraunhofer-IMS/tinyHLSKeywords
Funding Information
- Chips Joint Undertaking (101097560)
- Bundesministerium für Forschung, Technologie und Raumfahrt (13GW0579D)
This publication has 29 references indexed in Scilit:
- Fully digital self-screening for atrial fibrillation with patch electrocardiogramEP Europace, 2023
- Advances in Biosignal Sensing and Signal Processing Methods with Wearable DevicesAnalysis & Sensing, 2022
- Estimated incidence of previously undetected atrial fibrillation on a 14-day continuous electrocardiographic monitor and associated risk of strokeEP Europace, 2022
- Keras2c: A library for converting Keras neural networks to real-time compatible CEngineering Applications of Artificial Intelligence, 2021
- Screen-detected atrial fibrillation predicts mortality in elderly subjectsEP Europace, 2020
- Nightingale V2: Low-power Compact-sized Multi-Sensor Platform for Wearable Health Monitoring2019
- Validation of a novel single lead ambulatory ECG monitor – Cardiostat™ – Compared to a standard ECG Holter monitoringJournal of Electrocardiology, 2019
- Fast inference of deep neural networks in FPGAs for particle physicsJournal of Instrumentation, 2018
- Comparison of 24-hour Holter Monitoring with 14-day Novel Adhesive Patch Electrocardiographic MonitoringThe American Journal of Medicine, 2014
- Diagnostic Utility of a Novel Leadless Arrhythmia Monitoring DeviceThe American Journal of Cardiology, 2013