Jiang Wei, Ma Yuhanxiao, Chen Ruiqi
School of Mechanical, Electrical and Information Engineering, Wuxi Vocational Institute of Arts & Technology, Wuxi, Jiangsu Province, China.
New York University, Gallatin School of Individualized Study, New York, NY, United States of America.
PeerJ Comput Sci. 2021 Nov 16;7:e774. doi: 10.7717/peerj-cs.774. eCollection 2021.
Since consuming gutter oil does great harm to people's health, the Food Safety Administration has always been seeking for a more effective and timely supervision. As laboratory tests consume much time, and existing field tests have excessive limitations, a more comprehensive method is in great need. This is the first time a study proposes machine learning algorithms for real-time gutter oil detection under multiple feature dimensions. Moreover, it is deployed on FPGA to be low-power and portable for actual use. Firstly, a variety of oil samples are generated by simulating the real detection environment. Next, based on previous studies, sensors are used to collect significant features that help distinguish gutter oil. Then, the acquired features are filtered and compared using a variety of classifiers. The best classification result is obtained by k-NN with an accuracy of 97.18%, and the algorithm is deployed to FPGA with no significant loss of accuracy. Power consumption is further reduced with the approximate multiplier we designed. Finally, the experimental results show that compared with all other platforms, the whole FPGA-based classification process consumes 4.77 µs and the power consumption is 65.62 mW. The dataset, source code and the 3D modeling file are all open-sourced.
由于食用地沟油对人体健康危害极大,食品安全管理部门一直在寻求更有效、更及时的监管方法。由于实验室检测耗时较长,且现有的现场检测存在诸多局限性,因此迫切需要一种更全面的方法。这是首次有研究提出用于多特征维度下实时地沟油检测的机器学习算法。此外,该算法部署在现场可编程门阵列(FPGA)上,具有低功耗和便于实际使用的便携性。首先,通过模拟实际检测环境生成各种油样。其次,基于以往研究,利用传感器收集有助于区分地沟油的显著特征。然后,使用多种分类器对获取的特征进行过滤和比较。采用k近邻算法(k-NN)获得了最佳分类结果,准确率为97.18%,并且该算法部署到FPGA上时准确率没有明显损失。通过我们设计的近似乘法器进一步降低了功耗。最后,实验结果表明,与所有其他平台相比,基于FPGA的整个分类过程耗时4.77微秒,功耗为65.62毫瓦。数据集、源代码和三维建模文件均已开源。