An automated alarm system for food safety by using electronic invoices

PLoS One. 2020 Jan 24;15(1):e0228035. doi: 10.1371/journal.pone.0228035. eCollection 2020.

Abstract

Background: Invoices had been used in food product traceability, however, none have addressed the automated alarm system for food safety by utilizing electronic invoice big data. In this paper, we present an alarm system for edible oil manufacture that can prevent a food safety crisis rather than trace problematic sources post-crisis.

Materials and methods: Using nearly 100 million labeled e-invoices from the 2013‒2014 of 595 edible oil manufacturers provided by Ministry of Finance, we applied text-mining, statistical and machine learning techniques to "train" the system for two functions: (1) to sieve edible oil-related e-invoices of manufacturers who may also produce other merchandise and (2) to identify suspicious edible oil manufacture based on irrational transactions from the e-invoices sieved.

Results: The system was able to (1) accurately sieve the correct invoices with sensitivity >95% and specificity >98% via text classification and (2) identify problematic manufacturers with 100% accuracy via Random Forest machine learning method, as well as with sensitivity >70% and specificity >99% through simple decision-tree method.

Conclusion: E-invoice has bright future on the application of food safety. It can not only be used for product traceability, but also prevention of adverse events by flag suspicious manufacturers. Compulsory usage of e-invoice for food producing can increase the accuracy of this alarm system.

Publication types

  • Research Support, Non-U.S. Gov't

MeSH terms

  • Automation
  • Data Mining
  • Electronics*
  • Food Safety*
  • Machine Learning
  • Oils

Substances

  • Oils

Grants and funding

The work was funded by MOST 106-2314-B-018-001-MY2 from the Ministry of Science and Technology. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript. The e-invoice data was provided by Fiscal Information Agency of Taiwan Ministry of Finance.