tinyHLS: a novel open source high level synthesis tool targeting hardware accelerators for artificial neural network inference.

IF 2.3 4区 医学 Q3 BIOPHYSICS
Ingo Hoyer, Alexander Utz, Christoph Hoog Antink, Karsten Seidl
{"title":"tinyHLS: a novel open source high level synthesis tool targeting hardware accelerators for artificial neural network inference.","authors":"Ingo Hoyer, Alexander Utz, Christoph Hoog Antink, Karsten Seidl","doi":"10.1088/1361-6579/ada8f0","DOIUrl":null,"url":null,"abstract":"<p><p><i>Objective.</i>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.<i>Approach.</i>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.<i>Main results.</i>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.<i>Significance.</i>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/tinyHLS.</p>","PeriodicalId":20047,"journal":{"name":"Physiological measurement","volume":" ","pages":""},"PeriodicalIF":2.3000,"publicationDate":"2025-01-29","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Physiological measurement","FirstCategoryId":"5","ListUrlMain":"https://doi.org/10.1088/1361-6579/ada8f0","RegionNum":4,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"BIOPHYSICS","Score":null,"Total":0}
引用次数: 0

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/tinyHLS.

tinyHLS:一个新颖的开源高级综合工具,目标是用于人工神经网络推理的硬件加速器。
目的:近年来,智能手表和智能贴片等可穿戴设备彻底改变了生物信号的采集和分析,尤其是心电图(ECG)监测。然而,由于这些设备的电源有限,往往无法对贴片本身进行实时数据分析:本文介绍了一个新颖的 Python 软件包 tinyHLS(高级合成),旨在通过将基于 Python 的人工智能模型转换为独立于平台的硬件描述语言(HDL)代码加速器来应对这些挑战。tinyHLS 专为卷积神经网络(CNN)设计,可无缝集成到 Python TensorFlow Keras 的人工智能开发人员工作流程中。我们的方法利用基于模板的硬件编译器,确保了灵活性、效率和易用性。在这项工作中,tinyHLS 首次发布了几层神经网络的模板,如密集、卷积、最大值和全局平均池化。在第一个版本中,整流线性单元(ReLU)支持激活。它的目标是一维数据,尤其侧重于时间序列数据:主要成果:生成的加速器在检测心电图(ECG)数据中的心房颤动(AF)时得到了验证,在处理速度(62 倍)和能效(4.5 倍)方面都有显著提高。通过使用商业 ASIC 设计工具验证输出结果,确保了代码质量和可合成性:重要的是,tinyHLS 是开源的,不依赖于商业工具,因此是学术和商业应用的通用解决方案。本文还讨论了与开源 RISCV 的集成以及 tinyHLS 未来的增强潜力,包括其在边缘服务器和云计算中的应用。源代码可在 GitHub 上获取:https://github.com/Fraunhofer-IMS/tinyHLS。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Physiological measurement
Physiological measurement 生物-工程:生物医学
CiteScore
5.50
自引率
9.40%
发文量
124
审稿时长
3 months
期刊介绍: Physiological Measurement publishes papers about the quantitative assessment and visualization of physiological function in clinical research and practice, with an emphasis on the development of new methods of measurement and their validation. Papers are published on topics including: applied physiology in illness and health electrical bioimpedance, optical and acoustic measurement techniques advanced methods of time series and other data analysis biomedical and clinical engineering in-patient and ambulatory monitoring point-of-care technologies novel clinical measurements of cardiovascular, neurological, and musculoskeletal systems. measurements in molecular, cellular and organ physiology and electrophysiology physiological modeling and simulation novel biomedical sensors, instruments, devices and systems measurement standards and guidelines.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信