Logistics intelligent early warning system based on the Internet of Things
Through the temperature data collection, denoising and dynamic parameter adjustment of the Internet of Things intelligent early warning system, the problem of difficulty in reflecting the volatility of logistics temperature data is solved, high-accuracy temperature prediction and instant warning are achieved, and the quality of goods is protected.
Patent Information
- Application Number
- CN202410888329.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-07-04
AI Technical Summary
Existing technology is difficult to accurately reflect the fluctuation of temperature data in logistics temperature monitoring, resulting in low prediction accuracy, inability to effectively warn of temperature anomalies, and affecting the quality of goods.
A logistics intelligent early warning system based on the Internet of Things is used to collect data in real time through the temperature data acquisition module. The preprocessing unit performs denoising operations, the prediction optimization unit dynamically adjusts the algorithm parameters, and the early warning unit provides instant warning to ensure the accuracy and sensitivity of the temperature data.
It improves the accuracy and robustness of temperature prediction, issues early warnings in a timely manner, protects the quality of temperature-sensitive goods, and avoids false positives or negatives caused by messy data.
Smart Images

Figure CN118411092B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to a logistics intelligent early warning system based on the Internet of Things. Background Art
[0002] Logistics intelligent early warning technology plays a core role in contemporary supply chain management, and has immeasurable value in accelerating logistics circulation, cost control, enhancing customer trust and the overall robustness of the supply chain. Especially for perishable, high-value and environmentally sensitive commodities, such as fresh food and pharmaceutical products, it is necessary to monitor the transportation status at all times. Among these factors, temperature has the greatest impact. For some temperature-sensitive fresh foods, if the transportation temperature range cannot be guaranteed, they are prone to deterioration. The existing technology mainly reflects the temperature monitoring of cold chain logistics through the medium of temperature monitoring of refrigerated trucks, but these studies are all monitoring the current temperature of cold chain logistics. Only after the temperature deviates can relevant measures be taken. However, for temperature-sensitive fresh foods, temperature deviations in a short period of time are enough to cause changes in the quality of fresh foods. Therefore, it is necessary to predict the temperature change trend and actively identify potential risks.
[0003] In the 9th issue of Computer Age journal in 2023, there is an article entitled "Exploration of Time Series Prediction Methods Combining Historical Trends and Forecasting Errors". The article provides the HTFE (Historical-Trends-and-Forecasting-Error-Combined) algorithm. The core idea of this algorithm is to combine the trend analysis of historical data with real-time data monitoring, and through the process of prediction-correction-prediction, continuous learning and self-correction process, dynamically adjust the prediction strategy to improve the accuracy and timeliness of future data predictions. This algorithm is particularly suitable for data prediction based on time series, that is, predicting the data change trend in the future based on past time series data. It can be applied to many fields such as financial stocks, weather forecasts, sensor warnings, etc.
[0004] In the above scheme, the algorithm predicts the value of the next moment based on the predicted value of the current moment, the estimated prediction range of the previous moment, and the preset prediction range error factor. However, in logistics transportation, the bumps of the vehicle cause frequent vibrations, which cause the temperature sensor to produce mechanical vibrations, which in turn causes the collected temperature data to fluctuate and be unstable. The collected temperature data will have certain noise. The algorithm uses a fixed and unified prediction range error factor, which cannot flexibly respond to the dynamic changes in the volatility of temperature data and is difficult to accurately reflect the fluctuation differences in temperature data over time, resulting in low prediction accuracy of temperature data. Summary of the invention
[0005] To solve When the algorithm predicts logistics temperature data, it is difficult to accurately reflect the fluctuation of temperature data. To solve the problem of low prediction accuracy of temperature data, the present invention proposes a logistics intelligent early warning system based on the Internet of Things, which specifically adopts the following scheme:
[0006] The logistics intelligent early warning system based on the Internet of Things includes:
[0007] A temperature data collection module, used to collect temperature data through a temperature sensor installed in the logistics cargo warehouse and store the temperature data in the cloud;
[0008] The temperature data prediction module is used to read the temperature data in the cloud and predict the future temperature data, including:
[0009] A preprocessing unit, used for acquiring a temperature data sequence up to the current moment, performing a denoising operation on the temperature data sequence, and sending the denoised temperature data sequence to the prediction optimization unit;
[0010] The prediction optimization unit is used to evaluate the volatility of the temperature data in the denoised temperature data sequence, and to optimize the temperature data for predicting the next moment according to the volatility. The parameters of the algorithm are adjusted, and the parameters are the influencing factors of the prediction error range of the temperature data at the next moment. The algorithm predicts the temperature data at the next moment and feeds the prediction results back to the early warning unit;
[0011] The early warning unit is used to determine whether the temperature data predicted at the next moment exceeds a preset temperature range according to the prediction result. If so, a temperature early warning is issued; otherwise, no temperature early warning is issued.
[0012] In the above technical solution, by deploying temperature sensors in the logistics cargo warehouse and collecting data in real time, the temperature data collection module ensures the real-time and continuity of temperature monitoring. The preprocessing unit of the temperature data prediction module performs denoising operations to filter out irrelevant noise introduced by factors such as sensor errors and environmental interference, thereby improving data quality. This process ensures the accuracy of subsequent analysis and prediction, and avoids false positives or negative positives caused by data clutter. The prediction optimization unit dynamically adjusts the prediction results by analyzing the volatility of the denoised temperature data sequence. The algorithm parameters, especially the factors affecting the prediction error range, this adaptive adjustment mechanism enables the algorithm to better adapt to the dynamic changes of actual data, especially in the case of large temperature fluctuations, to maintain the accuracy and sensitivity of the prediction, thereby improving the robustness and practicality of the prediction model. The early warning unit is based on the adjusted The algorithm predicts the temperature change at the next moment in advance and determines whether it exceeds the preset safe temperature range, so as to provide immediate warning function, enabling logistics managers to respond quickly and take cooling, insulation or other necessary measures to effectively prevent goods from being damaged due to abnormal temperature and ensure the quality of the goods.
[0013] Preferably, the preprocessing unit performs a denoising operation on the temperature data sequence, comprising:
[0014] Taking any temperature data in the temperature data sequence as target temperature data, and setting a local range of the target temperature data;
[0015] Calculating the local regularity of the target temperature data according to the consistency of the change amplitude and the consistency of the change frequency of the temperature data in the local range, wherein the local regularity is positively correlated with the consistency of the change amplitude and the consistency of the change frequency;
[0016] Preset local regularity threshold;
[0017] The temperature data in the temperature data sequence whose local regularity is less than the local regularity threshold is used as noise data, and all the noise data in the temperature data sequence is removed.
[0018] The above technical solution calculates the local regularity of the target temperature data by analyzing the consistency of the amplitude and frequency of the temperature change in the local range. This method can effectively identify the noise data caused by external interference rather than actual temperature changes. After eliminating these noise data, the data quality is guaranteed.
[0019] Preferably, the local regularity of the target temperature data is the sum of the consistency of the change amplitude and the consistency of the change frequency.
[0020] The above technical solution combines the consistency of the change amplitude and frequency, and can fully reflect the smoothness of local temperature changes.
[0021] Preferably, the consistency of the change amplitude and the consistency of the change frequency include:
[0022] Using the first-order derivative method to identify all extreme value points within the local range of the target temperature data, taking the difference in the acquisition time of every two adjacent extreme value points as a time difference, obtaining the time difference sequence corresponding to all extreme value points, taking the numerical difference between every two adjacent extreme value points as a temperature difference, obtaining the temperature difference sequence corresponding to all extreme value points;
[0023] The fitting curve of the time difference series and the fitting curve of the temperature difference series are obtained by polynomial fitting respectively, and the consistency of the variation amplitude is , is the natural exponential function, is the mean of the fitting loss of all temperature differences in the temperature difference sequence, and the consistency of the change frequency is , is the mean of the fitting losses of all time differences in the time difference series.
[0024] The above technical solution identifies extreme points through the first-order derivative method, and uses polynomial fitting to analyze the mean fitting loss of time difference and temperature difference series. This consistency evaluation method based on local pattern changes improves the sophistication and accuracy of noise identification. It combines the consistency of change amplitude and change frequency with the use of natural exponential functions to quantify the inherent laws of the data series, and effectively reflects the smoothness and regularity of local data by calculating the mean fitting loss. It further optimizes the evaluation of the local regularity of the target temperature data and ensures the scientificity and effectiveness of data processing.
[0025] Preferably, the preprocessing unit performs a denoising operation on the temperature data sequence, further comprising: after removing noise data from the temperature data sequence, performing linear interpolation to complete the temperature data sequence, and then performing median filtering to perform secondary denoising.
[0026] The above technical solution fills the missing temperature data due to denoising through linear interpolation, which not only restores the continuity of the temperature data sequence, but also maintains the natural transition between data and avoids information loss. Then, median filtering is used for secondary denoising, which effectively eliminates residual outliers and makes the data sequence smoother and closer to the actual temperature change trend.
[0027] Preferably, the local range of the target temperature data includes: taking the target temperature data and N temperature data on its left and right sides as the local range of the target temperature data; if the number of temperature data on its left and / or right sides is less than N, the value of N takes the smallest number on the left or right side, and N is a preset number.
[0028] Preferably, the prediction optimization unit evaluates the volatility of the temperature data in the denoised temperature data sequence, including:
[0029] Select the temperature data sequence Temperature data, is the default value;
[0030] The volatility of the temperature data series ,in, , Respectively The maximum and minimum values of the temperature data.
[0031] The above technical solution simplifies the complexity of volatility calculation, allowing the system to respond to temperature fluctuations in real time, especially when the environment changes rapidly during the logistics process, and can adjust the prediction strategy more quickly to adapt to the current situation.
[0032] Preferably, the prediction optimization unit calculates the The parameters of the algorithm are adjusted: in, For the The influencing factors of the algorithm's preset initial prediction error range, is the influencing factor of the adjusted forecast error range.
[0033] The above technical solutions combined with volatility Dynamic acquisition Factors affecting the prediction error range of the algorithm , ensuring that the algorithm can flexibly adapt to the volatility of the current data series, which not only improves the accuracy of the prediction, but also enhances the model's adaptability to data with different degrees of volatility. By dynamically adjusting the algorithm's parameters, it not only maintains the stability of the algorithm, but also enhances the accuracy of the prediction based on the actual volatility, effectively avoiding over-prediction or under-prediction.
[0034] The present invention has the following effects:
[0035] The present invention uses real-time and accurate temperature monitoring, intelligent data preprocessing and adaptive prediction technology to not only effectively filter out environmental interference and ensure prediction accuracy, but also dynamically adjust algorithm parameters to adapt to temperature fluctuations, thereby improving the accuracy of temperature prediction, being able to issue early warnings in a timely manner, and effectively protecting the quality of temperature-sensitive goods. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] By reading the following detailed description with reference to the accompanying drawings, the above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:
[0037] Figure 1 It is a schematic diagram of the system structure of the present invention. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0039] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0040] Reference Figure 1 The intelligent early warning system for logistics based on the Internet of Things includes a temperature data acquisition module S1 and a temperature data prediction module S2, and the temperature data prediction module includes a preprocessing unit S21, a prediction optimization unit S22 and an early warning unit S23.
[0041] The temperature data acquisition module S1 includes a temperature sensor, which is installed in the logistics cargo warehouse with a sampling interval of 5 seconds. It also integrates NB-IoT (narrowband Internet of Things) technology to achieve remote wireless transmission of temperature data, ensuring the real-time and continuity of cargo temperature information during the logistics process. After the data is collected from the sensors deployed in the cargo warehouse, it uses the low power consumption and wide coverage characteristics of NB-IoT to ensure stable transmission even in remote areas or areas with poor signals. These precious temperature data are then securely sent to the cloud server, where they are centrally stored and processed, providing an immediate and reliable data basis for subsequent analysis, prediction, and intelligent early warning, thereby improving the efficiency and intelligence of logistics monitoring.
[0042] The temperature data prediction module S2 is used to read the temperature data in the cloud and predict the future temperature data, including:
[0043] The pre-processing unit S21 performs the following operations:
[0044] S211: Obtain a temperature data sequence up to the current moment: In this embodiment, the length of the temperature data sequence is set to 20. For example, the current moment is T1, and M1 temperature data are continuously acquired from the current moment to obtain a temperature data sequence. In this embodiment, M1 is set to 20. It is particularly noted that if the temperature data before the current moment is less than M1, it means that the number of temperature data collected at this time is too small, which may belong to the initial collection stage. There is no need for subsequent prediction. Only when the number of temperature data reaches M1, the subsequent temperature data is predicted.
[0045] S212: performing a denoising operation on the temperature data sequence;
[0046] Since the vibration of the vehicle is a factor that cannot be ignored during the logistics transportation process, it can directly or indirectly affect the accuracy and stability of the sensor data collected, especially when monitoring environmentally sensitive parameters such as temperature. The possible effects of vehicle vibration include: sensor physical displacement: vibration may cause the sensor to move slightly in the installation position. Although this movement may be very small, for high-precision temperature measurement, even a small position change may cause fluctuations in readings, especially in the application of contact temperature sensors, loose contact or position offset will affect the measurement results; loose circuit connection: long-term vibration may cause the connection between the sensor and the data recording device to loosen, causing poor contact, which in turn leads to interruption of the measurement signal or degradation of the signal quality, manifested as unstable data; thermal conduction or convection disturbance: for sensors that rely on thermal conduction or ambient air flow to measure temperature, the vibration of the vehicle may stir the surrounding medium (such as air), change the local heat exchange conditions, and affect the measured temperature value, especially in closed or semi-enclosed cargo warehouses, where this effect is more significant; sensor characteristics: some types of sensors (such as thermocouples) may generate additional signal noise due to mechanical stress or slight deformation of internal materials under severe vibration, further increasing the instability of the data. Therefore, considering the impact of vehicle vibration on temperature data collection, the use of effective data preprocessing methods, such as denoising algorithms, is crucial to improving the accuracy and reliability of temperature monitoring in logistics transportation.
[0047] The denoising operation specifically includes:
[0048] First, any temperature data in the temperature data sequence is taken as the target temperature data, and the local range of the target temperature data is set. Specifically, the target temperature data and N temperature data on its left and right sides are taken as the local range of the target temperature data. If the number of temperature data on its left and / or right side is less than N, the value of N is the smallest number on the left or right side. In this embodiment, N is 8. For example, for the 5th temperature data in the temperature data sequence, there are 4 temperature data on its left side, which is less than 8, so 4 temperature data are also taken on its right side. At this time, the value of N is 4, and the 5th temperature data, the 1st to 4th temperature data on the left side, and the 6th to 9th temperature data on the right side together constitute the local range of the 5th temperature data.
[0049] Then, the temperature data within the local range of the target temperature data is analyzed for regularity, and the consistency of the change amplitude and the consistency of the change frequency of the temperature data within the local range are obtained:
[0050] The first-order derivative method is used to identify all extreme points in the local range of the target temperature data. The difference between the acquisition times of every two adjacent extreme points is taken as a time difference to obtain the time difference sequence corresponding to all extreme points. The numerical difference between every two adjacent extreme points is taken as a temperature difference to obtain the temperature difference sequence corresponding to all extreme points.
[0051] For example, if there are 8 extreme points in the local range of a target pixel point, starting from the first extreme point, a time difference can be obtained between the acquisition times of every two adjacent extreme points, and a time difference sequence consisting of 7 time differences can be obtained in total. The sequence numbers of the time differences in the sequence are 1-7. Since the extreme points in the local range are also temperature data, starting from the first extreme point, a temperature difference can be obtained between every two adjacent extreme points, and a temperature difference sequence consisting of 7 temperature differences can be obtained in total. The sequence numbers of the time differences in the sequence are 1-7.
[0052] Polynomial fitting is used to obtain the fitting curves of the time difference series and the temperature difference series respectively. The abscissa of the fitting curve of the time difference series is the sequence number of the time difference, and the ordinate is the value of the time difference. The abscissa of the fitting curve of the temperature difference series is the sequence number of the temperature difference, and the ordinate is the value of the temperature difference.
[0053] The consistency of the change amplitude of the temperature data within the local range of the target pixel is calculated according to the following formula:
[0054]
[0055] In the formula, Indicates The consistency of the change range of temperature data in the local range of each target pixel, is the natural exponential function, is the mean of the fitting losses of all temperature differences in the temperature difference sequence. The fitting loss of each temperature difference is the absolute value of the difference between the fitting value and the actual value of the temperature difference. For example, if the temperature difference is 2 and the fitting value of the temperature difference is 3, the fitting loss is 1.
[0056] This formula quantifies the consistency of the temperature data change amplitude within the local range of the target pixel through the natural exponential function. Its significance lies in that by calculating the mean fitting loss μ(w) of the temperature difference sequence, it can effectively measure the deviation between the actual temperature change and the model predicted change. The smaller the fitting loss, the better the actual temperature data fits the theoretical model, that is, the data changes are smoother and more regular. Therefore, The size of directly reflects the consistency and smoothness of temperature fluctuations in the local area. When it is close to 1, it indicates that the temperature change in the local range is very regular and the fluctuation amplitude is consistent. It is more likely to be normal temperature data. On the contrary, it is more likely to be temperature data interfered by noise. And through the natural exponential function The use of The sensitivity of the value to the fitting loss decreases exponentially as the loss increases, which means that even tiny inconsistencies will be amplified through the exponential function and thus given sufficient attention in the calculation, improving the sensitivity and recognition ability of the analysis results to irregular local temperature fluctuations.
[0057] The consistency of the change frequency of the temperature data within the local range of the target pixel is calculated according to the following formula:
[0058]
[0059] In the formula, For the The consistency of the change frequency of temperature data in the local range of the target pixel point, is the natural exponential function, is the mean of the fitting losses of all time differences in the time difference sequence. The fitting loss of each time difference is the absolute value of the difference between the fitting value and the actual value of the time difference. For example, if the time difference is 4 and the fitting value of the temperature difference is 2, then the fitting loss is 2.
[0060] This formula is designed to evaluate the consistency of the frequency of temperature data changes within the local range of the target pixel point. Its significance is: by calculating the mean fitting loss of the time difference series , using the natural exponential function to transform this mean, effectively reflects the regularity of the corresponding time interval when the local temperature data changes. If the time interval changes tend to be consistent (that is, the fitting loss is small), then If it is close to 1, it means that the temperature change frequency in this area is stable. Otherwise, it means that the change frequency is irregular, and there may be external interference or abnormality. The natural exponential function is used. , enhanced Sensitivity to frequency variations, even small frequency inconsistencies, can cause The significant decrease in the value enhances the system's ability to identify abnormal changes in local temperature data, which is crucial for timely detection and location of potential temperature control problems, especially in logistics environments with high temperature sensitivity.
[0061] Next, the local regularity of the target temperature data is calculated according to the consistency of the change amplitude and the consistency of the change frequency of the temperature data in the local range. The local regularity of the target temperature data is the sum of the consistency of the change amplitude and the consistency of the change frequency.
[0062] Since the local regularity is positively correlated with the consistency of the change amplitude and the consistency of the change frequency, the consistency of the change amplitude and the consistency of the change frequency respectively evaluate the stability and regularity of the temperature data around the target pixel from the two dimensions of the intensity stability of temperature fluctuation and the regularity of fluctuation rhythm. The sum of the two as the measure of local regularity can comprehensively reflect the smoothness and periodicity characteristics of the temperature change in the region, and more comprehensively characterize the internal order of the temperature data. The better the consistency of the change amplitude of the temperature data in the local range, the better the consistency of the change frequency, indicating that the change of the temperature data in the local range has a strong regularity. It can be seen that the local regularity is positively correlated with the consistency of the change amplitude and the consistency of the change frequency. The stronger the local regularity. In the process of logistics transportation, there are basically two situations in which the temperature data collected by the sensor fluctuates. One is that the temperature data collected by the temperature sensor produces small and regular fluctuations due to the mechanical vibration of the car itself during transportation, and the other is that the temperature data collected by the temperature sensor has large abnormal fluctuations due to the bumps of the car.
[0063] Finally, the local regularity threshold is preset to 1, and the temperature data in the temperature data sequence whose local regularity is less than the local regularity threshold is used as noise data. The temperature data in the temperature data sequence with large abnormal fluctuations collected by the temperature sensor due to the bumps of the car is eliminated, thereby effectively eliminating irregular data caused by external interference.
[0064] In order to further improve the quality of temperature data, after removing noise data from the temperature data sequence, linear interpolation is performed to complete the temperature data sequence. Linear interpolation fills the missing temperature data due to denoising, which not only restores the continuity of the temperature data sequence, but also maintains the natural transition between data and avoids information loss. Median filtering is then performed for secondary denoising to eliminate changes in temperature data collected by the sensor due to the vibration of the truck itself, making the data sequence smoother and closer to the actual temperature change trend.
[0065] S213: Send the denoised temperature data sequence to the prediction optimization unit S22.
[0066] The prediction optimization unit S22 performs the following operations:
[0067] S221: Evaluate the volatility of temperature data in the denoised temperature data sequence;
[0068] Select the temperature data sequence Temperature data, is a preset value, which is set to , that is, take the first 10 temperature data, and evaluate the volatility of the temperature data sequence according to the maximum and minimum values of the first 10 temperature data. The volatility of the temperature data sequence satisfies the following relationship:
[0069]
[0070] In the formula, , Respectively before The maximum and minimum values of the temperature data, is the volatility of the temperature data series, It is a natural exponential function. The larger the difference between the maximum and minimum values, the greater the volatility of the temperature data. It is a normalization operation.
[0071] S222: The temperature data for predicting the next moment is calculated based on the volatility. Adjust the parameters of the algorithm.
[0072] for The algorithm predicts the temperature data as follows:
[0073] Preset adjustment parameters , , , Error Factor , the influencing factors of the prediction error range =0.5;
[0074] Take time T1 as the current time, obtain the temperature data sequence collected at the current time, and determine whether the temperature data sequence is monotonically increasing. If it is monotonically increasing, the historical trend of the temperature data sequence is growth. , , ; If it decreases monotonically, the historical trend is attenuation type, , , ; Otherwise it is irregular; , , , here we take the growth type as an example to explain the subsequent calculation;
[0075] The mean of the temperature data series is taken as Prediction value at time , the maximum and minimum values in the temperature data sequence are taken as The maximum predicted value at time and the minimum predicted value , then and constitute The forecast range of the moment;
[0076] for The next moment of the moment ( time):
[0077] Calculate first The prediction error at time ,in, for The actual value at the time, The initial forecast value at time ;
[0078] according to The initial forecast value at time The forecast range of time, Factors affecting the forecast error range at the moment ,renew Prediction range at time:
[0079] ;
[0080] ;
[0081] To ensure The predicted value at the moment can cover The actual value of the moment ,when Less than ,make equal ,when Greater than ,make equal ;
[0082] according to The prediction range at the moment, calculation The final predicted value at time , the calculation formula is:
[0083]
[0084] for The final predicted value of the next moment after the moment, get the cutoff A temperature data sequence at time The same process as the moment value is performed to obtain The final predicted value at the moment, and so on, to achieve the prediction of temperature data.
[0085] Furthermore, the temperature data The parameters of the algorithm are adjusted, mainly The algorithm's prediction error range influencing factors are dynamically adjusted:
[0086]
[0087] In the formula, For the The influencing factors of the algorithm's preset initial prediction error range, is the influencing factor of the adjusted prediction error range. If the volatility of the temperature data sequence collected at the current moment is greater, a larger influencing factor of the prediction error range is obtained, and the value of the temperature data at the next moment is adaptively predicted and adjusted.
[0088] The warning unit S23 executes the adjustment parameters. The algorithm predicts the temperature data at the next moment after the current moment, and determines whether the predicted temperature data at the next moment exceeds the preset temperature range. If it exceeds the preset temperature range, a temperature warning is issued; otherwise, no temperature warning is issued.
[0089] By adjusting The parameters of the algorithm, especially the factors that influence the prediction error range by dynamically adjusting , aims to adaptively optimize the prediction performance according to the volatility of the actual temperature data series. The specific significance is:
[0090] Improve prediction accuracy: When temperature data fluctuates greatly, the influence factor of increasing the prediction error range is , the algorithm can give higher weight to current data, making the prediction model pay more attention to recent drastic changes, so that it can still provide more accurate prediction results when the volatility increases. On the contrary, when the data is relatively stable, the smaller The value helps the model maintain the stability of long-term trends and avoid overreacting to short-term fluctuations.
[0091] Enhance model adaptability: Dynamic adjustment mechanism makes The algorithm can flexibly respond to the temperature change characteristics in different scenarios. Whether it is a large fluctuation (such as car bumps) or daily small fluctuations, it can optimize the prediction effect by adaptively adjusting the prediction strategy, thereby improving the applicability and robustness of the model under various conditions.
[0092] Accurate strategic guidance: Dynamically adjusted forecasting methods can guide decisions more accurately, such as adjusting the working intensity of refrigeration / heating equipment in advance when large temperature fluctuations are expected, avoiding energy waste or product quality problems caused by insufficient forecasting.
[0093] Improve real-time performance and response speed: The adaptive adjustment mechanism enables the model to quickly respond to immediate changes in the data. Especially in real-time monitoring systems that require rapid decision-making, this flexibility can significantly shorten the cycle from data collection to action execution and improve the response speed and efficiency of the entire system.
[0094] After the above operations, the prediction optimization unit S22 obtains the prediction result at the next moment (the final prediction value of the temperature data at the next moment), and feeds the prediction result back to the early warning unit S23.
[0095] After receiving the prediction result, the warning unit S23 determines whether the predicted temperature data at the next moment exceeds the preset temperature range based on the size of the prediction result (the predicted value of the temperature data at the next moment). If it exceeds the preset temperature range, a temperature warning is issued, otherwise, no temperature warning is issued. The preset temperature range needs to be specifically set according to different products. For example, vegetable products need to be in the temperature range of 2 to 8 degrees Celsius. Meat, fish, frozen foods and other foods can be stored for a longer time and are suitable for the freezing temperature zone of -18 to -21 degrees Celsius. The freezing speed is fast and the freezing is longer lasting. Foods suitable for this temperature include: ice cream, frozen fruit, concentrated juice, frozen fish, frozen beef, frozen lamb, frozen pork, frozen chicken, and frozen ham. Targeted adjustments can be made according to the products being transported.
[0096] In the description of this specification, "plurality" or "several" means at least two, such as two, three or more, etc., unless otherwise clearly and specifically defined.
[0097] Although this specification has shown and described a number of embodiments of the present invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will conceive of many modifications, changes and alternatives without departing from the ideas and spirit of the present invention. It should be understood that in the practice of the present invention, various alternatives to the embodiments of the present invention described herein may be employed.
Claims
1. The intelligent early warning system for logistics based on the Internet of Things is characterized by: include: A temperature data collection module, used to collect temperature data through a temperature sensor installed in the logistics cargo warehouse and store the temperature data in the cloud; The temperature data prediction module is used to read the temperature data in the cloud and predict the future temperature data, including: A preprocessing unit, used for acquiring a temperature data sequence up to the current moment, performing a denoising operation on the temperature data sequence, and sending the denoised temperature data sequence to the prediction optimization unit; The denoising operation includes: taking any temperature data in the temperature data sequence as target temperature data, setting a local range of the target temperature data; taking the sum of the consistency of the change amplitude and the consistency of the change frequency of the temperature data in the local range as the local regularity of the target temperature data; presetting a local regularity threshold, taking the temperature data in the temperature data sequence whose local regularity is less than the local regularity threshold as noise data, and removing all noise data in the temperature data sequence; The consistency of the change amplitude and the consistency of the change frequency include: using the first-order derivative method to identify all extreme points in the local range of the target temperature data, taking the difference between the acquisition times of every two adjacent extreme points as a time difference, obtaining the time difference sequence corresponding to all extreme points, taking the numerical difference between every two adjacent extreme points as a temperature difference, obtaining the temperature difference sequence corresponding to all extreme points; using polynomial fitting to obtain the fitting curve of the time difference sequence and the fitting curve of the temperature difference sequence respectively, and the consistency of the change amplitude is , is the natural exponential function, is the mean of the fitting loss of all temperature differences in the temperature difference sequence, and the consistency of the change frequency is , is the mean of the fitting losses of all time differences in the time difference series; The prediction optimization unit is used to evaluate the volatility of the temperature data in the denoised temperature data sequence, including: selecting the previous Temperature data, is a preset value; the volatility of the temperature data series ,in, , Respectively The maximum and minimum values of the temperature data; The temperature data for predicting the next moment is calculated based on the volatility. The parameters of the algorithm are adjusted: ,in, For the The influencing factors of the algorithm's preset initial prediction error range, is the influencing factor of the adjusted prediction error range; the parameter is the influencing factor of the prediction error range of the temperature data at the next moment, and the adjusted parameter is used The algorithm predicts the temperature data at the next moment and feeds the prediction results back to the early warning unit; The early warning unit is used to determine whether the temperature data predicted at the next moment exceeds a preset temperature range according to the prediction result. If so, a temperature early warning is issued; otherwise, no temperature early warning is issued.
2. According to the IoT-based logistics intelligent early warning system of claim 1, it is characterized in that: The preprocessing unit performs a denoising operation on the temperature data sequence, further comprising: after removing noise data from the temperature data sequence, performing linear interpolation to complete the temperature data sequence, and then performing median filtering to perform secondary denoising.
3. The intelligent early warning system for logistics based on the Internet of Things according to claim 1 is characterized in that: The local range of the target temperature data includes: The target temperature data and N temperature data on its left and right sides are used as the local range of the target temperature data; If the number of temperature data on the left side and / or the right side is less than N, the value of N takes the minimum number on the left side or the right side, and N is a preset number.
Citation Information
Cited By
Logistics intelligent early warning system based on Internet of Things
CN120317781A
