An agricultural industry chain intelligent analysis method based on multi-source data fusion
By using distributed sensor networks and multi-source data fusion technology, the deterioration of grain quality can be inferred in real time and mapped to liquidation value. This solves the problem of real-time mapping of grain quality status and linkage with financial risks in grain storage, and improves the accuracy and stability of intelligent analysis and financial risk control in the grain industry chain.
Patent Information
- Application Number
- CN202611314369.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-27
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies are insufficient to infer the degree of grain quality deterioration in real time without damaging the sealed state of the grain pile, and to dynamically map it into real-time liquidation value. Furthermore, the risk warning linkage of supply chain finance is not accurate enough, leading to false alarms and unstable risk assessment.
By collecting microenvironmental data of grain piles through a distributed sensor network, and using multi-source data fusion and quality decay mapping models, combined with temperature gradient, gas concentration and moisture migration rate, grain quality indicators can be inferred in real time. This data is then linked with market conditions and supply chain data to generate real-time liquidation value and risk warnings.
It enables accurate prediction of grain quality deterioration without damaging the sealed grain pile, reduces false alarm rate, and improves the reliability and real-time performance of intelligent analysis of the grain industry chain and supply chain financial risk control.
Smart Images

Figure CN123180732A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of agricultural industry chain data processing and supply chain finance risk control technology, specifically to an intelligent analysis method for agricultural industry chains based on multi-source data fusion, applicable to scenarios such as grain storage, warehouse supervision, agricultural product supply chain services, and movable property pledge financing risk control. Background Technology
[0002] The grain industry chain typically includes planting, harvesting, storage, processing, distribution, sales, and financial services. In grain storage and supply chain finance, stored grain can be used as collateral to apply for financing from financial institutions. Because grain is a bio-based product, its quality can deteriorate over time due to factors such as temperature, moisture, microbial activity, and respiration during storage. For example, fatty acid values may increase, bulk density may decrease, moisture content may change abnormally, and the percentage of imperfect grains may increase. This quality deterioration affects the actual economic value of the grain, and consequently, the risk coverage of the collateral.
[0003] In related technologies, grain storage management typically relies on manual inspections, periodic sampling and testing, or single-point temperature threshold alarms. Periodic sampling and testing disrupts the sealed state of the grain pile, has a limited testing frequency, and struggles to reflect changes in the quality of the pledged goods in a timely manner. Single-point temperature threshold alarms are prone to misinterpreting uniform temperature increases caused by normal respiration in the grain pile as mold growth, leading to false alarms and unnecessary opening of the warehouse for inspection. While some data-driven models can predict quality changes using storage environment data, the predictions may violate the irreversible law of grain quality deterioration during storage, affecting the reliability of subsequent valuation and financial risk control results.
[0004] Furthermore, existing supply chain analysis solutions often focus on production scheduling, supply and demand matching, or logistics management, rarely mapping the quality status of grain in the warehousing process to economic value in real time and linking it to supply chain finance exposure. Movable asset pledge valuations also often employ static valuation methods, pricing the asset once at the time of pledge establishment and only periodically reviewing it afterward, making it difficult to reflect changes in the value of the pledged assets in a timely manner.
[0005] Therefore, how to infer the degree of grain quality deterioration using storage environment sensing data without disrupting the sealed state of the grain pile, dynamically map the quality status into real-time physical value, and link it with supply chain finance risk for early warning is a technical problem that needs to be solved in this field. Summary of the Invention
[0006] The technical problem to be solved by this invention is: how to infer the degree of deterioration of grain quality in real time by using multi-source data fusion without destroying the closed state of the grain pile, map the quality status to the real-time liquidation value of the grain, and combine it with supply chain operation data to carry out financial risk linkage early warning; at the same time, reduce the false alarm rate of abnormal identification of storage environment, avoid the quality prediction results from violating physical laws, and improve the reliability of intelligent analysis of grain industry chain and supply chain financial risk control.
[0007] To address the aforementioned technical problems, this invention provides an intelligent analysis method for the agricultural industry chain based on multi-source data fusion, comprising the following steps: Step S1: Collect time-series data of the storage microenvironment through a distributed sensor network deployed inside the grain pile, and obtain grain quality benchmark data, current inventory data, external market data, and supply chain operation data; align the four types of data according to a unified time benchmark, and normalize and integrate them using grain variety identification and warehouse number as association keys to form a multi-source fusion dataset; the storage microenvironment time-series data includes temperature time-series data, gas concentration time-series data, and moisture time-series data; the distributed sensor network includes at least three layers of temperature sensor arrays, gas concentration sensors, and moisture sensors deployed vertically in the grain pile.
[0008] Step S2: Feature extraction is performed on the time-series data of the storage microenvironment. The spatial distribution characteristics of the grain pile temperature gradient are calculated based on the temperature values of different temperature measurement layers at the same sampling time. The gas composition change rate is calculated based on the gas concentration change within a preset time window. The moisture migration rate is calculated based on the moisture sensor detection value change within a preset time window. Based on the extracted features, the quality index prediction value of the current grain quality is inferred using a quality decay mapping model. The quality decay mapping model takes the spatial distribution characteristics of the grain pile temperature gradient, the gas composition change rate, and the moisture migration rate as inputs and the quality index prediction value as output. The quality decay mapping model is trained based on a loss function that includes a physical constraint penalty term, which is used to prohibit the model from outputting changes in the direction of quality improvement. In the inference stage, the quality decay mapping model outputs the quality index prediction value that changes monotonically along the deterioration direction.
[0009] Step S3: Map the inferred quality index values obtained in Step S2 with external market data to calculate the real-time settlement value of the current grain.
[0010] Step S4: Compare the real-time liquidation value obtained in Step S3 with the pledge contract parameters to calculate the real-time pledge ratio; the pledge contract parameters include at least the credit balance; calculate the enterprise credit correction factor based on supply chain operation data to correct the real-time pledge ratio; trigger a tiered risk warning based on the corrected pledge ratio and generate a comprehensive risk control instruction containing disposal suggestions.
[0011] Step S5: Based on the comprehensive risk control instructions output in Step S4, generate a corresponding tiered response strategy, and send the tiered response strategy to at least one of the warehouse management terminal and the financial institution risk control terminal through the communication interface; feed back the actual quality sampling results after the response strategy is executed to Step S2, and correct the quality decay mapping model online.
[0012] Furthermore, in step S2, the spatial distribution characteristics of the grain pile temperature gradient are used to distinguish between normal respiratory heat and heat generated by mold growth. The specific discrimination method is as follows: Within a preset time window, the temperature difference between adjacent temperature measurement layers in the vertical direction of the grain pile is obtained at the same sampling time to form a spatial temperature difference sequence, and the spatial variance of the spatial temperature difference sequence is calculated. When the variance of the spatial temperature difference sequence is less than the first discrimination threshold, and the reverse fluctuation of adjacent temperature differences in the spatial temperature difference sequence does not exceed the preset tolerance value, it is determined to be a uniform temperature rise caused by normal respiratory heat. When the variance of the spatial temperature difference sequence is greater than or equal to the first discrimination threshold and less than or equal to the second discrimination threshold, it is judged as a suspected anomaly, the temperature sampling frequency of the corresponding warehouse is increased, and it is re-discriminated in the next time window; When the variance of the spatial temperature difference sequence is greater than the second discrimination threshold, and there is a local peak point, and the temperature change rate of the temperature measuring layer corresponding to the local peak point exceeds the preset rate threshold within the preset time window, it is determined to be moldy heating. When it is determined that the heating is caused by mold, the sampling frequency of the temperature measuring layer corresponding to the local peak point and its adjacent temperature measuring layers is increased, the area corresponding to the local peak point is marked as an abnormal area, and the input weight of the temperature feature corresponding to the abnormal area is increased in the quality decay mapping model. Wherein, the first discrimination threshold is less than the second discrimination threshold; the local peak point is a non-endpoint in the spatial temperature difference sequence, and the temperature difference value of the point is greater than the temperature difference value of the previous adjacent point and the temperature difference value of the next adjacent point, and is greater than the preset peak threshold.
[0013] Furthermore, in step S2, the rate of change of gas components includes the rate of change of carbon dioxide concentration and the rate of change of phosphine concentration; the rate of change of carbon dioxide concentration is used as a characterization parameter of the intensity of microbial activity. When the rate of change of carbon dioxide concentration exceeds the preset respiration rate threshold and the rate of change of phosphine concentration is lower than the preset fumigation threshold, it is determined that there is a risk of microbial activity. When the rate of change of phosphine concentration exceeds the preset fumigation threshold and the rate of change of carbon dioxide concentration is lower than the preset breathing rate threshold, it is determined to be a fumigation operation state. When the rate of change of carbon dioxide concentration exceeds the preset respiration rate threshold and the rate of change of phosphine concentration exceeds the preset fumigation threshold, it is determined to be a combined abnormal state, and the current biological activity risk level of the grain pile is increased. The risk level of biological activity in the current grain pile is determined based on the assessment results.
[0014] Further, in step S2, the training process of the quality degradation mapping model includes: Acquire historical data samples for no less than two complete storage cycles. A complete storage cycle is the complete time interval from the start of grain quality inspection upon entering the warehouse, through continuous storage monitoring, to its exit from the warehouse or before the next storage cycle. Each sample includes a sequence of storage microenvironment parameters and the corresponding sample quality test values at the corresponding time points. The sequence of warehouse microenvironment parameters is used as input, and the quality change between adjacent detection time points is used as output label. The training was performed using a long short-term memory network as the basic architecture. The loss function included the mean square error between the predicted and actual quality change values, as well as a physical constraint penalty term. The physical constraint penalty term is used to prevent changes in the direction of quality improvement of the model output; for the first type of quality index, the larger the value, the better the quality, the loss function increases the penalty when the current index value predicted by the model is higher than the index value at the previous detection time point; for the second type of quality index, the larger the value, the worse the quality, the loss function increases the penalty when the current index value predicted by the model is lower than the index value at the previous detection time point. During the inference phase, the quality change predicted by the model is superimposed with the quality index value at the previous detection time point to obtain the preliminary inference value of the current quality index; the preliminary inference value of the current quality index is then directionally corrected so that the final output inference value of the quality index changes monotonically along the direction of deterioration.
[0015] Furthermore, in step S3, the method for calculating the real-time liquidation value is as follows: Using the current market benchmark price as a base, a quality discount factor is determined based on the degree of depreciation of the inferred quality index relative to the warehousing benchmark quality. The market benchmark price is multiplied by the quality discount factor to obtain the unit settlement price, and then multiplied by the current inventory quantity to obtain the real-time settlement value. The market benchmark price is determined based on spot prices, futures prices, or their weighted average prices in external market data. The quality discount factor is calculated according to the following formula: Quality discount factor = 1 - Σw i ×d i Among them, w i Let Σw be the discount weighting coefficient for the i-th quality indicator. i =1; d iThe discount contribution for the i-th quality indicator; For the first type of quality index, where a larger value indicates better quality, d i Take (Q) 0i -Q i (t)) / Q 0i The larger of 0; For the second type of quality indicator, where a larger value indicates lower quality, d i Take (Q) i (t)-Q 0i ) / Q 0i The larger of 0; Q 0i Q is the baseline value of the i-th quality indicator at the time of warehousing. i (t) represents the real-time inferred value of the current i-th quality indicator; The quality discount factor ranges from 0 to 1; it is 0 when the calculation result is less than 0 and 1 when the calculation result is greater than 1.
[0016] Furthermore, in step S4, the judgment of the graded risk warning is performed in the following order: Calculate the corrected pledge ratio, which is the real-time value of the pledge ratio multiplied by the corporate credit correction factor; If the corrected pledge ratio is greater than or equal to the third warning threshold, a level three warning will be output. Otherwise, if the corrected pledge ratio is greater than or equal to the second warning threshold, a level two warning will be issued. Otherwise, if the corrected pledge ratio is greater than or equal to the first warning threshold, a level one warning will be issued. If the corrected pledge ratio is less than the first warning threshold, the risk warning will not be triggered. Wherein, the first warning threshold is less than the second warning threshold, and the second warning threshold is less than the third warning threshold.
[0017] Further, in step S4, the calculation method for the enterprise credit correction factor is as follows: Based on historical performance records in supply chain operation data, the on-time repayment rate and transaction stability index of the enterprise are calculated within a preset observation period; the transaction stability index is determined according to the ratio of the standard deviation of transaction amount to the average transaction amount within the preset observation period, and the value ranges from 0 to 1. Corporate credit correction factor = a × on-time repayment rate + b × transaction stability index Where a and b are weighting coefficients, and a+b=1; When a company's credit correction factor is lower than a preset credit threshold, the frequency of quality spot checks and sensor sampling for the corresponding warehouse will be increased.
[0018] Further, in step S5, the hierarchical response strategy includes: A Level 1 warning indicates a need to add collateral or make partial early repayments, and also suggests increasing the sensor sampling frequency and quality inspection frequency of the corresponding warehouse. A Level 2 warning should trigger a third-party re-inspection and a recommendation to restrict outbound shipments, and send an outbound permission lock command to the warehouse management terminal. The Level 3 early warning system locks out outbound access, generates an abnormal quality evidence package, suggests initiating collateral disposal or insurance claim procedures, and sends the abnormal quality evidence package to the financial institution's risk control terminal.
[0019] Further, in step S1, the distributed sensor network includes: No fewer than three layers of temperature sensor arrays are arranged in the vertical direction of the grain pile at a preset interval, with no fewer than four temperature measurement points in each layer, forming a three-dimensional temperature field sampling grid; Gas concentration sensors were installed on the surface and middle layers of the grain pile to collect carbon dioxide and phosphine concentrations. Moisture sensors are installed at the bottom and side walls of the grain pile to collect moisture migration rates.
[0020] Further, in step S5, the online correction includes: The actual quality sampling results are compared with the inferred quality index values at the corresponding time points in step S2, and the inference deviation is calculated; the inference deviation is the weighted relative deviation between the actual quality sampling results and the inferred quality index values at the corresponding time points. When the inference deviation exceeds the preset correction trigger threshold, the parameters of the quality decay mapping model are incrementally updated based on the samples within the most recent time window, using the actual quality sampling results as the new label. When the inference deviation of a preset number of consecutive detection cycles exceeds the correction trigger threshold, the quality degradation mapping model is retrained.
[0021] Compared with the prior art, the present invention has the following advantages: This invention utilizes the spatial distribution pattern of the vertical temperature gradient in a grain pile to distinguish between normal respiration heat and mold growth heat. Normal respiration heat typically manifests as a relatively uniform and slow temperature gradient change, while mold growth heat usually presents as a localized, concentrated, and rapidly rising temperature anomaly. By jointly judging the variance of the spatial temperature difference sequence, local peak values, and the temperature change rate of the corresponding thermometer layer, the probability of misjudging uniform respiration heat rise as localized mold growth heat can be reduced, unnecessary opening of the storage area for inspection can be decreased, and the risk of secondary impacts caused by the entry of hot and humid air from outside into the grain pile can be reduced.
[0022] This invention combines a temperature gradient spatial distribution discrimination mechanism with a quality degradation mapping model. When mold growth is detected, the system increases the sampling frequency of the corresponding temperature measurement layer and its adjacent layers, and increases the input weight of the temperature features corresponding to the abnormal area, enabling the model to capture local deterioration trends more quickly. This linkage mechanism allows the anomaly discrimination results to directly participate in model input adjustment and monitoring frequency control, rather than being a simple superposition of sensor data, model algorithms, and financial rules.
[0023] This invention introduces a physical constraint penalty term into the training of a quality degradation mapping model and performs deterioration direction correction on the output during the inference phase, ensuring that the model output conforms to the physical law that grain quality monotonically changes along the deterioration direction during storage. In supply chain finance scenarios, if the predicted quality value shows a change in the direction of quality improvement, it will lead to inflated liquidation value and misjudgment of risk. The physical constraint penalty term and direction correction can reduce such outputs that violate physical laws and improve the stability of financial risk control results.
[0024] This invention establishes a processing link from the perception of the storage environment to the inference of quality, from the mapping of quality status to physical value, and from the linkage of physical value to financial exposure. This enables the physical asset status in the grain industry chain to be dynamically linked with the supply chain finance risk status. It is applicable to grain storage enterprises, storage supervisors, agricultural supply chain service enterprises and financial institutions to carry out movable property pledge supervision and risk control.
[0025] This invention uses the actual sampling results after the response strategy is executed to correct the quality decay mapping model online, forming a closed-loop mechanism of perception, inference, evaluation, early warning, response and feedback, which helps to improve the model's adaptability under different grain varieties, storage environments and storage cycles. Attached Figure Description
[0026] Figure 1 This is a schematic diagram of the overall process of the method of the present invention.
[0027] Figure 2 This is a block diagram of the hierarchical early warning judgment logic in step S4 of the present invention. Detailed Implementation
[0028] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. The following embodiments are used to explain the present invention and are not intended to limit the scope of protection of the present invention. Example
[0029] like Figure 1 As shown, this embodiment takes the corn movable property pledge financing scenario of grain storage enterprises as an example to illustrate the specific implementation process of the method of the present invention.
[0030] Step S1: Multi-source data acquisition and fusion.
[0031] A grain depot's No. 3 warehouse stored 5,000 tons of corn produced in 2024. This batch of corn was used as collateral to apply for a working capital loan of 7.8 million yuan from a bank. The assessed value upon entering the warehouse was 12 million yuan, and the initial pledge ratio was 65%.
[0032] The time-series data acquisition method for the warehouse microenvironment is as follows: A distributed sensor network is deployed in warehouse No. 3. Five layers of temperature sensor arrays are arranged vertically at 1.5-meter intervals, with six temperature measurement points in each layer, totaling 30 measurement points, with a sampling period of 10 minutes. Carbon dioxide sensors and phosphine concentration sensors are installed 0.3 meters below the surface of the grain pile and at a depth of 2.5 meters in the middle layer, respectively, with a sampling period of 30 minutes. Two moisture sensors are deployed at the bottom of the grain pile and on each of the four side walls, with a sampling period of 1 hour.
[0033] The grain quality baseline data is based on the incoming inspection report: test weight 720g / L, fatty acid value 18.2mgKOH / 100g, moisture content 13.5%, and defective grain rate 4.2%. The grain was received into storage on October 15, 2024. Historical sampling records show inspections conducted every two months.
[0034] The current inventory level is 5,000 tons, according to the inventory ledger of the warehouse management system.
[0035] External market data is obtained through a market data interface. The spot price of corn on that day was 2180 yuan / ton, and the price of the main corn futures contract was 2215 yuan / ton.
[0036] Supply chain operation data includes: pledge contract number ZY2024-1015, credit balance of RMB 7.8 million, initial pledge ratio of 65%, and pledge term of 12 months. The company's on-time repayment rate over the past 12 months is 98.5%. The company's average monthly transaction amount is RMB 1.8 million, and the standard deviation of transaction amount is RMB 150,000.
[0037] The above data was normalized and integrated using UTC+8 time as the reference and "variety: corn 2024; warehouse: No. 3" as the association key to form a multi-source fusion dataset.
[0038] Step S2: Feature extraction and indirect inference of quality degradation.
[0039] Feature extraction is performed on time-series data of the warehouse microenvironment. The temperature difference between adjacent temperature measuring layers is calculated based on the temperature values of different measuring layers at the same sampling time, forming a spatial temperature difference sequence, and the spatial variance is calculated. The rate of change of gas components is calculated based on the changes in carbon dioxide and phosphine concentrations over the past 30 minutes. The moisture migration rate is calculated based on the changes in moisture sensor readings over the past hour.
[0040] The quality degradation mapping model employs a three-layer long short-term memory network architecture. The input is a sequence of warehouse micro-environment features from the past 30 days, and the output is the inferred quality index value. The penalty coefficient γ for the physical constraint penalty term in the loss function is set to 10.
[0041] The spatial distribution discrimination process for temperature gradients is as follows: Taking the sampling data at 14:00 on a certain day as an example, the temperatures of the five temperature measurement points are as follows: layer 1 16.2℃, layer 2 16.5℃, layer 3 16.8℃, layer 4 17.1℃, and layer 5 17.3℃. The temperature difference sequence between adjacent layers is [0.3, 0.3, 0.3, 0.2]℃, with a spatial variance of 0.0025, which is less than the first discrimination threshold of 0.01. The reverse fluctuation between adjacent temperature differences does not exceed the preset tolerance value ±0.05℃, and is judged as a uniform temperature rise caused by normal respiratory heat, without triggering abnormal area marking or increasing the sampling frequency.
[0042] The gas risk assessment parameters are set as follows: the preset breathing rate threshold is 3.0 μL / (L·h), the preset high-risk breathing rate threshold is 6.0 μL / (L·h), and the preset fumigation threshold is 0.5 μL / (L·h).
[0043] The carbon dioxide concentration change rate was 4.8 μL / (L·h), exceeding the preset respiration rate threshold of 3.0 μL / (L·h), but below the preset high-risk respiration rate threshold of 6.0 μL / (L·h). The phosphine concentration change rate was 0.02 μL / (L·h), below the preset fumigation threshold of 0.5 μL / (L·h). Based on the preset rules, a risk of microbial activity was determined, and the risk level was medium.
[0044] The quality degradation mapping model outputs the following inferred quality indicators: bulk density 690 g / L, fatty acid value 28.5 mg KOH / 100 g, moisture content 14.6%, and imperfect particle rate 8.2%.
[0045] Step S3: Quality Value Mapping.
[0046] The standard quality indicators for warehousing are: bulk density 720g / L, fatty acid value 18.2mgKOH / 100g, moisture content 13.5%, and imperfect particle rate 4.2%.
[0047] The current inferred quality indicators are: bulk density 690g / L, fatty acid value 28.5mgKOH / 100g, moisture content 14.6%, and imperfect particle rate 8.2%.
[0048] In this embodiment, bulk density belongs to the first category of quality indicators, where a larger value indicates better quality; fatty acid value, moisture content, and imperfect particle rate belong to the second category of quality indicators, where a larger value indicates worse quality.
[0049] The quality discount weighting coefficients are set as follows: bulk density weight w1=0.35, fatty acid value weight w2=0.30, moisture weight w3=0.15, and imperfect particle rate weight w4=0.20.
[0050] The contribution of the bulk density discount is taken as the larger value between (720-690) / 720 and 0, and the calculation result is 0.0417.
[0051] The fatty acid value discount contribution is taken as the larger value between (28.5-18.2) / 18.2 and 0, and the calculated result is 0.5659.
[0052] The contribution of moisture discount is taken as the larger value between (14.6-13.5) / 13.5 and 0, and the calculated result is 0.0815.
[0053] The contribution of the imperfect particle rate discount is taken as the larger value between (8.2-4.2) / 4.2 and 0, and the calculation result is 0.9524.
[0054] The weighted average discount contributions are as follows: Bulk density: 0.35 × 0.0417 = 0.0146 Fatty acid value: 0.30 × 0.5659 = 0.1698 Moisture: 0.15×0.0815=0.0122 Imperfect particle rate: 0.20 × 0.9524 = 0.1905 The total weighted discount contribution is 0.0146 + 0.1698 + 0.0122 + 0.1905 = 0.3871.
[0055] The quality discount factor is 1 - 0.3871 = 0.6129. Since 0.6129 is between 0 and 1, this value is directly used as the quality discount factor.
[0056] The current market benchmark price is the weighted average of spot and futures prices: 2180×0.6+2215×0.4=2194 yuan / ton.
[0057] Unit settlement price = 2194 × 0.6129 = 1344.8 yuan / ton.
[0058] Real-time settlement value = 1344.8 × 5000 = 6,724,000 yuan, or 6.724 million yuan.
[0059] Step S4: Financial exposure linkage and tiered early warning.
[0060] like Figure 2 As shown, when making a graded risk warning judgment, the real-time value of the pledge ratio is calculated first, then the corporate credit correction factor is calculated, and the corrected pledge ratio is obtained.
[0061] The real-time pledge ratio = credit balance / real-time settlement value = 780 / 672.4 = 1.160, or 116.0%.
[0062] The corporate credit correction factor is calculated as follows: On-time repayment rate R pay =0.985. Trading Stability Indicator S trade =1-15 / 180=0.917. Since the calculated result is between 0 and 1, we directly use this value. Let a=0.6, b=0.4, then the enterprise credit correction factor = 0.6×0.985+0.4×0.917=0.958.
[0063] The corrected pledge ratio = 116.0% × 0.958 = 111.1%.
[0064] The tiered warning thresholds are set as follows: first warning threshold 110%, second warning threshold 130%, and third warning threshold 150%.
[0065] The corrected pledge ratio of 111.1% is greater than or equal to the first warning threshold of 110% and less than the second warning threshold of 130%, therefore a level one warning is issued.
[0066] The first-level early warning instruction and handling suggestions are sent to the warehouse management terminal and the bank risk control terminal through the communication interface. The handling suggestions include: notifying the pledgee and the pledgor; suggesting that the pledgor add collateral of no less than RMB 100,000 equivalent within 5 working days, or repay the corresponding amount in advance, so that the revised pledge ratio is lower than the first warning threshold; increasing the frequency of quality spot checks in the next testing cycle, and increasing the sampling frequency of temperature, gas and moisture in the corresponding warehouse by one level.
[0067] Step S5: Graded response and feedback correction.
[0068] After the response strategy was implemented, actual sampling and testing were conducted in the next testing cycle. The actual sampling results were: bulk density 688 g / L, fatty acid value 29.0 mg KOH / 100 g, moisture content 14.7%, and imperfect particle rate 8.5%.
[0069] The actual sampled values are compared with the model-inferred values. The weighted average of the relative deviations of each indicator is used as the overall inference deviation, with the same weight as the quality discount weight.
[0070] Test weight deviation: |688-690| / 690=0.29% Fatty acid value deviation: |29.0-28.5| / 28.5=1.75% Moisture deviation: |14.7-14.6| / 14.6=0.68% Imperfect particle rate deviation: |8.5-8.2| / 8.2=3.66% Overall inference bias = 0.35 × 0.29% + 0.30 × 1.75% + 0.15 × 0.68% + 0.20 × 3.66% = 1.46%.
[0071] If the overall inference deviation does not exceed the preset correction trigger threshold of 5%, there is no need to trigger model parameter correction, and the model continues to run. Example
[0072] This embodiment illustrates the training process of the quality decay mapping model and the role of the physical constraint penalty term.
[0073] The training data came from corn storage data of a grain depot for two complete storage cycles from October 2022 to September 2024, totaling 24 months. Sampling and testing were conducted every two months, resulting in 13 data points. The complete storage cycle refers to the entire time interval from the start of quality testing upon grain entering the warehouse, through continuous storage monitoring, until the grain is released from the warehouse or before entering the warehouse for the next cycle.
[0074] The input for each training sample is a sequence of warehouse microenvironment parameters for the 30 days preceding the corresponding detection time point, and the output label is the quality change between adjacent detection time points.
[0075] The model uses a three-layer long short-term memory network with hidden layer dimensions of 128, 64, and 32, and an output layer of 4 neurons, corresponding to four quality indicators: bulk density, fatty acid value, moisture content, and imperfect particle rate.
[0076] The loss function is: L=MSE(ΔQ p ,ΔQ a )+γ×Σp i Where MSE represents the mean square error, ΔQ p ΔQ represents the predicted value of quality change. a This represents the actual detected value of the quality change, where γ is the physical constraint penalty coefficient; in this embodiment, γ = 10. i Let be the physical constraint penalty term corresponding to the i-th quality indicator.
[0077] In this embodiment, bulk density is a first-type quality indicator, and a higher value indicates better quality. For the first-type quality indicator, when the model predicts the current quality indicator value Q... p,i (t) is greater than the actual quality index value Q at the previous detection time point. a,i At time (t-1), p i =(Q p,i (t)-Q a,i The square of (t-1)); otherwise p i =0.
[0078] Fatty acid value, moisture content, and percentage of imperfect grains are classified as second-category quality indicators; higher values indicate lower quality. For these second-category quality indicators, when the model predicts the current quality indicator value Q... p,i (t) is less than the actual quality index value Q at the previous detection time point. a,i At time (t-1), p i =(Q a,i (t-1)-Q p,i The square of (t)); otherwise p i =0.
[0079] The Adam optimizer was used for training, with an initial learning rate of 0.001, a batch size of 64, and 200 training epochs. The training was stopped early when the validation set loss did not decrease for 15 consecutive epochs.
[0080] During the inference phase, the model first outputs the predicted value ΔQ of the quality change between adjacent detection time points. p ΔQ p Compared with the actual quality index value Q at the previous testing point a (t-1) superposition yields the preliminary estimated value Q of the current quality index. p '(t)=Q a (t-1)+ΔQ p .
[0081] Then, the initial inferred values of the current quality indicators are corrected for direction. For the first type of quality indicator, if Q... p '(t) is greater than Q a (t-1), then Q p '(t) corrected to Q a (t-1). For the second type of quality index, if Q p '(t) is less than Q a (t-1), then Q p '(t) corrected to Q a (t-1). After directional correction, the final output quality index prediction value changes monotonically along the deterioration direction.
[0082] The model's prediction accuracy on the independent test set was as follows, based on testing: The average absolute error of the bulk density prediction is 2.7 g / L.
[0083] The average absolute error of fatty acid value prediction is 0.8 mg KOH / 100g.
[0084] The average absolute error of moisture content prediction is 0.12 percentage points.
[0085] The average absolute error of the imperfect particle rate prediction is 0.3 percentage points.
[0086] Regarding the physical constraint satisfaction rate, after introducing a physical constraint penalty term and performing inference direction correction, the model's predictions on the test samples all satisfy the physical law that quality changes monotonically along the direction of deterioration. In contrast, the control model, after removing the physical constraint penalty term and retraining without direction correction, shows predictions shifting towards quality improvement on the same test set; for example, the predicted value of the first type of quality indicator increases, or the predicted value of the second type of quality indicator decreases. These results indicate that the physical constraint penalty term and direction correction can reduce the risk of quality predictions violating physical laws, which is beneficial for improving the reliability of subsequent value mapping and financial risk control. Example
[0087] This embodiment illustrates the specific implementation process of using temperature gradient spatial distribution patterns to distinguish between normal respiratory fever, suspected abnormal fever, and fever caused by mold.
[0088] The preset parameters are set as follows: The first discrimination threshold is 0.01.
[0089] The second discrimination threshold is 0.5.
[0090] The preset peak threshold is 0.8℃.
[0091] The threshold for the rate of temperature change at the local peak point is 0.5℃ / h.
[0092] The time window is 6 hours.
[0093] The tolerance for monotonicity is ±0.05℃.
[0094] Scenario 1: Normal respiratory fever.
[0095] Over a 6-hour period, the temperature changes at the five temperature measurement points were as follows: bottom layer +0.1℃, second layer +0.1℃, third layer +0.1℃, fourth layer +0.1℃, and top layer +0.1℃. The temperature difference sequence between adjacent layers was [0.1, 0.1, 0.1, 0.1], with a spatial variance of 0, which is less than the first discrimination threshold of 0.01. There were no reverse fluctuations between adjacent temperature differences, and the preset tolerance value was not exceeded. This was determined to be normal respiratory fever, and no abnormal alarm was triggered, nor was the sampling frequency increased.
[0096] Scenario 2: Suspected mold and confirmed mold.
[0097] Over a 6-hour period, the temperature changes at the five temperature monitoring points were as follows: bottom layer +0.1℃, second layer +0.2℃, third layer +2.4℃, fourth layer +0.3℃, and top layer +0.1℃. The temperature difference sequence between adjacent layers was [0.1, 2.2, -2.1, -0.2], with a spatial variance of 2.33, which is greater than the second discrimination threshold of 0.5. The second temperature difference value of 2.2℃ is a non-endpoint in the spatial temperature difference sequence and is greater than both the previous adjacent temperature difference value of 0.1℃ and the next adjacent temperature difference value of -2.1℃, and also greater than the preset peak threshold of 0.8℃. Therefore, a local peak point was identified. This local peak point corresponds to the third layer temperature monitoring point, whose 6-hour temperature change was 2.4℃, with a change rate of 0.4℃ / h, which did not exceed the rate threshold of 0.5℃ / h. This was identified as suspected mold growth, and an observation warning was issued. The temperature monitoring frequency in this area was increased to once every 5 minutes.
[0098] If the next time window is 6 hours, and the temperature at this point continues to rise by 3.6℃, reaching a rate of change of 0.6℃ / h, exceeding the rate threshold of 0.5℃ / h, then it is confirmed as mold growth heating. The system triggers a mold growth warning, increases the sampling frequency of the third temperature measurement layer and its adjacent temperature measurement layers, marks the corresponding area of the third layer as an abnormal area, and increases the input weight of the temperature feature corresponding to this abnormal area in the quality decay mapping model.
[0099] Scenario 3: Tolerance judgment.
[0100] The temperature difference sequence for a certain period is [0.30, 0.31, 0.30, 0.32, 0.33]. The spatial variance of this sequence is less than the first discrimination threshold of 0.01. There are inverse fluctuations between adjacent temperature differences of no more than 0.05℃, which do not exceed the tolerance value, and the overall temperature rise is still considered to be a uniform temperature rise caused by normal respiratory heat.
[0101] Scenario 4: Suspected abnormality.
[0102] The temperature difference sequence for a certain time period is [0.20, 0.50, 0.30, 0.40]. The spatial variance of this sequence is 0.0125, which is greater than the first discrimination threshold of 0.01 and less than the second discrimination threshold of 0.5. The system determines this as a suspected anomaly, increases the temperature sampling frequency of the corresponding warehouse, and re-executes the discrimination in the next time window.
[0103] Under the same sensing conditions, compared to comparing only whether the temperature at a single point exceeds a fixed threshold, the discrimination method described in this embodiment can reduce the number of alarms that mistake uniform breathing temperature rise for mold growth, and reduce unnecessary warehouse opening inspections caused by false alarms. Example
[0104] This embodiment illustrates the application of the method of the present invention in a scenario of dynamic adjustment of the discount rate of pledged collateral.
[0105] A grain storage company manages pledged grain from multiple warehouses. The grain quality deteriorates at different rates in different warehouses, resulting in varying degrees of deviation between the actual value and the initial appraised value of the pledged goods in each warehouse. Appraising the pledged goods from all warehouses using a uniform discount rate would fail to reflect the differences in grain quality deterioration across warehouses.
[0106] This embodiment applies the method of the present invention to the dynamic adjustment of the discount rate of pledged goods. For each warehouse, the real-time liquidation value of the pledged grain in that warehouse is calculated according to steps S1 to S3, and the quality loss rate is also calculated: Quality loss rate = 1 - Real-time liquidation value / Inbound assessment value The discount rate for collateral in this warehouse is dynamically adjusted based on the quality loss rate. Adjusted discount rate = Initial discount rate × (1 - Quality loss rate × Adjustment coefficient) The adjustment coefficient is determined based on the impact of quality loss rate on the discount rate of collateral during historical storage periods. In this embodiment, the adjustment coefficient for corn under the corresponding storage conditions is determined to be 0.8 through historical data regression analysis.
[0107] For example, the assessed value of a warehouse upon entry is 5 million yuan, with an initial discount rate of 65%. After calculations in steps S1 to S3, the current real-time liquidation value of the warehouse is 3.6 million yuan, with a quality loss rate of 28%. The adjusted discount rate = 65% × (1 - 28% × 0.8) = 65% × 0.776 = 50.4%.
[0108] When the adjusted discount rate is lower than 90% of the initial discount rate, the system sends a discount rate adjustment notification to the financial institution's risk control terminal, suggesting that the financial institution reassess the value of the collateral in the warehouse and adjust the credit limit. In this example, 90% of the initial discount rate is 58.5%, and the adjusted discount rate of 50.4% is lower than 58.5%, thus triggering the discount rate adjustment notification.
[0109] The system deployment architecture of this invention includes: a distributed sensor network deployed inside the grain silo, including a temperature sensor array, a gas concentration sensor, and a moisture sensor; a data processing server deployed locally or in the cloud, running a quality degradation mapping model, a value mapping module, an early warning judgment module, and a response strategy generation module; and a connection between a warehouse management terminal and a financial institution's risk control terminal via wired or wireless communication interfaces to issue early warning commands, outbound access control commands, and comprehensive analysis reports. The data flow relationship between the components is as follows: the sensor network collects data and sends it to the data processing server; the data processing server generates early warning commands and response strategies, and then sends them to the management terminal or risk control terminal via the communication interface; actual sampling results are fed back to the data processing server along the reverse path for online model correction.
[0110] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for intelligent analysis of the agricultural industry chain based on multi-source data fusion, characterized in that, Includes the following steps: Step S1: Collect time-series data of the storage microenvironment through a distributed sensor network deployed inside the grain pile, and obtain grain quality benchmark data, current inventory data, external market data, and supply chain operation data; align the four types of data according to a unified time benchmark, and normalize and integrate them using grain variety identification and warehouse number as association keys to form a multi-source fusion dataset; the storage microenvironment time-series data includes temperature time-series data, gas concentration time-series data, and moisture time-series data; the distributed sensor network includes at least three layers of temperature sensor arrays, gas concentration sensors, and moisture sensors deployed vertically in the grain pile; Step S2: Extract features from the time-series data of the storage microenvironment, calculate the spatial distribution characteristics of the grain pile temperature gradient based on the temperature values of different temperature measurement layers at the same sampling time, calculate the gas component change rate based on the gas concentration change within a preset time window, and calculate the moisture migration rate based on the moisture sensor detection value change within a preset time window; based on the extracted features, infer the quality index prediction value of the current grain quality using a quality decay mapping model. The quality degradation mapping model takes the spatial distribution characteristics of the grain pile temperature gradient, the rate of change of gas components, and the rate of moisture migration as inputs, and the inferred quality index value as output. The quality degradation mapping model is trained based on a loss function that includes a physical constraint penalty term, which is used to prevent the model from outputting changes in the direction of quality improvement. During the inference phase, the quality degradation mapping model outputs the inferred quality index value that changes monotonically along the direction of deterioration. Step S3: Map the inferred quality index values obtained in Step S2 to external market data to calculate the real-time settlement value of the current grain. Step S4: Compare the real-time liquidation value obtained in Step S3 with the pledge contract parameters to calculate the real-time pledge ratio; the pledge contract parameters include at least the credit balance; calculate the enterprise credit correction factor based on supply chain operation data to correct the real-time pledge ratio; trigger a graded risk warning based on the corrected pledge ratio and generate a comprehensive risk control instruction containing disposal suggestions. Step S5: Based on the comprehensive risk control instructions output in step S4, generate a corresponding tiered response strategy, and send the tiered response strategy to at least one of the warehouse management terminal and the financial institution risk control terminal through the communication interface. The actual quality sampling results after the response strategy is executed are fed back to step S2 to correct the quality degradation mapping model online.
2. The method according to claim 1, characterized in that, In step S2, the spatial distribution characteristics of the grain pile temperature gradient are used to distinguish between normal respiratory heat and mold growth heat. The specific discrimination method is as follows: Within a preset time window, the temperature difference between adjacent temperature measurement layers in the vertical direction of the grain pile is obtained at the same sampling time to form a spatial temperature difference sequence, and the spatial variance of the spatial temperature difference sequence is calculated. When the variance of the spatial temperature difference sequence is less than the first discrimination threshold, and the reverse fluctuation of adjacent temperature differences in the spatial temperature difference sequence does not exceed the preset tolerance value, it is determined to be a uniform temperature rise caused by normal respiratory heat. When the variance of the spatial temperature difference sequence is greater than or equal to the first discrimination threshold and less than or equal to the second discrimination threshold, it is judged as a suspected anomaly, the temperature sampling frequency of the corresponding warehouse is increased, and it is re-discriminated in the next time window; When the variance of the spatial temperature difference sequence is greater than the second discrimination threshold, and there is a local peak point, and the temperature change rate of the temperature measuring layer corresponding to the local peak point exceeds the preset rate threshold within the preset time window, it is determined to be moldy heating. When it is determined that the heating is caused by mold, the sampling frequency of the temperature measuring layer corresponding to the local peak point and its adjacent temperature measuring layers is increased, the area corresponding to the local peak point is marked as an abnormal area, and the input weight of the temperature feature corresponding to the abnormal area is increased in the quality decay mapping model. Wherein, the first discrimination threshold is less than the second discrimination threshold; the local peak point is a non-endpoint in the spatial temperature difference sequence, and the temperature difference value of the point is greater than the temperature difference value of the previous adjacent point and the temperature difference value of the next adjacent point, and is greater than the preset peak threshold.
3. The method according to claim 1, characterized in that, In step S2, the rate of change of gas components includes the rate of change of carbon dioxide concentration and the rate of change of phosphine concentration; the rate of change of carbon dioxide concentration is used as a characterization parameter of the intensity of microbial activity. When the rate of change of carbon dioxide concentration exceeds the preset respiration rate threshold and the rate of change of phosphine concentration is lower than the preset fumigation threshold, it is determined that there is a risk of microbial activity. When the rate of change of phosphine concentration exceeds the preset fumigation threshold and the rate of change of carbon dioxide concentration is lower than the preset breathing rate threshold, it is determined to be a fumigation operation state. When the rate of change of carbon dioxide concentration exceeds the preset respiration rate threshold and the rate of change of phosphine concentration exceeds the preset fumigation threshold, it is determined to be a combined abnormal state, and the current biological activity risk level of the grain pile is increased. The risk level of biological activity in the current grain pile is determined based on the assessment results.
4. The method according to claim 1, characterized in that, In step S2, the training process of the quality degradation mapping model includes: Acquire historical data samples for no less than two complete storage cycles. A complete storage cycle is the complete time interval from the start of grain quality inspection upon entering the warehouse, through continuous storage monitoring, to its exit from the warehouse or before the next storage cycle. Each sample includes a sequence of storage microenvironment parameters and the corresponding sample quality test values at the corresponding time points. The sequence of warehouse microenvironment parameters is used as input, and the quality change between adjacent detection time points is used as output label. The training was performed using a long short-term memory network as the basic architecture. The loss function included the mean square error between the predicted and actual quality change values, as well as a physical constraint penalty term. The physical constraint penalty term is used to prevent changes in the direction of quality improvement of the model output; for the first type of quality index, the larger the value, the better the quality, the loss function increases the penalty when the current index value predicted by the model is higher than the index value at the previous detection time point; for the second type of quality index, the larger the value, the worse the quality, the loss function increases the penalty when the current index value predicted by the model is lower than the index value at the previous detection time point. During the inference phase, the quality change predicted by the model is superimposed with the quality index value at the previous detection time point to obtain the preliminary inference value of the current quality index; the preliminary inference value of the current quality index is then directionally corrected so that the final output inference value of the quality index changes monotonically along the direction of deterioration.
5. The method according to claim 1, characterized in that, In step S3, the method for calculating the real-time liquidation value is as follows: Using the current market benchmark price as a base, a quality discount factor is determined based on the degree of depreciation of the inferred quality index relative to the warehousing benchmark quality. The market benchmark price is multiplied by the quality discount factor to obtain the unit settlement price, and then multiplied by the current inventory quantity to obtain the real-time settlement value. The market benchmark price is determined based on spot prices, futures prices, or their weighted average prices in external market data. The quality discount factor is calculated according to the following formula: Quality discount factor = 1 - Σw i ×d i Among them, w i Let Σw be the discount weighting coefficient for the i-th quality indicator. i =1; d i The discount contribution for the i-th quality indicator; For the first type of quality index, where a larger value indicates better quality, d i Take (Q) 0i -Q i (t)) / Q 0i The larger of 0; For the second type of quality indicator, where a larger value indicates lower quality, d i Take (Q) i (t)-Q 0i ) / Q 0i The larger of 0; Q 0i Q is the baseline value of the i-th quality indicator at the time of warehousing. i (t) represents the real-time inferred value of the current i-th quality indicator; The quality discount factor ranges from 0 to 1; it is 0 when the calculation result is less than 0 and 1 when the calculation result is greater than 1.
6. The method according to claim 1, characterized in that, In step S4, the judgment of the graded risk warning is performed in the following order: Calculate the corrected pledge ratio, which is the real-time value of the pledge ratio multiplied by the corporate credit correction factor; If the corrected pledge ratio is greater than or equal to the third warning threshold, a level three warning will be issued. Otherwise, if the corrected pledge ratio is greater than or equal to the second warning threshold, a level two warning will be issued. Otherwise, if the corrected pledge ratio is greater than or equal to the first warning threshold, a level one warning will be issued. If the corrected pledge ratio is less than the first warning threshold, the risk warning will not be triggered. Wherein, the first warning threshold is less than the second warning threshold, and the second warning threshold is less than the third warning threshold.
7. The method according to claim 6, characterized in that, In step S4, the calculation method for the enterprise credit correction factor is as follows: Based on historical performance records in supply chain operation data, the on-time repayment rate and transaction stability index of enterprises are calculated within a preset observation period; the transaction stability index is determined according to the ratio of the standard deviation of transaction amount to the average transaction amount within the preset observation period, and the value ranges from 0 to 1. Corporate credit correction factor = a × on-time repayment rate + b × transaction stability index Where a and b are weighting coefficients, and a+b=1; When a company's credit correction factor is lower than a preset credit threshold, the frequency of quality spot checks and sensor sampling for the corresponding warehouse will be increased.
8. The method according to claim 6, characterized in that, In step S5, the hierarchical response strategy includes: A Level 1 warning indicates a need to add collateral or make partial early repayments, and also suggests increasing the sensor sampling frequency and quality inspection frequency of the corresponding warehouse. A Level 2 warning should trigger a third-party re-inspection and a recommendation to restrict outbound shipments, and send an outbound permission lock command to the warehouse management terminal. The Level 3 early warning system locks out outbound access, generates an abnormal quality evidence package, suggests initiating collateral disposal or insurance claim procedures, and sends the abnormal quality evidence package to the financial institution's risk control terminal.
9. The method according to claim 1, characterized in that, In step S1, the distributed sensor network includes: No fewer than three layers of temperature sensor arrays are arranged in the vertical direction of the grain pile at a preset interval, with no fewer than four temperature measurement points in each layer, forming a three-dimensional temperature field sampling grid; Gas concentration sensors were installed on the surface and middle layers of the grain pile to collect carbon dioxide and phosphine concentrations. Moisture sensors are installed at the bottom and side walls of the grain pile to collect moisture migration rates.
10. The method according to claim 1, characterized in that, In step S5, the online correction includes: The actual quality sampling results are compared with the inferred quality index values at the corresponding time points in step S2, and the inference deviation is calculated; the inference deviation is the weighted relative deviation between the actual quality sampling results and the inferred quality index values at the corresponding time points. When the inference deviation exceeds the preset correction trigger threshold, the parameters of the quality decay mapping model are incrementally updated based on the samples within the most recent time window, using the actual quality sampling results as the new label. When the inference deviation of a preset number of consecutive detection cycles exceeds the correction trigger threshold, the quality degradation mapping model is retrained.
