Regular Expression Based Online Aided Decision Making Knowledge Base for Quality and Security of Food Processing

Wen Liu, Peng Liu, Qiang Li, Min Duan, Yanrong Wang, Yue DaiCybernetics 2015

Abstract

This paper discusses a method for constructing an online aided decision-making knowledge base for food processing quality and security using regular expressions. To address the inefficiencies of static knowledge acquisition in current systems, an automatic knowledge inference engine is applied to update the base by combining industry expert experience with autonomously derived rules. This approach significantly enhances the efficiency and applicability of food safety information systems.

Introduction

Modern food processing involves a complex chain of operations, from raw material handling to final packaging, each presenting potential risks to quality and safety. While aided decision-making systems exist, they often suffer from a "knowledge acquisition bottleneck." These systems are typically static, relying on fixed rule sets that are difficult to update as technologies evolve. This research proposes a dynamic system that not only stores expert knowledge but also autonomously generates new insights through a reasoning engine, ensuring the safety database remains current and effective.

Methodology

Knowledge Representation

The system utilizes regular expressions as a formal logic framework to represent rules in the form $P \rightarrow Q$ (If $P$, then $Q$). Knowledge is categorized into three types: deterministic (industry standards), experience-based (expert insights), and reasoning-based (system-generated).

For food safety applications, the system employs the formula $(R, F) \rightarrow C$, where:

  • $F$ (Phenomenon): The observed hazard (e.g., "outlet temperature is too high").
  • $R$ (Reason): The likely cause (e.g., "cooling system pressure is too low").
  • $C$ (Control): The corrective action (e.g., "increase water pressure").

The Inference Engine

The core of the system is a forward-reasoning inference engine. It matches user-provided facts against the premises of existing rules. When a match is found, the resulting conclusion is added to the knowledge base as a new fact. This process repeats, allowing the engine to "chain" logic and discover new relationships autonomously.

Flowchart of the automatic knowledge inference engine.

Case Study and Results

The system was validated using abnormal disposal data from a pasteurized milk plant in Beijing. Starting with eight "primal" rules derived from expert knowledge, the inference engine successfully traversed the database.

Key results include:

  • Knowledge Chaining: The engine identified logical links between disparate rules (e.g., cooling system pressure and pasteurization temperature).
  • Autonomous Rule Generation: The system automatically generated "Rule 9," a complex safety protocol not explicitly programmed but logically implied by existing data.
  • Redundancy Protection: The system demonstrated "loop protection" by identifying and rejecting duplicate or redundant rules.

Discussion and Future Work

The use of regular expressions provides high readability, allowing engineers to understand the logic behind system decisions—a significant advantage over "black box" AI models. The modular nature of these rules also simplifies database expansion.

However, further research is needed to evaluate the system's performance at scale and to integrate more complex "fuzzy logic" for handling uncertain data. While the engine derives new knowledge, expert validation remains a crucial step in ensuring practical soundness.

Conclusion

By transforming static manuals into a dynamic reasoning engine, this research offers a path toward more resilient and intelligent food safety infrastructure. The proposed method enhances the ability of food producers to respond effectively to quality hazards through continuous knowledge derivation.

Summary updated

BibTeX
@inproceedings{liu2015regular,
  author = {Wen Liu and Peng Liu and Qiang Li and Min Duan and Yanrong Wang and Yue Dai},
  title = {{Regular Expression Based Online Aided Decision Making Knowledge Base for Quality and Security of Food Processing}},
  booktitle = {Cybernetics},
  year = {2015},
  doi = {10.1515/cait-2015-0082},
}
Figure