A Real-Time Naive Bayes Classifier Accelerator on FPGA

被引:12
|
作者
Xue, Zhen [1 ,2 ]
Wei, Jizeng [1 ]
Guo, Wei [1 ,2 ]
机构
[1] Tianjin Univ, Coll Intelligence & Comp, Tianjin 300354, Peoples R China
[2] Tianijn Key Lab Adv Networking, Tianjin 300354, Peoples R China
来源
IEEE ACCESS | 2020年 / 8卷 / 08期
关键词
Hardware; Table lookup; Training; Inference algorithms; Real-time systems; Field programmable gate arrays; Accelerator; FPGA; hardware architecture; naive Bayes classifier; EFFICIENT LOGARITHM;
D O I
10.1109/ACCESS.2020.2976879
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
In this paper, we propose a real-time hardware naive Bayes classifier (NBC) which is implemented on field programmable gate array (FPGA). We first use logarithm transformation based look-up table and float-to-fixed point process to simplify the calculations in naive Bayes classification algorithm. The methods clear up the multiplication and division operations of floating points completely. Based the simplified algorithm, we design our hardware architecture which includes both training and inference part. A novel format of logarithm look-up table with very limited items and a shifter in it are working together to calculate the logarithm value of any number. There are several processing element (PE) arrays in the accelerator where each PE in an array is running in parallel, which speed up the classification process remarkably. The experiments prove that the proposed accelerator has much better real-time efficiency than the general processor, some hardware Bayes classifiers and convolutional neural network (CNN) accelerators. It outperforms the NBC and semi-NBC accelerators and costs far less resources on chip than many CNN accelerators. Its utilization of LUT, FF and BRAM is only 10%, 0.05% and 2% of CNN accelerators on average. The experimental results over five datasets of different magnitudes show the accelerator has almost no loss of classification accuracy comparing with ARM Cortex-A9 processor. Their deviation of the classification accuracy is only 0.39% on average. What';s more, it improves the performance of the training phase and the inference phase about 7.9+e4 and 8.3+e4 on average, respectively.
引用
收藏
页码:40755 / 40766
页数:12
相关论文
共 50 条
  • [1] Enhanced Naive Bayes Classifier for Real-time Sentiment Analysis with SparkR
    Jung, Young Gyo
    Kim, Kyung Tae
    Lee, Byungjun
    Youn, Hee Yong
    [J]. 2016 INTERNATIONAL CONFERENCE ON INFORMATION AND COMMUNICATION TECHNOLOGY CONVERGENCE (ICTC 2016): TOWARDS SMARTER HYPER-CONNECTED WORLD, 2016, : 141 - 146
  • [2] A WEARABLE REAL-TIME FALL DETECTOR BASED ON NAIVE BAYES CLASSIFIER
    Yang, Xiuxin
    Dinh, Anh
    Chen, Li
    [J]. 2010 23RD CANADIAN CONFERENCE ON ELECTRICAL AND COMPUTER ENGINEERING (CCECE), 2010,
  • [3] Real-Time and Low-Memory Multi-Faces Detection System Design With Naive Bayes Classifier Implemented on FPGA
    Chou, Kuan-Yu
    Chen, Yon-Ping
    [J]. IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY, 2020, 30 (11) : 4380 - 4389
  • [4] Real-time and Low-memory Multi-face Detection System Design based on Naive Bayes Classifier using FPGA
    Chen, Yon-Ping
    Liu, Chong-Hsien
    Chou, Kuan-Yu
    Wang, Shun-Yi
    [J]. 2016 INTERNATIONAL AUTOMATIC CONTROL CONFERENCE (CACS), 2016, : 7 - 12
  • [5] Multinomial Naive Bayes for real-time gender recognition
    Vergara, Diego
    Hernandez, Sergio
    Jorquera, Felipe
    [J]. 2016 XXI SYMPOSIUM ON SIGNAL PROCESSING, IMAGES AND ARTIFICIAL VISION (STSIVA), 2016,
  • [6] d FPGA accelerator for real-time skin segmentation
    de Ruijsscher, Bart
    Gaydadjiev, Georgi N.
    Lichtenauer, Jeroen
    Hendriks, Emile
    [J]. PROCEEDINGS OF THE 2006 IEEE/ACM/IFIP WORKSHOP ON EMBEDDED SYSTEMS FOR REAL TIME MULTIMEDIA, 2006, : 93 - +
  • [7] Automatic Real-Time Mining Software Process Activities From SVN Logs Using a Naive Bayes Classifier
    Zhu, Rui
    Dai, Yichao
    Li, Tong
    Ma, Zifei
    Zhen, Ming
    Tang, Yahui
    Yuan, Jiayi
    Huang, Yue
    [J]. IEEE ACCESS, 2019, 7 : 146403 - 146415
  • [8] Real Time Twitter Sentiment Analysis for Product Reviews Using Naive Bayes Classifier
    Gajbhiye, Khushboo
    Gupta, Neetesh
    [J]. PROCEEDING OF THE INTERNATIONAL CONFERENCE ON COMPUTER NETWORKS, BIG DATA AND IOT (ICCBI-2018), 2020, 31 : 342 - 350
  • [9] The Prognosis of Epilepsy with Naive Bayes Classifier On FPGA Using HDL Coder
    Memon, Nauman
    Zaidi, Syyed Sajjad Haider
    Suleman, Muhammad
    [J]. 2020 IEEE-EMBS CONFERENCE ON BIOMEDICAL ENGINEERING AND SCIENCES (IECBES 2020): LEADING MODERN HEALTHCARE TECHNOLOGY ENHANCING WELLNESS, 2021, : 18 - 23
  • [10] An FPGA Accelerator for Real-Time Lossy Compression of Hyperspectral Images
    Bascones, Daniel
    Gonzalez, Carlos
    Mozos, Daniel
    [J]. REMOTE SENSING, 2020, 12 (16)