Development of Cloud-based Infrastructure for Real Time Analysis of Wearable Sensor Signal

Kabir Hossain, Tonmoy Ghosh, E. Sazonov
{"title":"Development of Cloud-based Infrastructure for Real Time Analysis of Wearable Sensor Signal","authors":"Kabir Hossain, Tonmoy Ghosh, E. Sazonov","doi":"10.1109/aiiot54504.2022.9817145","DOIUrl":null,"url":null,"abstract":"This paper focuses on development of server-based infrastructure for real-time analysis of wearable signals. In this work, we have implemented a python flask-based API (Application Programming Interface) to receive sensor and image data from various platforms (e.g., mobile, computer), and created a data storage (MariaDB database and file server) to store data. A load balancer, Nginx, that redirects traffic into different ports was configured for low latency. Additionally, we developed a food intake detection method based on machine learning (ML). We have investigated ten different ML models to find an accurate and fast model. To test the server infrastructure, we conducted a functionality test to verify each component of the server. We also investigated how a number of APIs influence the performance of the server in terms of latency. To verify the server, we performed a computer simulation where a python script was used to deliver signals and images continuously to the server. We sent a total of five hundred images and sensor signals to the server from two different processes simultaneously. We achieved an average latency of 260ms and 110ms for signal and image packets, respectively. The average latency decreased by 26.92% and 15.38% when we use two API ports. For food intake detections, data were collected from 17 free-living (9 males, 6 females, and 2 adolescents) volunteers. Thereafter these data were evaluated by ten different ML classifiers, e.g., Adaboost (AB), Random Forest (RF), Gradient Boosting (GB) and Histogram Gradient Boosting (HGB). The experiments were performed by 5-fold validations, where 80% of subjects were used for training the remaining 20% for testing. The RF model provided the best result with average accuracy, precision, recall and F1-score of 0.99, 0.97, 0.97 and 0.98, respectively. Results indicate that our implemented server architecture was able to receive signals in real-time and detect food intake with high accuracy.","PeriodicalId":409264,"journal":{"name":"2022 IEEE World AI IoT Congress (AIIoT)","volume":"6 11","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-06-06","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 IEEE World AI IoT Congress (AIIoT)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/aiiot54504.2022.9817145","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

Abstract

This paper focuses on development of server-based infrastructure for real-time analysis of wearable signals. In this work, we have implemented a python flask-based API (Application Programming Interface) to receive sensor and image data from various platforms (e.g., mobile, computer), and created a data storage (MariaDB database and file server) to store data. A load balancer, Nginx, that redirects traffic into different ports was configured for low latency. Additionally, we developed a food intake detection method based on machine learning (ML). We have investigated ten different ML models to find an accurate and fast model. To test the server infrastructure, we conducted a functionality test to verify each component of the server. We also investigated how a number of APIs influence the performance of the server in terms of latency. To verify the server, we performed a computer simulation where a python script was used to deliver signals and images continuously to the server. We sent a total of five hundred images and sensor signals to the server from two different processes simultaneously. We achieved an average latency of 260ms and 110ms for signal and image packets, respectively. The average latency decreased by 26.92% and 15.38% when we use two API ports. For food intake detections, data were collected from 17 free-living (9 males, 6 females, and 2 adolescents) volunteers. Thereafter these data were evaluated by ten different ML classifiers, e.g., Adaboost (AB), Random Forest (RF), Gradient Boosting (GB) and Histogram Gradient Boosting (HGB). The experiments were performed by 5-fold validations, where 80% of subjects were used for training the remaining 20% for testing. The RF model provided the best result with average accuracy, precision, recall and F1-score of 0.99, 0.97, 0.97 and 0.98, respectively. Results indicate that our implemented server architecture was able to receive signals in real-time and detect food intake with high accuracy.
基于云的可穿戴传感器信号实时分析基础设施的开发
本文重点研究了基于服务器的可穿戴信号实时分析基础设施的开发。在这项工作中,我们实现了一个基于python flask的API(应用程序编程接口)来接收来自各种平台(例如,移动设备,计算机)的传感器和图像数据,并创建了一个数据存储(MariaDB数据库和文件服务器)来存储数据。负载均衡器Nginx将流量重定向到不同的端口,以实现低延迟。此外,我们还开发了一种基于机器学习(ML)的食物摄入检测方法。我们研究了十种不同的ML模型,以找到一个准确和快速的模型。为了测试服务器基础设施,我们执行了一个功能测试来验证服务器的每个组件。我们还研究了一些api如何在延迟方面影响服务器的性能。为了验证服务器,我们执行了一个计算机模拟,其中使用python脚本连续地向服务器传递信号和图像。我们从两个不同的进程同时向服务器发送了总共500个图像和传感器信号。我们实现了信号和图像数据包的平均延迟分别为260ms和110ms。当我们使用两个API端口时,平均延迟降低了26.92%和15.38%。对于食物摄入检测,收集了17名自由生活志愿者(9名男性,6名女性和2名青少年)的数据。之后,这些数据被10个不同的ML分类器评估,例如Adaboost (AB)、Random Forest (RF)、Gradient Boosting (GB)和Histogram Gradient Boosting (HGB)。实验采用5倍验证,其中80%的受试者用于训练,其余20%用于测试。RF模型的平均正确率、精密度、召回率和f1得分分别为0.99、0.97、0.97和0.98,结果最佳。结果表明,我们实现的服务器架构能够实时接收信号,并能够高精度地检测食物摄入量。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
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学术官方微信