Early warning algorithm for logistics process

Through historical data analysis of the logistics process and Internet of Things technology, clustering and association rule mining technology are used to build an early warning model, which solves the shortcomings of real-time risk monitoring in the logistics process in the existing technology and achieves more accurate and efficient risk early warning.

CN118863705APending Publication Date: 2024-10-29NANTONG YUNYIXIN SOFTWARE TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411028664.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing logistics process early warning algorithms rely on manual experience and historical data, are difficult to accurately reflect real-time risk status, are computationally intensive and inefficient, and lack in-depth exploration of the relationship between risk factors, making it difficult to meet the needs of real-time early warning.

Method used

Through the collection and analysis of historical data on the logistics process, clustering algorithms and association rule mining technology are used to identify risk factors, build early warning models, and monitor data in real time through the Internet of Things to adjust early warning strategies.

Benefits of technology

It realizes the global correlation analysis of logistics risk factors, improves the accuracy and reliability of early warning algorithms, can identify and respond to complex risk situations in a timely manner, and reduces the probability of risk events.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118863705A_ABST
    Figure CN118863705A_ABST
Patent Text Reader

Abstract

The invention discloses an early warning algorithm for a logistics process, and the algorithm comprises the following steps: collecting historical data in the logistics process, and recognizing risk events existing in the logistics process; historical data related to the risk events are collected and processed to obtain risk factors, and a clustering result of the risk factors is obtained through analysis of a clustering algorithm; mining association rules on the basis of the clustering result, and obtaining the relevance among the risk factors through an association rule mining algorithm; s3, evaluating the severity and probability of the risk factors through the relevance obtained in S3, and setting a threshold value to construct an early warning model; logistics data are monitored in real time through the Internet of Things technology, the logistics data are transmitted to the early warning model, and a manager adjusts logistics or sets an emergency plan according to the early warning model; through deep insight, the enterprise can predict and deal with complex risk conditions, the management strategy is adjusted in time, and the occurrence probability of risk events is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a field related to logistics algorithms, and in particular to an early warning algorithm for a logistics process. Background Art

[0002] The background technology and importance of the logistics process early warning algorithm stem from the urgent need for risk management in the logistics industry. With the rapid development of globalization and e-commerce, the logistics process is becoming increasingly complex, involving multiple links and factors. Any mistake in any link may lead to the collapse of the entire logistics chain. Therefore, it is of great practical significance to develop an efficient and accurate early warning algorithm to monitor and predict risks in the logistics process in real time. The existing technology has certain defects in the early warning of the logistics process. First, traditional methods often rely on manual experience and historical data for risk assessment, and lack the effective use of real-time data. This makes it difficult for the early warning system to accurately reflect the risk status of the current logistics process, and it is even more difficult to accurately predict the risks that may arise in the future. Secondly, the existing early warning algorithms often have problems of large computational complexity and low efficiency when processing large-scale, multi-dimensional logistics data. Because the logistics process involves multiple links and factors, the amount of data is huge and complex, and traditional algorithms often seem to be unable to cope with these data and are difficult to meet the needs of real-time early warning. In addition, the existing technology also lacks in-depth exploration of the relationship between risk factors. In the logistics process, various risk factors often do not exist in isolation, and there are complex relationships and correlations between them. If these relationships can be deeply explored, it will help improve the accuracy and reliability of early warning algorithms.

[0003] Therefore, an early warning algorithm for logistics process is proposed. Summary of the invention

[0004] The present invention overcomes the deficiencies of the prior art and provides an early warning algorithm for a logistics process.

[0005] To achieve the above object, the technical solution adopted by the present invention is: an early warning algorithm for logistics process, comprising the following steps:

[0006] S1: Collect historical data in the logistics process and identify risk events in the logistics process;

[0007] S2: Collect and process historical data related to risk events to obtain risk factors, and analyze them through clustering algorithms to obtain clustering results of risk factors;

[0008] S3: Based on the clustering results, association rules are mined, and the correlation between risk factors is obtained through association rule mining algorithm;

[0009] S4: Based on the correlation obtained in S3, the severity and probability of risk factors are evaluated and thresholds are set to build an early warning model;

[0010] S5: Use IoT technology to monitor logistics data in real time and transmit the logistics data to the early warning model. Managers can adjust logistics or set up emergency plans based on the early warning model.

[0011] In a preferred embodiment of the present invention, the risk events in S1 include delayed delivery, order cancellation, high return rate and other situations that will not cause abnormal impact on logistics.

[0012] In a preferred embodiment of the present invention, the cluster analysis algorithm in S2 adopts one of K-means and hierarchical clustering, and natural groupings in the data are identified through cluster analysis, thereby revealing the similarities and differences between risk factors.

[0013] In a preferred embodiment of the present invention, the cluster analysis in S2 is specifically as follows: Among them, C j is the jth cluster, μ j is the centroid of the jth cluster (i.e., the mean of all points in the cluster). In cluster analysis, each cluster (or cluster) represents a risk category or a group of risk factors with similar characteristics. By deeply analyzing the data points in each cluster, the common characteristics and associations between these risk factors can be understood.

[0014] In a preferred embodiment of the present invention, in S3, association rule mining is mainly performed by establishing an FP-Growth algorithm to discover the correlation between items in a data set, thereby revealing potential patterns, identifying the correlation between risk factors, understanding which risk factors tend to occur at the same time, and the triggering relationship between them.

[0015] In a preferred embodiment of the present invention, the FP-Growth algorithm is established by constructing a frequent pattern tree (FP-tree) and mining frequent item sets and association rules from the tree.

[0016] In a preferred embodiment of the present invention, frequent item sets are screened by comparing the support of each item set with a minimum support threshold, thereby determining the frequency of the item set.

[0017] In a preferred embodiment of the present invention, in S4, the risk assessment is to quantitatively assess the risk factors to obtain the probability and severity of each risk factor.

[0018] The present invention solves the defects existing in the background technology and has the following beneficial effects:

[0019] (1) The present invention provides an early warning algorithm for the logistics process. By performing a global correlation analysis on the risk factors in the entire data set, the frequent item sets in each group of clusters are found, thereby discovering the risk factors that frequently appear in different clusters, thereby revealing their important role in the entire risk system. This global perspective helps to more comprehensively understand the correlation between risk factors and provide more effective support for risk management.

[0020] (2) The present invention provides an early warning algorithm for the logistics process, which plays an important role in logistics risk management through data analysis based on cluster analysis and association rule mining. Through cluster analysis, enterprises can classify similar risk factors into one category, so as to more clearly identify the common characteristics and differences of various risks. This classification not only helps enterprises to fully understand the diversity of risk factors, but also provides strong support for the formulation of targeted risk management strategies. At the same time, association rule mining further reveals the potential connections between risk factors. By analyzing historical data, the mining algorithm can discover frequent item sets and association rules between risk factors, revealing which risk factors tend to appear at the same time, and the triggering relationship between them. This in-depth insight enables enterprises to predict and respond to complex risk situations, adjust management strategies in a timely manner, and reduce the probability of risk events. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.

[0022] Figure 1 It is a three-dimensional structural diagram of a preferred embodiment of the present invention. DETAILED DESCRIPTION

[0023] 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 only 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0024] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.

[0025] In the description of the present application, it should be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the scope of protection of the present application. In addition, the terms "first", "second", etc. are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, features defined as "first", "second", etc. may explicitly or implicitly include one or more of the features. In the description of the invention, unless otherwise specified, "multiple" means two or more.

[0026] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, and it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood by specific circumstances.

[0027] As shown in the figure, an early warning algorithm for a logistics process includes the following steps:

[0028] S1: Collect historical data in the logistics process and identify risk events in the logistics process;

[0029] S2: Collect and process historical data related to risk events to obtain risk factors, and analyze them through clustering algorithms to obtain clustering results of risk factors;

[0030] S3: Based on the clustering results, association rules are mined, and the correlation between risk factors is obtained through association rule mining algorithm;

[0031] S4: Based on the correlation obtained in S3, the severity and probability of risk factors are evaluated and thresholds are set to build an early warning model;

[0032] S5: Use IoT technology to monitor logistics data in real time and transmit the logistics data to the early warning model. Managers can adjust logistics or set up emergency plans based on the early warning model.

[0033] It should be noted that this application collects historical data to identify risk events in the entire logistics process.

[0034] Secondly, by collecting, cleaning and processing the relevant historical data of risk events, we can obtain one or several risk factors that lead to the occurrence of each risk event. Through cluster analysis of risk factors, each cluster represents a group of risk factors with similar characteristics, which makes it easier to obtain the similarities and differences between risk factors.

[0035] Then, the global correlation of risk factors in the entire data set is analyzed again through the association rule mining algorithm to find the frequent item sets in each group of clusters, so as to explore the potential correlation between risk factors.

[0036] Then, the risk factor is evaluated based on the probability of occurrence of the risk factor and the severity of the risk event that the risk factor can cause. Then, the warning threshold is set according to the evaluation, and a warning model is constructed based on cluster analysis, association rule mining and risk assessment.

[0037] Finally, managers only need to monitor material data in real time through the Internet of Things technology, and the logistics data is directly transmitted to the early warning model. When the output of the early warning model reaches the early warning threshold, an early warning signal is issued. Managers find the corresponding risk factors based on the triggered early warning threshold, thereby finding risk events, and make plans or adjustments to materials based on this.

[0038] Collect historical data in the logistics process and identify risk events in the logistics process;

[0039] It should be noted that historical data comes from multiple channels and sources, including but not limited to order information, transportation records, inventory data, customer feedback, etc. These data record all aspects and details of the logistics process and are an important basis for identifying risk events. Detailed collection of historical data is carried out. This includes extracting relevant data from the database, organizing information from paper documents, and obtaining data from other relevant departments or partners. After the historical data is collected, it is analyzed. Abnormal order situation: Analyze the order data to find out whether there are abnormal orders, such as delayed delivery, order cancellation, high return rate, etc. These situations imply problems in the supply chain, such as transportation delays, insufficient inventory or product quality problems. Transportation accident records: Check the transportation records to find out whether there have been accidents such as damage, loss or transportation delays of goods. These accidents are related to factors such as weather conditions, road conditions, and driver skills during transportation. Inventory fluctuations: Analyze inventory data and observe changes in inventory levels. Abnormal inventory fluctuations mean problems such as inaccurate demand forecasts, unreasonable procurement plans or improper sales strategies in the supply chain. Customer feedback: Collect customer feedback data to understand customers' evaluation and opinions on logistics services. Customer dissatisfaction and complaints reveal service quality problems in the logistics process, such as inaccurate delivery, poor service attitude and other events that pose risks to logistics.

[0040] Collect and process historical data related to risk events to obtain risk factors, and analyze them through clustering algorithms to obtain clustering results of risk factors;

[0041] It should be noted that, by collecting relevant historical data of risk events again, and cleaning and processing them, one or several risk factors that lead to the occurrence of each risk event are obtained. Through cluster analysis of risk factors, each group of clusters represents a group of risk factors with similar characteristics, so as to more conveniently obtain the similarities and differences between risk factors. Among them, risk events are composed of invalid factors and risk factors, and risk events are mainly caused by risk factors. The historical data collected related to risk events are mainly data related to the risk event, which includes invalid factors and risk factors, that is, a series of detailed data such as the place of shipment, the place of receipt, the transportation route, the transportation time, the transportation vehicle, the transportation personnel, the weather, etc., and the cleaning of this historical data is to remove some factors that are definitely invalid factors, that is, factors that will not interfere with logistics, and the processing is to process the remaining factors, including data standardization, that is, converting the data into a unified format and unit for later analysis. The purpose of cluster analysis is to discover the inherent structure and grouping in the data and divide these data into several clusters composed of similar data points.

[0042] Data preparation: First, historical data related to risk events need to be collected. These data include various indicators, namely the frequency of risk events, the size of losses, influencing factors, etc. The preprocessed data is input into the clustering algorithm of hierarchical clustering for clustering analysis, specifically:

[0043] Among them, C j is the jth cluster, μ j is the centroid of the jth cluster (i.e., the mean of all points in the cluster).

[0044] In cluster analysis, each cluster (or cluster) represents a risk category or a group of risk factors with similar characteristics. By deeply analyzing the data points in each cluster, the common characteristics and associations between these risk factors can be understood. A descriptive or explanatory label is assigned to each cluster to facilitate subsequent risk identification and management. In this way, through cluster analysis, the grouping or clustering results of risk factors can be obtained. These results help to: Identify risk patterns: discover hidden relationships and patterns between risk factors, and provide new perspectives and insights for risk management. Optimize risk management strategies: adjust or optimize existing risk management strategies and measures based on the clustering results of risk factors. Improve risk prediction capabilities: improve the ability to predict and respond to future risk events through group analysis of similar risk factors.

[0045] S3: Based on the clustering results, association rules are mined, and the correlation between risk factors is obtained through association rule mining algorithm;

[0046] It should be noted that the main purpose of association rule mining is to discover the correlation between items in the data set, thereby revealing potential patterns. In the context of risk management, this means identifying the correlation between risk factors, understanding which risk factors tend to appear at the same time, and the triggering relationship between them, mainly through the core of the FP-Growth algorithm, which is to build a frequent pattern tree (FP-tree) and mine frequent item sets and association rules from the tree. The specific operations are:

[0047] Itemset support calculation:

[0048] An item set usually refers to a combination of risk factors, while a transaction is an actual event or record containing these risk factors, i.e., a risk event. Let the transaction set be T = {t 1 , t 2 , t 3 ,……t n}, where each transaction t i Contains some item sets, namely t i =x 1 ,x 2 ,x 3 ……xn For item set x j , its support supp(x j ) is included in all transaction sets x j The number of times, that is:

[0049]

[0050] Among them, Indicator(x j ∈t i ) is an indicator function, when x j In transaction i Returns 1 if it appears in , otherwise returns 0. By applying this indicator function to all transactions and adding the results, we can get the item set x j The purpose of calculating the item set support is to determine the frequency of each item set (i.e., risk factor combination) in the transaction set. Specifically, for the item set x j , its support supp(x j ) refers to all transactions that contain x j This can be achieved by traversing the entire transaction set and counting the number of transactions that contain a specific itemset.

[0051] Frequent itemset filtering:

[0052] Let the minimum support threshold be sup min , then the frequent itemset F can be defined as:

[0053] F = x j / supp(x j )≥sup min

[0054] In this expression, x j represents a specific item set (i.e., risk factor combination), and supp(x j ) is the support of the item set. By comparing the support of each item set with the minimum support threshold, the frequency of the item set is determined. The purpose of frequent item set screening is to reduce the computational complexity of subsequent association rule mining and focus on those risk factor combinations that are truly important in actual data. By identifying frequent item sets, we can better understand the co-occurrence patterns between risk factors and provide a basis for further risk analysis and management.

[0055] FP-tree construction:

[0056] The nodes of FP-tree contain items, support counts of items, and pointers to child nodes. When constructing FP-tree, first sort the frequent itemsets in descending order of support, then traverse the transaction set and insert the items in the transaction into FP-tree one by one. That is, before constructing FP-tree, first calculate the support of each itemset by scanning the entire transaction set. According to the calculated support, the frequent itemsets are sorted in descending order according to the size of the support. The purpose of this step is to ensure that more frequent itemsets can be processed first when constructing FP-tree later, thereby improving the efficiency of the algorithm. The root node of FP-tree is usually a special node that does not contain specific items or itemsets, but serves as the starting point of the entire tree. The root node is also used to store some global information, such as the total number of nodes in the tree or the total support of frequent itemsets. Next, the algorithm starts to traverse each transaction in the transaction set. For each transaction, according to the itemsets it contains (which have been sorted in descending order of support), these items are inserted into FP-tree one by one. When inserting an item, the algorithm first checks whether there is a node in FP-tree that is the same as the current item. If it exists, then the support count of the node is increased by 1 and the pointer to the node (if any) is updated. If it does not exist, a new node is created with the current item as the item of the node and the support count is initialized to 1. Then, the node is linked to its parent node and other related pointers are updated as needed. If there are any remaining uninserted items in the transaction, the insertion process is recursively called with the currently inserted node as the new parent node to continue inserting the remaining items

[0057] Frequent Itemset Mining

[0058] Mining frequent itemsets from FP-tree uses a recursive approach. Starting from the root node, all frequent itemsets can be found by traversing the path of FP-tree. During the mining process, the support count of the nodes in FP-tree can be used to efficiently calculate the support of the itemset.

[0059] Association rule generation

[0060] Association rules are usually expressed in the form of (X→Y), where (X) and (Y) are item sets, and (x∩y=is not 0). The support and confidence of association rules can be expressed by the following mathematical expressions:

[0061] Support: The ratio of transactions that contain both (X) and (Y) to the total number of transactions:

[0062]

[0063] Confidence: The proportion of transactions that contain (X) that also contain (Y).

[0064]

[0065] By setting support and confidence thresholds, meaningful association rules can be screened out.

[0066] It should be noted that frequent item set mining is a recursive process in FP-tree. Starting from the root node, the algorithm traverses all paths of the FP-tree. Each path represents an item set, and the frequency of these item sets in the transaction database can be directly derived from the support count of the nodes in the FP-tree. Therefore, the mining process can efficiently identify those item sets whose support exceeds the preset threshold (i.e., frequent). Specifically, the algorithm checks each node in the FP-tree and traverses down the tree path while accumulating the support counts of the nodes on the path. When traversing to the leaf node, the algorithm checks whether the sum of the support of all nodes on the current path meets the conditions of the frequent item set (i.e., whether the support is greater than or equal to the minimum support threshold). If so, the item set on the current path is a frequent item set. Association rule generation: An association rule is a rule in the form of "if X, then Y" that is used to describe the association relationship between item sets. In association rules, X and Y are two disjoint item sets (i.e., X and Y have no common items), and the support and confidence of the rules are important indicators for evaluating the effectiveness of the rules. Support: It indicates the proportion of transactions that contain both X and Y in the total transactions. Mathematically, support can be expressed as Support(X→Y)=supp(X∪Y) / |T|, where supp(X∪Y) indicates the number of transactions that contain both X and Y, and |T| indicates the total number of transactions. Support reflects the frequency of simultaneous occurrence of X and Y. Confidence: It indicates the proportion of transactions that contain X and also contain Y. Mathematically, confidence can be expressed as Confidence(X→Y)=supp(X∪Y) / supp(X), where supp(X) indicates the number of transactions that contain X. Confidence reflects the possibility of Y appearing when X appears.

[0067] By setting the support and confidence thresholds, we can filter out those association rules that are both meaningful and strongly relevant. Specifically, only when the support and confidence of the rule are higher than the set threshold, the rule is considered valid. Such rules can help logistics managers discover the potential associations and dependencies between item sets, thus providing support for decision-making.

[0068] S4: Based on the correlation obtained in S3, the severity and probability of risk factors are evaluated and thresholds are set to build an early warning model;

[0069]

[0070] Among them, Y is the risk event (this formula is a binary classification problem, such as occurrence or non-occurrence, Y = 1 may indicate that the risk event has occurred, while Y = 0 indicates that the risk event has not occurred.), X is a feature vector, which contains various risk factors related to the risk event. W is a weight vector, and its dimension is the same as X. Each element represents the degree of influence of the corresponding risk factor on the probability of the risk event. b is a bias term, which can be regarded as a parameter that adjusts the prediction tendency of the model. The goal of model training is to find the optimal W and b so that the model can best fit the historical data.

[0071] S5: Use IoT technology to monitor logistics data in real time and transmit the logistics data to the early warning model. Managers can adjust logistics or set up emergency plans based on the early warning model.

[0072] Managers only need to monitor material data in real time through the Internet of Things technology, and the logistics data is directly transmitted to the early warning model. When the output of the early warning model reaches the early warning threshold, an early warning signal is issued. Managers find the corresponding risk factors based on the triggered early warning threshold, thereby finding risk events, and make plans or adjustments to materials based on this.

[0073] The above is based on the ideal embodiment of the present invention. Through the above description, relevant personnel can make various changes and modifications without departing from the technical concept of the present invention. The technical scope of the present invention is not limited to the content in the specification, and the technical scope must be determined according to the scope of the claims.

Claims

1. An early warning algorithm for logistics process, characterized in that: The following steps are involved: S1: Collect historical data in the logistics process and identify risk events in the logistics process; S2: Collect and process historical data related to risk events to obtain risk factors, and analyze them through clustering algorithms to obtain clustering results of risk factors; S3: Mining association rules based on clustering results, and obtaining the correlation between risk factors through association rule mining algorithms; S4: Based on the correlation obtained in S3, the severity and probability of risk factors are evaluated and thresholds are set to build an early warning model; S5: Use IoT technology to monitor logistics data in real time and transmit the logistics data to the early warning model. Managers can adjust logistics or set up emergency plans based on the early warning model.

2. The early warning algorithm for logistics process according to claim 1 is characterized by: In S1, risk events include delayed delivery, order cancellation, high return rate and other situations that will not cause abnormal impact on logistics.

3. The early warning algorithm for logistics process according to claim 1 is characterized by: In S2, the cluster analysis algorithm adopts one of K-means and hierarchical clustering, and identifies natural groupings in the data through cluster analysis, thereby revealing the similarities and differences between risk factors.

4. The early warning algorithm for logistics process according to claim 1 is characterized by: The cluster analysis in S2 is specifically as follows: Among them, C j is the jth cluster, μ j It is the centroid of the jth cluster, that is, the mean of all points in the cluster. In cluster analysis, each cluster represents a risk category or a group of risk factors with similar characteristics. By deeply analyzing the data points in each cluster, we can understand the common characteristics and associations between these risk factors.

5. The early warning algorithm for logistics process according to claim 1 is characterized by: In S3, association rule mining mainly discovers the correlation between items in the data set by establishing the FP-Growth algorithm, thereby revealing potential patterns, identifying the correlation between risk factors, and understanding the situations in which risk factors occur simultaneously and the triggering relationships between them.

6. The early warning algorithm for logistics process according to claim 5 is characterized by: The FP-Growth algorithm is established by constructing a frequent pattern tree FP-tree and mining frequent item sets and association rules from the tree.

7. The early warning algorithm for logistics process according to claim 6 is characterized by: The frequent item set screening is to determine the frequency of the item set by comparing the support of each item set with the minimum support threshold.

8. The early warning algorithm for logistics process according to claim 6 is characterized by: In S4, the risk assessment is to quantitatively assess the risk factors to obtain the probability and severity of each risk factor.