# Research and Application of a Multi-Agent-Based Intelligent Mine Gas State Decision-Making System
## 4 Construction of the Intelligent Mine Gas State Decision-Making System
### Data Layer  
The foundation of building the Intelligent Mine Gas State Decision-Making System lies in the extensive collection of mine safety production data. The details of the system's data collection are presented in Table 1. To enhance data quality, a series of preprocessing operations, including deduplication, error correction, and outlier elimination, were performed on the collected data. These data collection and preprocessing efforts provide a rich and high-quality data resource for the Intelligent Mine Gas State Decision-Making System.  
In terms of real-time data acquisition, the system interacts with mine sensors through standardized API interfaces. The sensors continuously monitor gas concentrations and transmit the detected data to the system in JSON format. Upon receiving this real-time data, the system immediately performs preprocessing to ensure the accuracy and consistency of the data. This real-time data acquisition mechanism enables the system to respond promptly to changes in gas concentrations, providing a reliable basis for decision-making.  
To address the diverse data storage needs, a multi-faceted database strategy has been employed, incorporating both relational and vector databases to tackle the challenges of storing structured and unstructured data. The relational database is primarily used for storing structured data, such as basic information about the coal mine and alarm records. In contrast, the vector database is responsible for storing unstructured data, including alarm determination criteria, processing methods, log files, and reports.  
To better accommodate data processing needs, a separate storage design strategy has been adopted, creating three specialized vector databases, each optimized for specific data types and application scenarios. The first vector database is dedicated to storing the specific ranges and standards for gas exceedance alarms in various parts of the coal mine, providing a direct basis for gas alarm judgments. The second vector database contains  
\begin{table}
\begin{tabular}{c c c c} \hline \hline
**Data Type** & **Data Content** & **Data Source** & **Data Format** \\ \hline Historical Gas Alarm Data & Alarm time, location, type, & Coal Mine Safety & JSON Format \\  & cause, etc. & Management Department & JSON Format \\ Real-time Gas Data & Gas concentration, temperature, & Mine Sensors & JSON Format \\ Gas Alarm Judgment Criteria & Thresholds for various & National and Industry & Text Format \\ Gas Alarm Handling Methods & environmental parameters & Standards & Text Format \\ Gas Alarm Handling Methods & Procedures and methods & Coal Mine Safety & Text Format \\  & corresponding to alarm types & Management Department & Text Format \\ Relevant Coal Mine Policies & National and local laws and & National and Industry & Text Format \\  & regulations for coal mine safety & Relevant Departments & Text Format \\  & production & & \\ Historical Reports & Report time, content, & Coal Mine Safety & \\  & recommendations & Management Department & Text Format \\ \hline \hline \end{tabular}
\end{table}
Table 1: Overview of data collection for the intelligent mine gas state decision-making system.  
standardized safety protocols and operating guidelines, which are crucial for formulating specific measures in response to different alarm situations. The third vector database is responsible for storing historical alarm event records, which serve as the foundation for generating reports and analyzing historical trends. This storage design strategy significantly enhances data retrieval efficiency and ensures the system's high responsiveness when processing large volumes of data.