A fruit and vegetable storage environment monitoring and early warning method and system and a storage medium

By constructing a product process line and combining gas sensors and temperature and humidity sensors to monitor the physiological state and environmental parameters of fruits and vegetables, and introducing ripening effects and abnormal ratios, the problem of delayed early warning in existing technologies has been solved, and precise early warning and intelligent management of the fruit and vegetable storage environment have been achieved.

CN123182379APending Publication Date: 2026-11-27SHENZHEN XIECUI AGRICULTURAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611328909.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-31
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing fruit and vegetable storage environment monitoring systems only monitor environmental parameters of the storage space and cannot detect abnormal physiological states of fruits and vegetables in advance, resulting in delayed warnings and failure to prevent spoilage and deterioration in a timely manner.

Method used

By combining product entry information, type, and quantity to construct a product process line, integrating gas sensors to monitor the physiological state of fruits and vegetables with temperature and humidity sensors to monitor the storage environment, and introducing indicators such as ripening effect and abnormal ratio, a dual and accurate early warning system for both early signs of fruit and vegetable spoilage and abnormal storage environment is achieved. Furthermore, through model self-optimization updates and gas replacement intervention, the system adapts to changes in the physiological state of fruits and vegetables under ripening action.

Benefits of technology

It has improved the timeliness and reliability of early warning for fruit and vegetable storage, reduced spoilage and loss, ensured the quality and safety of fruit and vegetable storage, and achieved comprehensive monitoring from early warning for single fruits to early warning for batch trends.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123182379A_ABST
    Figure CN123182379A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of agricultural product storage preservation, and discloses a fruit and vegetable storage environment monitoring and early warning method and system and a storage medium. The method comprises the following steps: acquiring product storage information, determining product marks, types and quantities, matching corresponding process stages, process times and storage process lines from a process database and a product database, combining quantity influence lines, and calculating product process lines through a data fusion model; then, corresponding state data are positioned according to the process stages and the times, real-time data are acquired through a product built-in gas sensor, real-time state values are calculated to identify abnormal products and issue a storage abnormality early warning; meanwhile, environment data are collected by relying on a temperature and humidity sensor, temperature data and humidity data are respectively subjected to standardization treatment, and then environment state values are calculated through weighted summation, so that environment abnormality early warning is realized. The scheme simultaneously monitors fruit and vegetable physiological states and storage environment parameters, is helpful to improving the fine management level of fruit and vegetable storage, reducing fruit and vegetable deterioration loss and guaranteeing storage quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of agricultural product storage and preservation, and in particular to a method, system and storage medium for monitoring and early warning of fruit and vegetable storage environment. Background Technology

[0002] Fruits and vegetables are susceptible to environmental parameters such as temperature and humidity during storage, and their freshness, quality, and shelf life are closely related to the storage environment. Abnormal fluctuations in environmental parameters can lead to spoilage and other problems, causing significant economic losses. Therefore, accurate and real-time sensing and monitoring of fruit and vegetable storage environmental parameters is a core prerequisite for ensuring the quality of stored fruits and vegetables, reducing losses, and achieving refined storage management, and has significant industrial application value and practical significance.

[0003] Currently, large-scale fruit and vegetable storage bases generally adopt environmental monitoring systems, which mainly collect and monitor the two core environmental parameters of temperature and humidity in real time within the storage space. These systems deploy sensors in the storage area to acquire temperature and humidity data in real time and feed it back to the monitoring terminal. When the monitored parameters exceed preset thresholds, a simple alarm signal is issued, reminding staff to take timely intervention measures such as ventilation, temperature adjustment, and humidity control. This, to a certain extent, prevents adverse environmental conditions from seriously affecting the quality of fruits and vegetables and ensures the basic storage safety of stored fruits and vegetables.

[0004] However, current fruit and vegetable storage environments only monitor environmental parameters within the storage space, neglecting to monitor the physiological state of the fruits and vegetables themselves. Before fruits and vegetables rot or spoil, they exhibit warning signs such as changes in respiration intensity and abnormal physiological metabolism. However, current technology cannot capture these warning signs, only issuing alarms after environmental parameters become abnormal or the fruits and vegetables have shown obvious spoilage, resulting in untimely warnings. Summary of the Invention

[0005] In order to monitor the condition of fruits and vegetables in fruit and vegetable storage and improve the timeliness of early warning, this application provides a method, system and storage medium for monitoring and early warning of fruit and vegetable storage environment.

[0006] Firstly, this application provides a method for monitoring and early warning of fruit and vegetable storage environment, employing the following technical solution: A method for monitoring and early warning of fruit and vegetable storage environment includes the following steps: Obtain the current product's inbound information, and based on the inbound information, obtain the product tag, product type, and product quantity. Based on the product tag, obtain the corresponding process stage and process time from the preset process database. Based on the product type, obtain the corresponding save process line from the preset product database. The content of the save process line corresponds to the save status of the product type. Based on the product quantity, obtain the corresponding quantity influence line. Based on the save process line and the quantity influence line, calculate the product process line based on the preset product data fusion model. The position of the current product on the product process line is calculated based on the process stage and process time, and the corresponding status data is obtained based on the position point; real-time data is obtained and calculated based on the gas sensor set in the current product, and the type of real-time data is the same as the type of status data. The real-time status value is calculated based on the real-time data and status data; if the real-time status value is greater than the preset status value, it is marked as an abnormal product and an abnormal warning is saved for the current product; otherwise, it is marked as a normal product. Temperature and humidity data are acquired from temperature and humidity sensors located next to the product. A temperature status value is calculated based on the temperature data and a preset temperature setting, and a humidity status value is calculated based on the humidity data and a preset humidity setting. The environmental status value is then calculated by weighted summation of the temperature and humidity status values ​​using the formula: Environmental Status Value = α × Temperature Status Value + β × Humidity Status Value, where α + β = 1, and α and β are preset positive weighting coefficients. If the environmental status value is outside the preset range, or if either the temperature or humidity status value exceeds its corresponding independent alarm threshold, an environmental anomaly warning is issued.

[0007] By adopting the above technical solution, and by constructing a product process line by combining product entry information, type, and quantity, and by integrating gas sensors to monitor the physiological state of fruits and vegetables with temperature and humidity sensors to monitor storage environment parameters, a dual and accurate early warning system for both early signs of fruit and vegetable spoilage and abnormal storage environment has been achieved. This solves the problem of delayed early warning caused by existing technologies that only monitor environmental parameters and cannot detect physiological abnormalities in fruits and vegetables in advance. At the same time, it supports traceability of products in the same batch, effectively improving the timeliness and reliability of storage early warning.

[0008] Optionally, the method further includes the following steps: According to the product type, the corresponding ripening influence line is obtained from the preset ripening database. According to the product quantity and status data corresponding to the product type, the corresponding ripening influence value is matched from the ripening influence line. The ripening influence value is the percentage coefficient of the influence on the real-time status of the product. The ripening influence value is greater than one. New real-time data is calculated based on the ripening effect value and real-time data, and the new real-time data is positively correlated with the ripening effect value; or, a new real-time state value is calculated based on the ripening effect value and real-time state value, and the new real-time state value is positively correlated with the ripening effect value; or, a temporary set state value is calculated based on the set state value and ripening effect value, and the temporary set state value is negatively correlated with the ripening effect value.

[0009] By adopting the above technical solution, and by introducing ripening influence lines and ripening influence values ​​associated with product type, quantity, and status data, the impact of ripening factors on the ripening and deterioration process of fruits and vegetables is incorporated into the early warning logic. By correcting real-time data, real-time status values, or dynamically adjusting the early warning threshold, the system adapts to the accelerated changes in the physiological state of fruits and vegetables under the ripening effect, effectively making up for the shortcomings of the original early warning scheme that did not consider the impact of ripening, and avoiding early warning delays or misjudgments caused by ignoring ripening factors.

[0010] Optionally, the method further includes the following steps: The storage time of the current product is calculated based on the inbound and outbound information, and the transfer speed is calculated based on the storage time. Obtain the preset speed, calculate the speed coefficient based on the transfer speed and the preset speed, and adjust the ripening effect value according to the speed coefficient. The larger the speed coefficient, the smaller the ripening effect value, and the smaller the speed coefficient, the larger the ripening effect value.

[0011] By adopting the above technical solution, the storage time and transfer speed of fruits and vegetables are calculated based on the information of warehousing and outbound. A speed coefficient is introduced to dynamically adjust the ripening effect value. The corresponding ripening effect weight is adapted for fruits and vegetables with different circulation rhythms. This makes up for the defect that the fixed ripening effect value cannot be adapted to the actual circulation scenario. The early warning logic is more in line with the actual ripening and deterioration process of fruits and vegetables, and effectively avoids early warning misjudgment or delay caused by not considering the difference in circulation efficiency.

[0012] Optionally, the method further includes the following steps: Retrieve the tags of multiple products in the current warehouse, and calculate the ratio of abnormal products to normal products among the tags as the abnormality ratio. If the abnormal ratio is greater than the preset reference ratio, a product saving alarm will be triggered; otherwise, the storage time of the product in the current warehouse will be determined. If the storage time is longer than the preset time, the rate of change of the real-time status value of the normal product within the preset time is calculated; if the rate of change is greater than the preset rate, a warning is issued during the storage process.

[0013] By adopting the above technical solution, batch anomaly alarms can be achieved by statistically analyzing the anomaly ratio of abnormal products to normal products in the warehouse. At the same time, for scenarios with long storage time, the risk of spoilage can be captured by monitoring the rate of change of real-time status values ​​of normal products. This not only makes up for the shortcomings of single-product single-point early warning in identifying systemic batch risks, but also allows for the prediction of potential batch spoilage trends in advance before the overall anomaly rate exceeds the standard.

[0014] Optionally, the method further includes the following steps: Obtain the abnormal products corresponding to each product type, and calculate the distribution uniformity of abnormal products in multiple batches corresponding to the product type; where the distribution uniformity is the uniformity in the time dimension. The higher the distribution uniformity, the more evenly the abnormal products are distributed in multiple batches. The lower the distribution uniformity, the more concentrated the abnormal products are in a small number of batches. Calculate the trigger frequency of alarms for the product type; If the product save alarm trigger frequency is greater than the preset set frequency and the distribution uniformity is greater than the preset set uniformity, then the save process line in the product database is updated according to the real-time data corresponding to the abnormal product, so that the status data corresponding to the position point in the product process line is aligned with the real-time data of the abnormal product.

[0015] By adopting the above technical solution, the time distribution uniformity of abnormal products corresponding to each product type in different batches is statistically analyzed, and the triggering frequency of product storage alarms is combined to accurately distinguish between occasional abnormalities and systematic model deviations. When the triggering conditions are met, the storage process line in the product database is automatically updated, realizing dynamic alignment and closed-loop self-optimization between model status data and actual abnormal product data. This can adapt to changes in actual warehousing scenarios and address the problem of false or missed warnings due to model deviations.

[0016] Optionally, the method includes the following steps: Get all the current real-time data in the current reference, calculate the average value of the real-time data as the real-time average value, and calculate the uniform value of the real-time data as the real-time uniform value. Obtain the preset average value and the preset uniform value, calculate the average influence value based on the real-time average value and the preset average value, and calculate the uniform influence value based on the real-time uniform value and the preset uniform value. The product impact value is calculated by weighting the average impact value and the uniform impact value. If the product impact value is greater than the preset impact setting value, a product deviation warning is issued.

[0017] By adopting the above technical solution, statistical analysis of the average value and uniformity of real-time data of all current products is performed. The weighted product impact value is calculated by combining the preset benchmark value and the deviation warning is triggered. This makes up for the deficiency of individual warnings of single products in being unable to identify common state deviations at the group level. It can capture batch-specific and systemic abnormal trends in product state in advance and avoid the problem that relying solely on individual warnings cannot detect potential batch deterioration risks in a timely manner.

[0018] Optionally, the method further includes the following steps: Based on product deviation warning, the preset gas replacement module is activated to replace the ambient gas in the current warehouse. The gas replacement module pumps pre-treated gas into the current warehouse at a preset delivery speed and continues for a preset replacement time. The ambient state value of the pumped gas is within the set range, and the real-time data of the pumped gas is lower than the minimum value in the product process line. After the gas pumping is complete, initialize the zero drift bias values ​​of the temperature and humidity sensor and the gas sensor.

[0019] By adopting the above technical solution, proactive intervention is initiated for product deviation warnings. The gas replacement module pumps in pre-treated gas that meets environmental and physiological requirements, which quickly optimizes the storage environment, inhibits the spoilage process of fruits and vegetables, and alleviates the risk of abnormal group conditions. At the same time, the sensor zero drift bias is initialized after replacement to eliminate measurement errors caused by environmental changes or long-term use.

[0020] Optionally, the method further includes the following steps: The conveying speed is adjusted according to the uniform influence value. The larger the uniform influence value, the faster the conveying speed, and the smaller the uniform influence value, the slower the conveying speed. The replacement time is adjusted according to the average impact value. The larger the average impact value, the longer the replacement time; the smaller the average impact value, the shorter the replacement time.

[0021] By adopting the above technical solution, the gas delivery speed is dynamically adjusted based on the uniform influence value, and the gas replacement time is dynamically adjusted based on the average influence value. This achieves precise adaptation of the gas replacement intervention strategy in storage, avoiding the problems of insufficient or excessive intervention that are prone to occur with fixed intervention parameters. It improves the efficiency of storage environment restoration, quickly curbs the risk of fruit and vegetable spoilage, and optimizes energy consumption cost control.

[0022] Secondly, this application provides a fruit and vegetable storage environment monitoring and early warning system, which adopts the following technical solution: A fruit and vegetable storage environment monitoring and early warning system includes a processor, wherein the processor executes the steps of the fruit and vegetable storage environment monitoring and early warning method as described in any one of the above claims.

[0023] Thirdly, this application provides a storage medium, which adopts the following technical solution: A storage medium storing a program, wherein when the program is executed by a processor, it implements the steps of the fruit and vegetable storage environment monitoring and early warning method described in any one of the above claims.

[0024] In summary, this application includes at least one of the following beneficial technical effects: By constructing a dynamic product process line by combining product warehousing information, type, quantity, and transfer speed, and integrating gas sensing to monitor the physiological state of fruits and vegetables with temperature and humidity sensing to monitor the storage environment, and introducing multi-dimensional indicators such as ripening effect, abnormal ratio, and batch abnormal distribution uniformity, it achieves comprehensive monitoring from single-fruit time-based early warning to batch trend early warning, and from environmental monitoring to physiological precursor capture. At the same time, through model self-optimization and updating, adaptive gas replacement intervention, and sensor calibration, it effectively solves the problems of existing technologies such as delayed early warning, easy misjudgment and missed judgment, coarse intervention, and model inability to adapt to actual scenarios. It significantly improves the accuracy, timeliness, and intelligence level of fruit and vegetable storage monitoring and early warning, helps to achieve refined storage management, effectively reduces fruit and vegetable spoilage and loss, and ensures the quality and storage safety of fruits and vegetables. Attached Figure Description

[0025] Figure 1 This is a flowchart illustrating the steps of a fruit and vegetable storage environment monitoring and early warning method.

[0026] Figure 2 This is a flowchart illustrating the steps involved in obtaining and monitoring data on the impact of ripening, as well as dynamically adjusting early warning thresholds. Detailed Implementation

[0027] The embodiments of this application are described in detail below, and examples of the embodiments are shown in the accompanying drawings.

[0028] In the description of this specification, the references to "certain embodiments," "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples" refer to specific features, structures, materials, or characteristics described in connection with the described embodiment or example, which are included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0029] This invention discloses a method for monitoring and early warning of fruit and vegetable storage environment. It relies on the harvesting and warehousing module, planting management module, production management module, and traceability center module of an agricultural product traceability system, as well as the built-in process database and product database. This is achieved in conjunction with gas sensors and temperature and humidity sensors deployed in the storage area. (Refer to...) Figure 1 The specific implementation steps are as follows: Step S1: Obtain inbound information and build a dedicated product process line S101: Through the harvesting and warehousing module of the agricultural product traceability system, retrieve the official warehousing information of the current fruits and vegetables. This warehousing information is completely synchronized with the traceability batch data already generated in the traceability system. Extract three data items: product tag, product type, and product quantity. Among them, the product tag is the traceability batch number automatically generated by the traceability system plus a unique code for each product, which serves as a unique identifier for the entire storage cycle of the fruits and vegetables and is used for subsequent traceability binding and anomaly location. The product type corresponds to the fruit and vegetable variety name pre-entered in the planting management module of the traceability system, including specific categories such as apples, bananas, tomatoes, and leafy greens. The product quantity is the actual warehousing weight, number of boxes, and number of pieces registered at the time of harvesting and warehousing, and the data comes directly from the harvesting and warehousing records of the traceability system.

[0030] S102: Use the above product tag as the unique retrieval field, access the process database built into the agricultural product traceability system, automatically match and obtain the corresponding process stage and process time for the product; the process stage includes five standard warehousing stages: warehousing acceptance, static preservation, low temperature storage, waiting for delivery, and delivery verification; the process time is the preset standard duration of each stage, the duration already executed in the current stage, and the remaining duration. The data is automatically generated by the production management module of the traceability system.

[0031] S103: Use product type as a search field and access the product database built into the agricultural product traceability system. This database pre-stores the preservation process lines of various fruits and vegetables that have been experimentally calibrated. The preservation process lines use storage time as the horizontal axis and the standard physiological preservation state of fruits and vegetables as the vertical axis, which fully characterizes the quality decay curve of this type of fruit and vegetable under ideal storage conditions over time. The values ​​directly correspond to the preservation status indicators such as the freshness and integrity rate of fruits and vegetables.

[0032] S104: Based on the product quantity obtained in step S101, match the corresponding quantity influence line from the system's preset parameter library. The quantity influence line is a correction curve that characterizes the rate of decline in fruit and vegetable quality caused by the scale of storage. The larger the storage quantity, the higher the correction coefficient of the quantity influence line.

[0033] S105: Input the preservation process line and the quantity influence line into the system's preset product data fusion model. This model multiplies the values ​​of the preservation process line and the quantity influence line at the same time point one by one to generate a product process line that is adapted to the current quantity of goods entering the warehouse. The product process line is the standard quality change benchmark curve of this batch of fruits and vegetables under the actual storage scale.

[0034] Step S2: Monitor the physiological state of fruits and vegetables and implement product preservation abnormality warning. S201: Based on the process stage and process time obtained in step S102, the real-time position of the current fruit and vegetable product on the product process line is located through precise time axis matching calculation, and the standard state data corresponding to the position point is extracted. The standard state data is the ideal quality value that the fruit and vegetable should have at this moment.

[0035] S202: In the storage area, gas sensors are installed on each traceable batch of packaging boxes. The gas sensors are placed close to the fruit and vegetable products to collect the concentration of characteristic gases such as ethylene and carbon dioxide produced by the respiration and metabolism of the fruits and vegetables in real time. The data is converted into real-time data in the form of fruit mass percentage by the system's built-in calibration algorithm. The fruit mass percentage is a dimensionless normalized value obtained by converting the gas sensor response value and the standard gas release rate calibration curve of fruits and vegetables. The value range is 0~100%. The numerical type, dimension, and characterization of this real-time data are completely consistent with the standard state data.

[0036] S203: Divide the real-time data by the standard state data to calculate the real-time state value. The calculation formula is: Real-time state value = Real-time data ÷ Standard state data.

[0037] S204: Compare the calculated real-time status value with the system's preset status value: If the real-time status value is greater than the preset status value, the system immediately determines that the fruit and vegetable product has an abnormal physiological quality, automatically marks it as an abnormal product through the traceability system, and binds the abnormal mark with the product mark. At the same time, it sends a product storage abnormality warning to the warehouse monitoring terminal, prompting staff to inspect and process the batch / single fruit and vegetable product; If the real-time status value is less than or equal to the preset status value, the system determines that the fruit and vegetable product is of normal quality, marks it as a normal product, and continues to perform real-time monitoring.

[0038] Step S3: Monitor warehouse environmental parameters and execute environmental anomaly warnings. S301: Temperature and humidity sensors are installed on each shelf layer and in each temperature zone of the fruit and vegetable storage area. The temperature and humidity sensors are linked to the environmental monitoring stations of the agricultural product traceability system to collect temperature and humidity data in the storage environment in real time and upload them to the traceability system backend at a frequency of 1 time / second.

[0039] S302: Divide the collected temperature data with the system's preset suitable temperature for this type of fruit and vegetable to obtain the temperature status value. The calculation formula is: Temperature status value = Real-time temperature data ÷ Set temperature; Divide the collected humidity data with the system's preset suitable humidity for this type of fruit and vegetable to obtain the humidity status value. The calculation formula is: Humidity status value = Real-time humidity data ÷ Set humidity.

[0040] S303: The temperature and humidity status values ​​are weighted and summed to obtain a comprehensive environmental status value. The calculation formula is: Environmental status value = α × Temperature status value + β × Humidity status value, where α and β are preset positive weighting coefficients, and α + β = 1 (in this embodiment, α = 0.6 and β = 0.4 by default, which can be adjusted according to the characteristics of the fruit and vegetable categories). Simultaneously, independent alarm thresholds T0 and H0 are set for the temperature and humidity status values. If the temperature status value > T0 or the humidity status value > H0, an environmental anomaly warning is directly triggered regardless of whether the comprehensive environmental status value exceeds the limit.

[0041] S304: Compare the environmental status values ​​with the system's preset range: If the environmental status value exceeds the preset range, or if either the temperature or humidity value exceeds its corresponding independent alarm threshold, the system determines that the storage environment parameters are abnormal and immediately sends an environmental anomaly warning to the storage monitoring terminal, reminding staff to take intervention measures such as temperature adjustment, humidity adjustment, and ventilation; if the environmental status value is within the preset range, the system determines that the storage environment is normal and continues to monitor the environmental parameters in real time.

[0042] In this embodiment, for the scenario where climacteric fruits and vegetables release ethylene during storage, resulting in a self-ripening effect that accelerates quality decline, a logic for quantitative correction of the ripening effect and dynamic adaptation of the early warning threshold is added. This logic is automatically executed entirely based on the database system and data calculation module of the agricultural product traceability system, without manual intervention. This effectively eliminates the interference of the ripening effect on monitoring accuracy and avoids false alarms, missed alarms, and delayed early warnings caused by fixed early warning thresholds. (Refer to...) Figure 2 The specific implementation steps are as follows: Step S4: Retrieve ripening parameters based on traceability data and accurately match the ripening effect value. S401 Accelerated Database Preconstruction and Data Labeling The system pre-builds a ripening database and integrates it into the backend of the agricultural product traceability system. This database is based on the fruit and vegetable variety classification in the planting management module of the traceability system, and is calibrated by combining a large amount of storage experiment data and historical monitoring data. It specifically stores ripening characteristic parameters for different types of fruits and vegetables. The database stores ripening influence lines corresponding to each product type. These ripening influence lines are two-dimensional standard curves, with the horizontal axis representing product physiological state data (fruit weight percentage) and the vertical axis representing the ripening influence percentage coefficient. This comprehensively characterizes the quantitative impact of the autonomous ripening effect on the quality decay rate of the same type of fruit and vegetable under different physiological states and storage quantities. Specifically, the ripening influence line value for non-climacteric fruits and vegetables is constant at 1.0, while the ripening influence line value for climacteric fruits and vegetables (bananas, mangoes, kiwis, tomatoes, apples, etc.) increases with increasing physiological maturity.

[0043] S402 Matches ripening effect lines according to product type The product type obtained through the harvesting and storage module of the agricultural product traceability system in step S101 is used as the unique search keyword and input into the ripening database for precise matching. The system automatically retrieves the ripening influence line that completely corresponds to the product type and loads the curve into the real-time computing memory.

[0044] S403 Multi-dimensional Condition Matching Effect Value of Ripening Based on the product type, the product quantity obtained in step S101 (actual warehouse weight / number of boxes / number of pieces recorded in the traceability system) and the status data obtained in step S201 (standard fruit quality percentage at the corresponding position on the product process line) are introduced as two-dimensional matching conditions. Point-to-point numerical interpolation matching is performed on the loaded ripening influence line to calculate the ripening influence value of the current product. The ripening effect value is a dimensionless percentage coefficient, and the system limits its value to always be greater than 1, with a range of 1.0 to 2.5. The matching rule is: the larger the product storage quantity and the higher the maturity corresponding to the status data, the larger the ripening effect value; the smaller the product storage quantity and the lower the maturity corresponding to the status data, the smaller the ripening effect value. This value is automatically generated by the traceability system's backend calculation module and does not require manual setting.

[0045] Step S5: Perform dynamic correction based on the ripening effect value, providing three independent selectable correction modes. This step provides three independently executable correction methods. The corrected data / thresholds are directly substituted into the anomaly judgment logic of step S204 to complete accurate early warning in the ripening scenario. The specific implementation of the three methods is as follows: Method 1: Correct the real-time data collected by the gas sensor S501 Extracts the real-time data converted by the system in step S202, namely the fruit weight percentage, 0~100%. This data is a standardized value converted after the gas sensor collects the respiratory and metabolic gases of fruits and vegetables. S502 multiplies the real-time data with the ripening effect value to generate new real-time data. The calculation formula is: New real-time data = Original real-time data × Ripening effect value; The new real-time data mentioned in S503 is positively correlated with the ripening effect value. That is, the greater the ripening effect value, the higher the new real-time data value, which can amplify the physiological index changes brought about by the ripening effect and better reflect the true quality state of fruits and vegetables. S504 substitutes the new real-time data into step S203, replaces the original real-time data, recalculates the real-time status value, and then performs subsequent anomaly detection.

[0046] Method 2: Correct the calculated real-time status values S511 extracts the real-time status value calculated in step S203, which is the core indicator for determining whether the product is abnormal. S512 multiplies the real-time status value with the ripening effect value to generate a new real-time status value. The calculation formula is: new real-time status value = original real-time status value × ripening effect value. The new real-time state value described in S513 is positively correlated with the ripening effect value. The stronger the ripening effect, the greater the amplification of the real-time state value, and the higher the system's sensitivity to identifying abnormal states. S514 directly compares the new real-time status value with the preset status value in step S204, and performs anomaly judgment and early warning.

[0047] Method 3: Dynamically adjust the warning threshold and generate temporary set status values. S521 extracts the preset state value of the system in step S204. This value is a fixed warning threshold and is the benchmark for determining whether the product is normal or abnormal. S522 performs a division operation between the set state value and the ripening effect value to generate a temporary set state value. The calculation formula is: Temporary set state value = Original set state value ÷ Ripening effect value. The temporary setting state value mentioned in S523 is negatively correlated with the ripening effect value. That is, the larger the ripening effect value, the smaller the temporary setting state value, and the warning threshold is automatically reduced, so as to achieve early identification of spoilage precursors. S524 replaces the original set state value with the temporary set state value, compares it with the original real-time state value calculated in step S203, and performs anomaly judgment and early warning.

[0048] After S505 was corrected, the data was synchronized to the traceability system. The new data and temporary thresholds calculated by the above three correction methods are automatically synchronized to the traceability center module of the agricultural product traceability system, bound to the product tag and archived. Subsequently, the ripening correction data can be traced throughout the entire process through scanning the code and querying the background, ensuring that the warehousing monitoring process is traceable and verifiable.

[0049] In this embodiment, by combining the full-process inbound and outbound traceability data of the agricultural product traceability system and introducing actual product storage and circulation efficiency parameters, the ripening effect value is dynamically adjusted in a closed-loop manner. This ensures that the ripening effect value matches real-world storage scenarios with different transfer speeds and storage durations, eliminating the judgment bias caused by a fixed ripening coefficient. All data in this step comes from the harvesting and warehousing module, outbound management module, and traceability center module of the Xiaoma Smart Agriculture agricultural product traceability system. All calculations are automatically executed by the system's background processor. The specific steps are as follows: Step S9: Calculate the actual storage time of the product based on the inbound and outbound data from the traceability system. S901: Through the harvesting and warehousing module of the agricultural product traceability system, extract the current product's warehousing information, which includes: warehousing timestamp (automatically generated by the system, accurate to milliseconds), product tag (traceability batch number + single product code), product type, product warehousing quantity (unit: kilograms / piece), and warehousing warehouse number.

[0050] S902: Extract the current product's outbound information through the outbound management module of the agricultural product traceability system. The outbound information includes: planned outbound timestamp (preset outbound time, accurate to milliseconds), actual outbound trigger status (triggered / not triggered), and outbound quantity.

[0051] S903: Calculate the actual storage time of the current product: If the product has not triggered the outbound process, the actual storage time = the current system timestamp - the inbound timestamp. The calculation result will be converted to hours and retained to 4 decimal places. If the product has triggered the outbound process, the actual storage time = actual outbound timestamp - inbound timestamp, and the unit is also converted to hours and retained to 4 decimal places.

[0052] S904: The actual storage time is bound to the product tag and synchronously written into the process database of the traceability system as the basic data for calculating the circulation efficiency.

[0053] Step S10: Calculate the product warehousing and transfer speed based on the actual storage time. S1001: Retrieve the product entry quantity obtained in step S901 as the quantity base for calculating the transfer speed.

[0054] S1002: Calculate the warehouse transfer speed according to the system's preset formula, which is: Transfer speed = Quantity of products entering the warehouse ÷ Actual storage time; S1003: The transfer speed is the rate of product turnover per unit time, expressed in kg / h or pieces / h. The higher the transfer speed value, the faster the product turnover and the shorter the storage time. The lower the value, the slower the product turnover and the longer the storage time, resulting in the continuous accumulation of ripening effect.

[0055] S1004: The calculated transfer speed is associated with the product label and product type and stored for subsequent speed coefficient calculation.

[0056] Step S11: Retrieve the preset speed and calculate the speed coefficient. S1101: Retrieve the preset speed corresponding to the current product type from the system product database; the preset speed is the optimal transfer speed of this type of fruit and vegetable under the standard warehousing mode, which is calibrated by a large amount of warehousing experimental data and corresponds one-to-one with the product type, and cannot be modified arbitrarily.

[0057] S1102: Calculate the speed coefficient according to the system's preset formula, which is: Speed ​​coefficient = Actual transfer speed ÷ Preset speed setting; S1103: The velocity coefficient is a dimensionless adjustment coefficient, and its value is always greater than 0. A speed coefficient greater than 1 indicates that the actual transfer speed is faster than the standard speed and the product stays in the warehouse for a shorter time. A speed coefficient of 1 indicates that the actual transfer speed is consistent with the standard speed. A speed coefficient < 1 indicates that the actual transfer speed is slower than the standard speed, and the product will be stored for a long time.

[0058] Step S12: Dynamically adjust the ripening effect value according to the speed coefficient. S1201: Retrieve the original ripening effect value obtained in step S403. This value is the basic ripening coefficient without considering the flow rate, and the value range is 1.0~2.5.

[0059] S1202: Calculations are performed according to the negative correlation adjustment rule: the larger the speed coefficient, the smaller the ripening effect; the smaller the speed coefficient, the larger the ripening effect. The system's preset adjustment formula is: Adjusted ripening effect value = Original ripening effect value ÷ Speed ​​coefficient; S1203: Numerical boundary limit: The adjusted ripening effect value is always greater than 1.0 and does not exceed 2.5; if the calculation result exceeds the upper limit, the system will automatically assign a value of 2.5 to avoid the monitoring distortion caused by the coefficient being too large.

[0060] S1204: Synchronize the adjusted ripening effect value to the traceability system's calculation kernel, replace the original ripening effect value, and substitute it with the real-time data, real-time status value, or set status value correction logic from step S5 to complete the final anomaly judgment and early warning.

[0061] S1205: Data Traceability and Archiving: The adjusted ripening effect value, speed coefficient, transfer speed, and actual storage time are all bound to the product mark and stored in the traceability center module, supporting background viewing and mobile scanning for traceability, realizing full traceability of the adjustment process.

[0062] In this embodiment, for multiple product groups from the same batch / in the same warehouse, a dual mechanism of batch anomaly ratio judgment and long-term storage trend change early warning is added to compensate for the shortcomings of single early warning that cannot identify warehouse-level batch spoilage risks and cannot predict slow deterioration trends. The entire process is automatically executed by relying on the product tag library, status storage module, and time statistics module of the agricultural product traceability system. The specific implementation steps are as follows: Step S13: Obtain all product tags in the warehouse, and calculate the anomaly ratio. S1301: Determine the warehouse number currently being monitored, and retrieve the product tags of all currently stored fruits and vegetables in the warehouse through the warehouse location module of the agricultural product traceability system. The product tag is a unique identifier assigned by the traceability system, which is composed of traceability batch number + single product code + warehouse location code. Each tag corresponds to an independent monitored fruit and vegetable product, with no duplication and no omission.

[0063] S1302: Traverse the monitoring status corresponding to all product tags. The system automatically counts the number of two types of products: abnormal products N1 (the total number of products determined to be abnormal in step S204) and normal products N2 (the total number of products determined to be normal in step S204). Invalid product data that has been shipped out or scrapped are removed, and only the currently valid products in the warehouse are counted.

[0064] S1303: Calculate the anomaly ratio K according to the preset formula. The calculation formula is as follows: Anomaly ratio K = Number of abnormal products N1 ÷ Number of normal products N2; S1304: The anomaly ratio K is a dimensionless proportionality coefficient with a value ≥ 0; the larger the K value, the higher the risk of batch deterioration of products in the warehouse; K=0 means there are currently no abnormal products.

[0065] Step S14: Compare abnormal ratios and trigger a batch product save alarm. S1401: Retrieve the preset reference setting ratio K0 from the system early warning threshold database. This threshold is determined by the characteristics of fruit and vegetable categories and storage standards. Different thresholds are set for different types of fruits and vegetables, such as K0=0.05 for leafy vegetables, K0=0.08 for root vegetables, and K0=0.06 for climacteric fruits and vegetables.

[0066] S1402: Compare the calculated anomaly ratio K with the reference set ratio K0: If K > K0, it is determined that there is a batch abnormality in the fruits and vegetables in the current warehouse and the risk of spoilage has spread. The system will immediately trigger a product preservation alarm. The alarm signal will be pushed to the warehouse monitoring terminal and the mobile management APP at the same time. The traceability system will also be linked to mark all related traceability batches in the warehouse and mark them with a "batch abnormality" warning label. If K≤K0, it is determined that there is no risk of batch anomalies, and the process proceeds to the next step of the storage time determination process.

[0067] Step S15: Determine the actual storage time of the product and select products for long-term storage. S1501: Retrieve the current actual storage time T of the product calculated in step S903, in hours, accurate to two decimal places. This time is the continuous storage duration of the product from its entry into the warehouse to the current monitoring time. The data comes from the entry and exit timestamps of the traceability system.

[0068] S1502: Retrieve the preset time T0 from the system process database. This value is the critical time for safe storage of fruits and vegetables. Different product types correspond to different thresholds, such as strawberry T0=48h, apple T0=168h, and banana T0=72h.

[0069] S1503: Compare the actual storage time T with the set time T0: If T≤T0, it is determined to be short-term storage, the probability of product deterioration is low, the system returns to the normal monitoring process, and does not trigger trend warning; If T > T0, it is determined to be long-term storage, and the product is at risk of slow deterioration and hidden spoilage. The next step is to calculate the rate of change in the product's condition.

[0070] Step S16: Calculate the rate of change of the real-time status value of a normal product. S1601: Select the normal products statistically analyzed in step S1302 and extract their real-time status data within a preset time ΔT; ΔT is a fixed value of the system, uniformly set to 24 hours, that is, retrieve the real-time status values ​​of normal products at the current time and 24 hours ago.

[0071] S1602: Extract the initial real-time status value V1 (average value 24 hours ago) and the last real-time status value V2 (average value at the current moment) within a set time ΔT. The average value is the arithmetic mean of the real-time status values ​​of normal products in the same batch, eliminating individual data fluctuation errors.

[0072] S1603: Calculate the real-time state value change rate V according to a preset formula. The calculation formula is as follows: The rate of change V = (final real-time state value V2 - initial real-time state value V1) ÷ set time ΔT; S1604: The unit of the rate of change V is % / hour. A positive value indicates that the physiological state of the product is continuously deteriorating, and the larger the value, the faster the deterioration. A negative value or zero indicates that the product is in a stable state.

[0073] Step S17: Compare the rate of change and trigger a warning during the saving process. S1701: Retrieve the preset speed V0 from the system warning threshold database. This threshold is the critical speed of change in the state of safe storage of fruits and vegetables, and is calibrated by experimental data, for example, V0 = 0.2% / hour.

[0074] S1702: Compare the calculated rate of change V with the set rate V0: If V > V0, it is determined that the normal products stored for a long time have shown a rapid deterioration trend. Although they have not reached the individual abnormality threshold, batch deterioration is about to occur. The system immediately triggers a warning during the storage process. The warning information is marked as "trend deterioration" and is associated with the product traceability batch, storage time, and status change data, and pushed to the management terminal. If V≤V0, the product status is determined to be stable with no hidden risk of deterioration. The system then returns to the regular monitoring process and continues to monitor in a loop.

[0075] Step S18: Synchronize and archive early warning data. S1801: All batch alarms, process warnings, trigger records, abnormal ratios, storage time, status change rates, and other data are automatically synchronized to the agricultural product traceability system traceability center, and are archived with warehouse number, product tag, and traceability batch, and cannot be tampered with.

[0076] S1802: Consumers and managers can view the warehousing process warning records of this batch of products by scanning the code or querying the background, so as to achieve full traceability and verification of warehousing risks.

[0077] This embodiment upgrades from individual anomaly detection to group batch detection, and expands from real-time alarms to trend prediction. It completely solves the technical pain points of traditional warehouse monitoring that only focuses on individual cases, ignores batch risks, and cannot predict slow deterioration in advance, thus greatly improving the comprehensiveness and foresight of warehouse monitoring.

[0078] In this embodiment, to address the problem that the process lines stored in the preset product database are fixed calibration data and cannot adapt to the actual quality degradation patterns of fruits and vegetables under different production areas / storage environments, which can easily lead to systematic monitoring deviations and misjudgments in early warnings, this method constructs an adaptive closed-loop update mechanism based on abnormal product data, batch time distribution characteristics, and alarm triggering frequency from real-time warehouse monitoring. This mechanism distinguishes between occasional anomalies and systematic model deviations and dynamically calibrates and optimizes the stored process lines. The entire process is automatically executed by the batch management, early warning record, and database modules of the agricultural product traceability system without manual intervention. The specific implementation steps are as follows: Step S19: Aggregate abnormal products by product type and match data from multiple batches based on time dimensions. S1901: Through the product classification management module of the agricultural product traceability system, using the product type determined in step S101 as the sole classification basis, classify and collect all monitoring data throughout the entire storage cycle, and screen out all abnormal product data under the product type that were determined in step S204 to form a total set of abnormal products for the product type. S1902: Extract all valid warehousing batches corresponding to this product type from the traceability batch management module of the traceability system, including batch number, entry timestamp, storage period, and batch size. Sort the batches by entry time to construct a batch time series and remove invalid batches that have been scrapped, expired, or have missing data. S1903: Each abnormal product in the abnormal product set is precisely bound to its batch and entry timestamp through product tagging, and the batch affix and monitoring time point corresponding to each abnormal product are marked, thus constructing a three-dimensional association dataset of abnormal product-batch-time for this product type.

[0079] Step S20: Calculate the batch distribution uniformity of abnormal products over time. S2001: Define the time dimension distribution uniformity U: used to quantify the degree of concentration / dispersion of abnormal products among multiple batches of this product type over time. The uniformity U is a dimensionless value, and its range is strictly limited to [0, 1]. The higher the distribution uniformity, the closer it is to 1, indicating that the abnormal products are evenly distributed in each batch over time, which belongs to the systematic model bias. The lower the distribution uniformity, the closer it is to 0, indicating that the abnormal products are highly concentrated in a few batches, which belongs to the local anomaly caused by occasional factors. S2002: Divide all batches of this product type into N consecutive equal time intervals according to the storage time axis. The system defaults to a single time interval of 24 hours (1 storage day). Count the number of abnormal products in each time interval and record them as X1, X2, X3...Xn. S2003: The uniformity of distribution is calculated using the variance normalization algorithm. The specific calculation formula is as follows: ① Calculate the arithmetic mean of the number of abnormal products in each time interval: μ = (X1 + X2 + ... + Xn) ÷ N; ② Calculate the variance of the number of abnormal products in each time interval: σ 2 =Σ(Xi-μ) 2 ÷N; ③ Calculate the uniformity of distribution: U = 1 - (σ 2 ÷σ 2 _max); Where σ 2 _max is the maximum theoretical variance of the number of abnormal products of this product type preset by the system, which is calibrated by a large amount of warehouse experimental data; S2004: After the calculation is completed, the distribution uniformity U is bound to the product type, batch time series, and number of abnormal products, and stored in the traceability system process database for permanent archiving.

[0080] Step S21: Calculate the product save alarm trigger frequency corresponding to the product type. S2101: Extract all alarm records for this product type within a fixed statistical period T from the early warning record module of the traceability system. The system defaults to a statistical period of 30 calendar days to ensure that the data has statistical validity. S2102: Deduplicat alarm records are processed. Duplicate alarms triggered in the same batch and at the same time are only counted as one valid trigger. The total number of alarm triggers stored in the product during the statistical period is calculated as F_total. S2103: Calculate the alarm trigger frequency F according to the system preset formula. The calculation formula is: F = F_total ÷ T, and the frequency unit is times / day. S2104: The alarm trigger frequency F directly reflects the degree of model deviation. The larger the F value, the greater the deviation between the preset preservation process line and the actual quality decay law of fruits and vegetables, and the stronger the need for model calibration.

[0081] Step S22: Combine two conditions to determine whether to perform a process line update. S2201: Retrieve two preset calibration thresholds corresponding to the current product type from the system model calibration threshold database: preset setting frequency F0 and preset setting uniformity U0; ​​where the setting frequency F0 is the alarm frequency threshold value, such as leafy vegetables F0=2 times / day and fruit vegetables F0=1.5 times / day, and the setting uniformity U0 is the distribution uniformity threshold value, with the system uniformly calibrating U0=0.7; S2202: Perform a two-condition AND logic check. Only if both of the following conditions are met simultaneously will it be determined as a systematic model deviation, and the process line update will be initiated: Condition 1: Actual alarm trigger frequency F > preset frequency F0; Condition 2: The time dimension distribution uniformity U of abnormal products > the preset uniformity U0; S2203: If the above two conditions are not met at the same time, the abnormality is determined to be caused by occasional factors, such as deterioration of the quality of a single batch of goods entering the warehouse or abnormality of the local storage environment. In this case, there is no need to update the model, and the system will directly return to the normal monitoring process. If both conditions are met at the same time, the system will immediately enter the process line update process.

[0082] Step S23: Based on the real-time data of abnormal products, update the saved process line in the product database. S2301: Extract real-time data corresponding to all abnormal products of this product type, fruit weight percentage after gas sensor collection and conversion, and perform sliding mean fitting according to the storage time axis to generate the actual status data sequence of this product type at different storage time nodes. S2302: Retrieve the original storage process line of this product type from the product database of the traceability system. The original storage process line is a preset standard curve, which consists of storage time location points and corresponding standard state data. S2303: Perform data alignment and update operation: Replace all the standard state data corresponding to each time point on the original save process line with the actual state data obtained by fitting above, so that the state data corresponding to each time point in the updated save process line is completely aligned and matched with the real-time data of the abnormal product. S2304: After the update is completed, the system automatically generates a model update log, which records the update time, the original data before the update, the calibration data after the update, and the trigger judgment parameters in detail. It synchronously covers the original saved process line in the product database and synchronizes it to the traceability center of the traceability system. The data is tamper-proof and permanently retained. S2305: The updated storage process line takes effect in real time and is used for the calculation of the product process line of new products of this type that are subsequently put into storage, ensuring that subsequent monitoring and early warning are fully consistent with the actual storage quality degradation law of fruits and vegetables.

[0083] Step S24: Updated model validation and full-process traceability archiving S2401: The system automatically extracts historical batch data of this product type for backtesting and verification, and verifies whether the alarm frequency and anomaly detection accuracy of the updated model meet the preset standards. After verification, it is officially put into use. S2402: All model update-related data (distribution uniformity, alarm frequency, judgment conditions, and curve data before and after the update) are bound to product type and traceability batch. Managers can query and export the data in the traceability system backend, enabling the entire model optimization process to be traceable and verifiable.

[0084] This embodiment, targeting fruit and vegetable groups from the same warehouse, product type, and traceability batch, adds a real-time data mean-uniformity dual-dimensional comprehensive evaluation mechanism. By statistically analyzing the central tendency and dispersion of the group's real-time data, it weights and calculates the product impact value, enabling early warning of batch-related and systemic product deviations, effectively avoiding overall quality shifts that cannot be identified by individual monitoring. All data collection, calculation, and judgment in this step are automatically completed using the real-time data storage and statistical analysis modules of the agricultural product traceability system. The specific implementation steps are as follows: Step S25: Collect the current reference full real-time data and calculate the real-time average and real-time uniform value. S2501: Determine the current reference range: Using the currently monitored warehouse number, product type, and traceability batch number as three-dimensional filtering conditions, in the real-time monitoring database of the agricultural product traceability system, lock all fruit and vegetable products of the same batch, same storage location, and same category as the current reference group for this statistical analysis, to ensure the source and validity of the data.

[0085] S2502: Extract real-time data of all products in the current reference group: The real-time data is the percentage of fruit mass (range 0~100%) obtained by the system after the gas sensor collects the respiratory and metabolic gases of fruits and vegetables in step S202. Extract the real-time data of all valid products in the current reference group one by one, and remove invalid samples with sensor failure or missing data to form a real-time data sample set: D={d1,d2,d3,...,dn}, where n is the total number of valid products in the current reference group, n≥1.

[0086] S2503: Calculate the real-time average value D_avg: Statistical calculations are performed on the real-time data sample set using the arithmetic mean algorithm. The calculation formula is as follows: Real-time average value D_avg = (d1 + d2 + ... + dn) / n; The real-time average value is used to characterize the overall concentration level of fruit and vegetable quality within the current reference group. The value is expressed as a percentage (%) and is rounded to two decimal places.

[0087] S2504: Calculate the real-time uniform value D_unf: The real-time uniform value is used to characterize the dispersion of real-time data of each product within the current reference group. It is a dimensionless value, and its range is strictly limited to [0, 1]. The closer the uniform value is to 1, the more uniform the distribution of real-time data in the group, and the better the consistency of fruit and vegetable quality. The closer the uniform value is to 0, the greater the data dispersion and the more significant the quality differences. The specific calculation method is as follows: ① Calculate the variance σ of the real-time data sample set. 2 σ 2 =Σ(di-D_avg) 2 / n; ② Retrieve the maximum theoretical variance σ of the real-time data for this product type preset by the system. 2 _max (calibrated from warehouse experiment data); ③ Real-time uniform value D_unf=1-(σ 2 / σ 2 _max); S2505: Bind the calculated real-time average value D_avg and real-time uniform value D_unf with the current reference traceability batch number, warehouse number, and product type, and temporarily store them in the traceability system's real-time calculation memory.

[0088] Step S26: Retrieve preset standard parameters and calculate the average influence value and the uniform influence value. S2601: Retrieve preset standard parameters corresponding to the current product type from the product database of the agricultural product traceability system, including the set average value D_avg0 and the set uniform value D_unf0; the set average value is the fruit quality percentage benchmark value of this category of fruits and vegetables under standard storage conditions, and the set uniform value is the standard threshold for the consistency of the quality of this category of fruits and vegetables. Both are calibrated by a large amount of storage experimental data and are uniquely bound to the product type.

[0089] S2602: Calculate the average impact value I_avg: The average impact value is used to characterize the degree of deviation of the overall quality mean of the population from the standard value. The calculation formula is: Average impact value I_avg = |Real-time average value D_avg - Set average value D_avg0| / Set average value D_avg0; The average impact value is a dimensionless coefficient. The larger the value, the more significant the deviation of the overall quality mean of the group from the standard state.

[0090] S2603: Calculate the uniform influence value I_unf: The uniform influence value is used to characterize the degree of deviation of the population quality consistency from the standard state. The calculation formula is: uniform influence value I_unf = |real-time uniform value D_unf - set uniform value D_unf0| / set uniform value D_unf0; The uniformity influence value is a dimensionless coefficient. The larger the value, the greater the difference between the population quality dispersion and the standard state.

[0091] S2604: Synchronously store the average impact value I_avg and the uniform impact value I_unf into the temporary storage area of ​​the traceability system and associate them with the current reference data.

[0092] Step S27: Calculate the weighted impact value of the product and perform product deviation early warning judgment. S2701: Configure weighting coefficients: The system presets the average influence value weight W1 and the uniform influence value weight W2, and the weights satisfy W1+W2=1; for the monitoring characteristics of fruit and vegetable storage, the default configuration is W1=0.6 and W2=0.4, which can be flexibly adjusted according to different product types (leafy vegetables, fruit vegetables, root vegetables, and climacteric fruits and vegetables). The weight parameters are stored in the traceability system early warning configuration module.

[0093] S2702: Calculate the product impact value I_total: Using a weighted summation algorithm, the average impact value and the uniform impact value are combined to obtain a comprehensive index characterizing the overall deviation of the group. The calculation formula is as follows: Product impact value I_total = (average impact value I_avg × W1) + (uniform impact value I_unf × W2); The product impact value is a dimensionless comprehensive coefficient. The larger the value, the more serious the overall deviation in the quality of fruits and vegetables in the current reference group.

[0094] S2703: Retrieve warning threshold: Retrieve the preset impact setting value I_total0 corresponding to the current product type from the warning threshold database of the traceability system. This threshold is the critical value for determining whether there is a systematic deviation in the product and is calibrated by the warehouse quality control standard.

[0095] S2704: Deviation Warning Judgment: Compare the product impact value I_total with the preset impact setting value I_total0: ① If I_total>I_total0: It is determined that there is a systematic quality deviation in the fruits and vegetables in the current reference group. It belongs to the overall quality deviation of the batch, rather than the individual accidental anomaly. The system immediately triggers a product deviation warning. The warning information is simultaneously pushed to the warehouse monitoring screen and the mobile APP of the management personnel, and the deviation type (mean deviation / uniformity anomaly), the batch involved in the traceability, and the warehouse location are marked to facilitate the staff to quickly locate and deal with the problem. ② If I_total≤I_total0: the overall quality of the current group is determined to be normal, with no systematic deviation. The system returns to the normal monitoring process, continuously collecting and statistically analyzing data.

[0096] Step S28: Synchronize, trace, archive, and visualize early warning data. S2801: After a product deviation warning is triggered, the system automatically generates a deviation warning record, which includes all data such as warning time, current reference range, real-time average value, real-time uniform value, average impact value, uniform impact value, product impact value, and warning threshold. This data is bound to the product traceability batch and product tag, and is synchronously stored in the traceability center of the traceability system. The data is tamper-proof and supports lifelong query and traceability.

[0097] S2802: Early warning data is synchronously displayed on the warehouse monitoring visualization panel in the background of the agricultural product traceability system, generating real-time data distribution bar charts and mean-uniformity trend curves, intuitively presenting the group quality deviation status, and assisting managers in making quick decisions.

[0098] In this embodiment, a closed-loop logic of active intervention in the storage environment and automatic sensor calibration is added. When the system triggers a product deviation warning, the gas replacement module is immediately activated to replace the ambient gas in the warehouse, quickly suppressing the trend of batch spoilage of fruits and vegetables. After the intervention is completed, the sensor equipment is automatically initialized to zero drift, eliminating measurement deviations caused by environmental disturbances and long-term operation, ensuring the accuracy of subsequent monitoring. This step relies on the coordinated execution of the control command module, gas replacement hardware module, and sensor calibration module of the agricultural product traceability system, and operates fully automatically without manual operation. The specific implementation steps are as follows: Step S29: Respond to product deviation warning and activate gas replacement start command. S2901: When step S27 determines that the product impact value is greater than the preset impact setting value and triggers the product deviation warning, the control instruction module of the agricultural product traceability system immediately generates a gas replacement start signal and transmits the signal synchronously to the preset gas replacement module in the warehouse. The instruction contains the current warehouse number, product type, traceability batch number, deviation level and other core related information to ensure that the intervention operation accurately corresponds to the target storage area.

[0099] S2902: The gas replacement module is a smart gas handling device for warehouses, integrating a gas pretreatment unit, a variable frequency delivery pump, a ring-shaped gas distribution pipe, and a gas concentration sensor in the warehouse. The gas distribution pipe is evenly laid on the shelves of the fruit and vegetable storage in the warehouse to ensure that there are no dead corners in the gas replacement. The gas pretreatment unit is used to purify, dehumidify, regulate the temperature, and remove ethylene / carbon dioxide from the air / preservation gas to form clean preservation gas that meets the requirements of warehouse storage.

[0100] Step S30: Perform ambient gas replacement operation according to preset parameters. S3001: After receiving the start command, the gas replacement module starts working at the system preset conveying speed, continuously pumping the pre-treated clean gas into the current warehouse; the preset conveying speed is a calibration parameter bound to the product type, determined by the fruit and vegetable storage and preservation standards, and the unit is m. 3 / min, leafy vegetables and climacteric fruits and vegetables have a higher corresponding conveying speed, while root vegetables have a moderate corresponding conveying speed.

[0101] S3002: Gas replacement is continuously preset for a replacement time. The preset replacement time is a fixed time pre-calibrated by the system based on the warehouse volume and product quantity, in minutes, to ensure that the original deterioration-inducing gas in the warehouse is completely replaced and discharged. During the replacement process, the gas concentration sensor in the warehouse monitors the gas replacement rate in real time, and automatically maintains a stable gas supply after reaching 100% replacement.

[0102] S3003: The pre-treatment gas pumped in meets two strict requirements: ① The environmental state value of the pumped gas is strictly within the preset environmental parameter setting range in step S3, that is, the temperature and humidity after pretreatment are completely matched with the storage environment standard of this type of fruit and vegetable, and will not cause environmental stress to the fruit and vegetable. ② The real-time data (fruit weight percentage) corresponding to the pumped gas is lower than the minimum value in the product process line, that is, the gas environment can significantly inhibit the respiration metabolism and ripening process of fruits and vegetables, pull the physiological state of fruits and vegetables back to the safe range of the product process line, and quickly curb the deterioration of batch deviation.

[0103] S3004: During the replacement process, all operating parameters (transport speed, replacement time, and real-time gas environment status value) are synchronously uploaded to the warehouse monitoring module of the agricultural product traceability system for real-time visualization and are also archived with traceability batches and product tags.

[0104] Step S31: Gas replacement complete, perform sensor zero drift bias value initialization. S3101: Upon receiving the start command, the gas replacement module immediately freezes the anomaly detection logic for the current batch of products and marks the sensor data collected during the replacement period as invalid data, excluding it from real-time status value calculations and subsequent statistical analysis. When the preset replacement time expires and the gas replacement operation is completed, the gas replacement module automatically stops pumping gas, and the system sends zero-drift initialization commands to the temperature and humidity sensors and the gas sensor, initiating the automatic calibration process. After calibration is completed, the system unfreezes the anomaly detection logic and restores real-time monitoring and early warning functions.

[0105] S3102: The zero drift bias value is the measurement offset error caused by long-term operation of the sensor, sudden environmental changes, and changes in gas composition. The initialization operation resets the sensor's reference measurement value and offset compensation value to the factory calibration state, eliminating the interference of drastic environmental changes on the sensor's accuracy during gas replacement.

[0106] S3103: Initialization Execution Process: ① Temperature and humidity sensor: Reset temperature zero drift bias and humidity zero drift bias, recalibrate the reference measurement point, and ensure that the subsequent temperature and humidity acquisition error is ≤±0.1℃ and ≤±1%RH; ② Gas sensor: Reset the zero drift of characteristic gas concentration detection, recalibrate the fruit mass percentage conversion benchmark, and ensure that real-time data acquisition of physiological state is error-free; S3104: After initialization, the sensor sends a calibration completion signal to the traceability system, and the system marks the batch of sensors as "calibrated successfully" and resumes normal real-time monitoring.

[0107] Step S32: Full-process traceability and archiving of intervention and calibration data S3201: The system automatically generates a complete record of gas replacement and sensor calibration, including the warning trigger time, warehouse number, replacement start / end time, delivery speed, replacement duration, pumped gas index, and sensor initialization results. All data is deeply linked to product traceability batch and product marking.

[0108] S3202: Records are synchronously stored in the traceability center and warehouse operation and maintenance database of the agricultural product traceability system, supporting managers to query, export, and verify in the background. Consumers can scan the code to view the warehouse intervention and equipment calibration records of this batch of products, realizing full traceability and verification of the warehouse management process.

[0109] In this embodiment, dynamic adaptive adjustment is achieved by introducing two indicators: uniform influence value and average influence value. The gas delivery speed is matched according to the dispersion of fruit and vegetable group quality, and the gas replacement time is matched according to the deviation of the group quality mean. This realizes the precision, differentiation, and energy saving of storage gas replacement intervention, ensuring the deviation correction effect while avoiding resource waste caused by excessive intervention. The entire process is automatically executed by the statistical calculation module and intelligent gas replacement control module of the agricultural product traceability system. The specific implementation steps are as follows: Step S33: Retrieve core parameters for deviation assessment S3301: Retrieve the uniform influence value I_unf and average influence value I_avg calculated in step S26 from the real-time calculation cache of the agricultural product traceability system; S3302: Confirm that the above parameters are fully bound to the current warehouse number, product type, and traceability batch number to ensure that the adjustment parameters correspond one-to-one with the fruit and vegetable groups to be intervened, and there is no risk of parameter mismatch. S3303: The synchronous retrieval system presets the basic conveying speed V_base and basic replacement time T_base for this product type. The above basic parameters are the gas replacement benchmark values ​​for this type of fruit and vegetable under standard deviation scenarios, which are calibrated by storage and preservation experiments and stored in the product database.

[0110] Step S34: Dynamically adjust the gas delivery speed based on the uniformity influence value. S3401: Clarify the core adjustment rules: The uniform influence value is used to characterize the dispersion of real-time data of the population. The larger the uniform influence value, the more significant the quality difference of the fruit and vegetable population and the higher the degree of uneven gas distribution in the warehouse. The faster the conveying speed is required to achieve rapid replacement throughout the entire area. The smaller the uniform influence value, the better the consistency of the population quality. The conveying speed can be reduced. The two have a positively correlated linear adjustment relationship. S3402: Performs dynamic calculation of conveyor speed; the system uses a linear proportional adjustment formula. Actual conveying speed V_real = base conveying speed V_base × uniform influence value I_unf; S3403: Set speed boundary protection threshold: To ensure equipment safety and replacement effect, the system limits the actual conveying speed to a range of 0.5V_base to 2V_base; if the calculated result is lower than the lower limit, it will be automatically assigned a value of 0.5V_base; if it is higher than the upper limit, it will be automatically assigned a value of 2V_base, to avoid ineffective replacement due to excessively low speed or damage to fruits and vegetables due to excessively high speed. S3404: The calculated actual delivery speed V_real is transmitted in real time to the frequency conversion control unit of the gas replacement module as the final speed parameter for pumping.

[0111] Step S35: Dynamically adjust the gas replacement time based on the average impact value. S3501: Clarify the core adjustment rules: The average impact value is used to characterize the degree of deviation of the average quality of the group from the standard value. The larger the average impact value, the further the overall quality of fruits and vegetables deviates from the safe range, the more harmful gases accumulate in the warehouse, and the longer the replacement time is required to achieve complete replacement. The smaller the average impact value, the lower the overall deviation, and the shorter the replacement time can be. The two have a positively correlated linear adjustment relationship. S3502: Execution of dynamic calculation of replacement duration; the system uses a linear proportional adjustment formula. Actual replacement time T_real = Base replacement time T_base × Average impact value I_avg; S3503: Set duration boundary protection threshold: The system limits the actual replacement duration to a range of 0.5T_base to 3T_base; if the calculated result is lower than the lower limit, it is automatically assigned to 0.5T_base; if it is higher than the upper limit, it is automatically assigned to 3T_base, to avoid incomplete replacement due to excessively short duration or energy waste due to excessively long duration; S3504: The calculated actual replacement time T_real is transmitted in real time to the timing control unit of the gas replacement module as the final duration parameter of the continuous pumping.

[0112] Step S36: Perform gas replacement operation based on dynamic adjustment parameters S3601: After receiving the actual delivery speed and actual replacement time parameters, the gas replacement module immediately starts the frequency converter pump and pumps the pre-treatment gas into the chamber at the adjusted speed, and continues to operate strictly according to the adjusted time. S3602: During the replacement process, the module provides real-time feedback of the current pumping speed and remaining time to the monitoring panel of the agricultural product traceability system, and simultaneously records the gas environment status value and real-time data of the pumped gas to ensure that the two indicators always meet the preset requirements. S3603: After the actual replacement time is reached, the gas replacement module automatically stops pumping gas, completing this differentiated gas replacement intervention.

[0113] Step S37: Dynamically adjust the entire process of data traceability and archiving S3701: The system automatically generates dynamic adjustment records for gas replacement, including full data such as uniform influence value, average influence value, basic parameters, actual parameters after adjustment, and replacement execution status; S3702: All records are bound to product tags, traceability batches, and warehouse numbers, and are simultaneously stored in the traceability center and warehousing intervention database of the agricultural product traceability system. They are tamper-proof, permanently stored, and support back-end verification by management personnel and traceability by consumers via QR code scanning.

[0114] This application also discloses a fruit and vegetable storage environment monitoring and early warning system, including a processor, wherein the processor executes the steps of the fruit and vegetable storage environment monitoring and early warning method as described in any of the above embodiments.

[0115] This application also discloses a storage medium storing a program, which, when executed by a processor, implements the steps of the fruit and vegetable storage environment monitoring and early warning method described in any of the above embodiments.

[0116] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application.

Claims

1. A method for monitoring and early warning of fruit and vegetable storage environment, characterized in that, Includes the following steps: Obtain the current product's inbound information, and based on the inbound information, obtain the product tag, product type, and product quantity. Based on the product tag, obtain the corresponding process stage and process time from the preset process database. Based on the product type, obtain the corresponding save process line from the preset product database. The content of the save process line corresponds to the save status of the product type. Based on the product quantity, obtain the corresponding quantity influence line. Based on the save process line and the quantity influence line, calculate the product process line based on the preset product data fusion model. The position of the current product on the product process line is calculated based on the process stage and process time, and the corresponding status data is obtained based on the position point; real-time data is obtained and calculated based on the gas sensor set in the current product, and the type of real-time data is the same as the type of status data. The real-time status value is calculated based on the real-time data and status data; if the real-time status value is greater than the preset status value, it is marked as an abnormal product and an abnormal warning is saved for the current product. Otherwise, mark it as a normal product; Temperature and humidity data are acquired from temperature and humidity sensors located next to the product. A temperature status value is calculated based on the temperature data and a preset temperature setting, and a humidity status value is calculated based on the humidity data and a preset humidity setting. The environmental status value is then calculated by weighted summation of the temperature and humidity status values ​​using the formula: Environmental Status Value = α × Temperature Status Value + β × Humidity Status Value, where α + β = 1, and α and β are preset positive weighting coefficients. If the environmental status value is outside the preset range, or if either the temperature or humidity status value exceeds its corresponding independent alarm threshold, an environmental anomaly warning is issued.

2. The fruit and vegetable storage environment monitoring and early warning method according to claim 1, characterized in that, The method also includes the following steps: According to the product type, the corresponding ripening influence line is obtained from the preset ripening database. According to the product quantity and status data corresponding to the product type, the corresponding ripening influence value is matched from the ripening influence line. The ripening influence value is the percentage coefficient of the influence on the real-time status of the product. The ripening influence value is greater than one. New real-time data is calculated based on the ripening effect value and real-time data, and the new real-time data is positively correlated with the ripening effect value; or, a new real-time state value is calculated based on the ripening effect value and real-time state value, and the new real-time state value is positively correlated with the ripening effect value; or, a temporary set state value is calculated based on the set state value and ripening effect value, and the temporary set state value is negatively correlated with the ripening effect value.

3. The method for monitoring and early warning of fruit and vegetable storage environment according to claim 2, characterized in that, The method also includes the following steps: The storage time of the current product is calculated based on the inbound and outbound information, and the transfer speed is calculated based on the storage time. Obtain the preset speed, calculate the speed coefficient based on the transfer speed and the preset speed, and adjust the ripening effect value according to the speed coefficient. The larger the speed coefficient, the smaller the ripening effect value, and the smaller the speed coefficient, the larger the ripening effect value.

4. The method for monitoring and early warning of fruit and vegetable storage environment according to claim 1, characterized in that, The method also includes the following steps: Retrieve the tags of multiple products in the current warehouse, and calculate the ratio of abnormal products to normal products among the tags as the abnormality ratio. If the abnormal ratio is greater than the preset reference ratio, a product saving alarm will be triggered; otherwise, the storage time of the product in the current warehouse will be determined. If the storage time is longer than the preset time, the rate of change of the real-time status value of the normal product within the preset time is calculated; if the rate of change is greater than the preset rate, a warning is issued during the storage process.

5. The method for monitoring and early warning of fruit and vegetable storage environment according to claim 1, characterized in that, The method also includes the following steps: Obtain the abnormal products corresponding to each product type, and calculate the distribution uniformity of abnormal products in multiple batches corresponding to the product type; where the distribution uniformity is the uniformity in the time dimension. The higher the distribution uniformity, the more evenly the abnormal products are distributed in multiple batches. The lower the distribution uniformity, the more concentrated the abnormal products are in a small number of batches. Calculate the trigger frequency of alarms for the product type; If the product save alarm trigger frequency is greater than the preset set frequency and the distribution uniformity is greater than the preset set uniformity, then the save process line in the product database is updated according to the real-time data corresponding to the abnormal product, so that the status data corresponding to the position point in the product process line is aligned with the real-time data of the abnormal product.

6. The method for monitoring and early warning of fruit and vegetable storage environment according to claim 1, characterized in that, The method includes the following steps: Get all the current real-time data in the current reference, calculate the average value of the real-time data as the real-time average value, and calculate the uniform value of the real-time data as the real-time uniform value. Obtain the preset average value and the preset uniform value, calculate the average influence value based on the real-time average value and the preset average value, and calculate the uniform influence value based on the real-time uniform value and the preset uniform value. The product impact value is calculated by weighting the average impact value and the uniform impact value. If the product impact value is greater than the preset impact setting value, a product deviation warning is issued.

7. The fruit and vegetable storage environment monitoring and early warning method according to claim 6, characterized in that, The method also includes the following steps: Based on product deviation warning, the preset gas replacement module is activated to replace the ambient gas in the current warehouse. The gas replacement module pumps pre-treated gas into the current warehouse at a preset delivery speed and continues for a preset replacement time. The ambient state value of the pumped gas is within the set range, and the real-time data of the pumped gas is lower than the minimum value in the product process line. After the gas pumping is complete, initialize the zero drift bias values ​​of the temperature and humidity sensor and the gas sensor.

8. The method for monitoring and early warning of fruit and vegetable storage environment according to claim 7, characterized in that, The method also includes the following steps: The conveying speed is adjusted according to the uniform influence value. The larger the uniform influence value, the faster the conveying speed, and the smaller the uniform influence value, the slower the conveying speed. The replacement time is adjusted according to the average impact value. The larger the average impact value, the longer the replacement time, and the smaller the average impact value, the shorter the replacement time.

9. A fruit and vegetable storage environment monitoring and early warning system, characterized in that, The method includes a processor that performs the steps of the fruit and vegetable storage environment monitoring and early warning method as described in any one of claims 1-8.

10. A storage medium, characterized in that, The storage medium stores a program, which, when executed by a processor, implements the steps of the fruit and vegetable storage environment monitoring and early warning method according to any one of claims 1-8.