Container lifting sequence prediction method and system capable of realizing continuous learning, and storage medium
Through the breadth learning system model and sustainable learning algorithm, the roughness and model generalization problems of container storage time prediction are solved, fine prediction and efficient update are achieved, and the operating efficiency and resource allocation of the port terminal are improved.
Patent Information
- Application Number
- CN202411270027.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-11
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing container storage time prediction methods have problems such as rough prediction, model generalization performance challenges, long training time, and high cost, making it difficult to meet the needs of efficient management of port terminals.
The breadth learning system (BLS) model based on data analysis and machine learning is used to predict the container sequence, and the model is continuously optimized through the incremental learning algorithm of sustainable learning to improve the prediction accuracy and generalization effect.
It achieves a more precise prediction of container storage time, helps formulate scientific and reasonable storage plans, reduces reactive operations, improves operating efficiency, reduces costs, and adapts to rapid updates of business changes.
Smart Images

Figure CN118798442A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent management of port terminal yards, and in particular to a sustainable learning method, system and storage medium for predicting container pick-up sequences. Background Art
[0002] With the development of international trade activities, container transportation has become the mainstream mode of maritime transportation, and its efficiency and cost management are crucial to the operation of port infrastructure. The increase in port cargo throughput has made traditional loading and unloading operation plans and scheduling decisions that lack data-driven unable to meet current needs, resulting in low operating efficiency and increased costs. In this context, if the order of container pick-up can be predicted, that is, the container's stay time in the port yard can be predicted (the longer the stay time means the later the container is picked up), then managers can be more scientific and reasonable when planning loading and unloading operations and selecting container stacking locations. By knowing in advance which containers will be picked up first, managers can design more efficient stacking plans, reduce unnecessary container turning operations and vehicle movements, thereby effectively reducing operating costs and improving overall operating efficiency. This approach can not only optimize resource allocation, but also improve the service quality and competitiveness of ports.
[0003] The order of picking up containers is mainly determined based on the reservations made by container trucks (referred to as container trucks) before arriving at the port. However, even ports with reservation systems face some challenges and shortcomings. First, the process of picking up containers by appointment only starts after the cargo is unloaded from the cargo ship to the yard, which means that it is impossible to make a storage plan based on the predicted order of picking up containers when the cargo is unloaded. Secondly, the appointment for picking up containers is usually arranged according to time periods, but due to unpredictable changes in external factors such as traffic conditions and climatic conditions, the actual reference value of these appointment time periods may be affected. In addition, for some smaller container terminals, there may not even be a reservation mechanism, which further increases the difficulty of management and the uncertainty of operations.
[0004] At present, the main technical methods used to solve this problem are as follows: (1) By analyzing the historical operation data of containers, containers with different storage days are classified based on the classifier to determine the approximate container pick-up sequence. This method divides the storage days into different ranges, such as 0-5 days, 6-10 days, and more than 10 days, and converts the regression prediction problem of storage days into a classification problem, and classifies containers with different storage days into stacking.
[0005] (2) By analyzing the historical operation data of containers, the number of days of container storage is predicted based on regression prediction algorithms such as SVR and random forest, and the containers are stacked after being sorted according to the specific predicted days.
[0006] Disadvantages of the above methods (Lao Niuchao, Liu Xiufeng, Yang Jinli, et al. Research on port container turnover based on random forest to build container storage time prediction classifier [J]. Equipment Manufacturing Technology, 2022(002):000.): (1) The prediction based on the classifier algorithm is too rough and cannot determine the subdivided storage days of containers within the same storage days range, so the feasibility of implementation is low; (2) Although regression prediction algorithms such as SVR and random forest have good prediction performance in experimental data, as the business develops, the generalization performance of the model may face challenges. It is necessary to continuously collect data to train the model, and the training time is long and the cost is high. Summary of the invention
[0007] In order to address the limitations of existing container storage time prediction, the present invention develops a container pick-up sequence prediction method based on data analysis and machine learning technology, aiming to predict the container pick-up sequence in advance and continuously optimize the model through incremental learning, thereby improving the pick-up efficiency and reducing operating costs.
[0008] The purpose of the present invention is achieved by at least one of the following technical solutions.
[0009] The method for predicting container pickup sequence based on continuous learning includes the following steps: S1. Execute the container historical data collection operation, where the container historical data includes the historical storage time of each container and attribute parameter information associated with the container; S2. Perform a data cleaning process on the collected historical container data, aiming to purify the data set and obtain cleaned model input data; S3. Send the cleaned model input data into the training algorithm to perform board learning system (BLS) model training operation, and finally obtain a trained board learning system model; S4. When it is necessary to predict the storage time of a new container, first obtain the attribute parameter information of the container, and then input this information into the trained width learning system model. The width learning system model will process the input information and output the predicted storage time of the container. The container pick-up sequence is obtained according to the predicted storage time of the container. The longer the storage time is, the longer it will take to pick up the container. That is, the storage time is sorted from small to large to obtain the container pick-up sequence. S5. An incremental learning algorithm based on sustainable learning continuously updates the model based on new container historical data to continuously improve the performance of the model. After updating the model, it returns to step S4 and waits for the next storage time prediction for new containers.
[0010] Furthermore, the specific steps of step S1 are: S1.1. Collect historical container data of the terminal. The data collection scope includes information about the container yard, the container's own attributes, the attributes of the cargo in the container, the attributes of the container-related terminal operation order, the regulatory information attributes of the regulatory department, the container operation truck reservation information attributes, and the historical storage time of the container. The storage time is the prediction target, and the model predicts the storage time based on the remaining collected data; S1.2. Through statistical methods, the correlation between different features and container storage time is counted, and according to the set correlation threshold, the ones that meet the correlation requirements are screened out as the core features of the data set.
[0011] Furthermore, the specific implementation steps of step S2 are: S2.1. Clean the illogical data in the data set; S2.2. The non-numeric data in the data set are digitized using feature engineering, and the missing values in the data set are replaced by the mean of the data in other historical data that contains the same goods and in the same container; S2.3. Divide the data set into training set and test set according to the set ratio.
[0012] Furthermore, step S3 includes the following steps: S3.1. Train the Board Learning System (BLS) model based on the training set data obtained in step S2.3, record the training process and save the trained model file; the Broad Learning System (BLS) was first proposed by Dean of the Faculty of Science and Technology of the University of Macau, Chen Junlong, and his students in an article published in IEEE TRANSACTIONS ON NEURAL NETWORKS AND LEARNING SYSTEMS, VOL. 29, NO. 1 in January 2018, titled "Broad Learning System: An Effective and Efficient Incremental Learning System Without the Need for Deep Architecture".
[0013] S3.2, using the test set data obtained in step S2.3 as the input data of the trained width learning system model, obtaining the container storage time predicted by the width learning system model, and grouping the container records according to the ship name and voyage (i.e., the same ship arrives at the port terminal), and sorting the actual storage time of the containers in the group from small to large; S3.3. According to the grouping in step S3.2, the actual storage time and the predicted storage time in the record are compared to evaluate the performance of the trained width learning system model, including evaluation using mean square error (MSE) and curve monotonicity to evaluate the model prediction effect. If the model prediction effect does not meet the requirements, the model features are improved and supplemented, and training data is added until the model prediction accuracy meets the requirements.
[0014] Further, in step S3.3, the actual storage time in the record is compared with the predicted storage time to evaluate the performance of the trained width learning system model, including using the mean square error MSE for evaluation and using the curve monotonicity to evaluate the model prediction effect; The method of evaluating the prediction effect of the model by using the monotonicity of the curve is to determine whether the prediction matches the actual relative sequence by judging the monotonicity of the curve, that is, judging the monotonicity of the predicted storage time curve on the basis of step S3.2, that is, judging whether the predicted container pick-up sequence is correct according to the monotonicity of the predicted storage time curve; The mean square error (MSE) is used to evaluate whether the predicted time is accurate, and the curve monotonicity is used to evaluate whether the predicted container pickup sequence is accurate.
[0015] Furthermore, in step S5, when the actual business changes, or the generalization effect of the original model cannot support the storage time prediction of the new container data, based on the trained width learning system model, the incremental learning characteristics of the width learning system model are used to perform incremental training to further improve the model performance.
[0016] Furthermore, in step S5, if the actual business changes, including changes in the main cargo categories or changes in the cooperating customers, resulting in the generalization effect of the original model being unable to support the storage time prediction of the new container data, then return to step S1 to reacquire the historical container data, execute steps S1 to S3, and obtain a retrained width learning system model.
[0017] Furthermore, in step S5, within a set period of time, if the actual business has not changed, but the width learning system model does not meet the prediction accuracy requirements, then based on the container data within this period of time, return to step S3 to retrain the width learning system model to obtain a retrained width learning system model.
[0018] A sustainable learning container pick-up sequence prediction system comprises a memory and a processor, wherein the memory stores a computer program, the processor is connected to the memory, and the processor is used to execute the computer program to implement the sustainable learning container pick-up sequence prediction method.
[0019] A storage medium stores a computer program, which is used to implement the sustainable learning container pick-up sequence prediction method when executed.
[0020] Compared with the existing invention, the beneficial effects of the present invention are: (1) The present invention makes full use of historical container data and mines features related to storage time from the data without requiring prior knowledge of container pickup sequence prediction.
[0021] (2) Compared with the classifier model, the regression prediction model used in the present invention can more accurately predict the estimated storage time of each container, helping planning and scheduling personnel to formulate a more reasonable yard storage plan, greatly reducing the reactive work of yard machinery, shortening the operation waiting time, and greatly improving the operation efficiency, thus achieving "cost reduction and efficiency improvement".
[0022] (3) Compared with other regression prediction models, the present invention adopts the BLS model, which can significantly reduce the training time and support incremental learning. For scenarios such as container terminals where business changes frequently, it is more convenient to obtain new models trained based on incremental data, thereby improving the performance and generalization effect of the model. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 is a flow chart of a method for predicting a container pick-up sequence involved in an embodiment of the present invention; Figure 2 A histogram of storage time based on box-type characteristics involved in an embodiment of the present invention; Figure 3 A schematic diagram of the fitting of the actual storage time curve and the predicted storage time curve involved in an embodiment of the present invention. DETAILED DESCRIPTION
[0024] In order to explain the technical content, structural features, achieved objectives and effects of the technical solution in detail, the following is a detailed description in conjunction with specific embodiments and accompanying drawings.
[0025] Example: In one embodiment, the container turnover rate of a Class II terminal in the Pearl River Delta has been maintained at a high level (more than 80%) for a long time. The loading and unloading plan can only be formulated based on empirical rules, and the situation of "plans cannot keep up with changes" often occurs. Therefore, a storage time prediction model is designed based on historical container data and the BLS model to solve the container pick-up sequence. Sustainable learning container pickup sequence prediction method, such as Figure 1 As shown, the following steps are included: S1. Execute the container historical data collection operation. The container historical data includes the historical storage time of each container and the attribute parameter information associated with the container. The specific implementation steps are as follows: S1.1. Collect historical container data of the terminal. The data collection scope includes information about the container yard, the container's own attributes, the attributes of the cargo in the container, the attributes of the container-related terminal operation order, the regulatory information attributes of the regulatory department, the container operation truck reservation information attributes, and the historical storage time of the container. The storage time is the prediction target, and the model predicts the storage time based on the remaining collected data; S1.2. Through statistical methods, the correlation between different features and container storage time is counted, and according to the set correlation threshold, the ones that meet the correlation requirements are screened out as the core features of the data set.
[0026] In one embodiment, a total of about 180,000 historical container raw data from 2023-06-01 to 2023-12-20 are selected from the terminal. In terms of feature selection, statistical methods are used to screen features that may be correlated with the storage time, such as Figure 2 As shown in the figure, the average storage time of different container types is statistically analyzed, and it is found that the average storage time of different container types has obvious differences, which can be considered as features. This embodiment selects container control company, container company, container type, cargo owner, cargo name, domestic and foreign trade, payer, operation type, transportation method, packaging, etc. as data set features through screening.
[0027] S2. Perform data cleaning on the collected historical container data to purify the data set and obtain cleaned model input data. The specific implementation steps are as follows: S2.1. Clean the illogical data in the data set, such as records with negative storage time; S2.2. The non-numeric data in the data set are digitized using feature engineering, and the missing values in the data set are replaced by the mean of the data in other historical data that contains the same goods and in the same container; In one embodiment, for some non-numerical features, such as the name of the goods, "calcium carbonate powder", "building emulsion", etc. are replaced with 0, 1, 2, ..., etc.; for some missing values, the mean of the storage time of the corresponding dimension is solved as a supplementary feature and merged into the original data set, such as the supplementary features of the container of "box status" are shown in Table 1.
[0028] Table 1 Supplementary characteristics of box status
[0029] S2.3. In one embodiment, the data set is divided into a training set and a test set in a ratio of 8:2. The training set is 136,948 records and the test set is 34,237 records.
[0030] S3. Send the cleaned model input data into the training algorithm to perform the board learning system (BLS) model training operation, and finally obtain a trained board learning system model, including the following steps: S3.1. Train the Board Learning System (BLS) model based on the training set data obtained in step S2.3, record the training process and save the trained model file; the Broad Learning System (BLS) was first proposed by Dean of the Faculty of Science and Technology of the University of Macau, Chen Junlong, and his students in an article published in IEEE TRANSACTIONS ON NEURAL NETWORKS AND LEARNING SYSTEMS, VOL. 29, NO. 1 in January 2018, titled "Broad Learning System: An Effective and Efficient Incremental Learning System Without the Need for Deep Architecture".
[0031] In one embodiment, the training process is as follows: (1) Assume that the characteristics that affect container storage time and the training set data of container storage time composition are ,in For the training set records as input for container storage time prediction, For the The actual storage time corresponding to the training set records, Represents the total number of records in the training set. Input data set , next, set For Group Map Node, The initial input matrix of the group enhancement node is A series of feature nodes are obtained through feature mapping, among which Group Feature Node as follows:
[0032] in, is the activation function, It is The weight vector of the group feature nodes; It is The bias vector of the group feature node; the input value go through The feature map is transformed into :
[0033] (2) For connecting to the enhanced node layer, The output of the group enhancement node is :
[0034] in, is the hyperbolic tangent function, It is The weight vector of the group enhancement node; It is The deviation term of the group enhancement node, then all the enhancement nodes are :
[0035] (3) All feature nodes and enhancement nodes are connected to the output of the width learning model, then the output of the width learning model is:
[0036] in, is the predicted value set of container storage time, is the output weight of the width learning model; output weight It is obtained by pseudo-inverse ridge regression approximation, that is:
[0037]
[0038] in, is the ridge parameter, is the identity matrix, Expressed as The pseudo-inverse.
[0039] S3.2. Use the test set data obtained in step S2.3 as the input data of the trained width learning system model to obtain the container storage time predicted by the width learning system model, and group the container records according to the ship name and voyage (i.e., the same ship arrives at the port terminal) (a total of 3386 groups, i.e., 3386 ships), and sort the actual storage time of the containers in the group from small to large, and plot them with the X-axis as the container index and the Y-axis as the storage time; S3.3. According to the grouping in step S3.2, the actual storage time and the predicted storage time in the record are compared to evaluate the performance of the trained width learning system model, including evaluation using mean square error (MSE) and curve monotonicity to evaluate the model prediction effect. If the model prediction effect does not meet the requirements, the model features are improved and supplemented, and training data is added until the model prediction accuracy meets the requirements.
[0040] In one embodiment, there are three containers (A, B, C), and the original storage days are 1 day, 2 days, and 3 days. The container pickup sequence is A, B, and C. If the predicted storage time of the three containers (A, B, and C) is 0.1 day, 0.2 day, and 0.3 day, respectively, from the perspective of MSE, the model may not be effective, but for the container pickup sequence, the sequence of A, B, and C has not changed. Therefore, in addition to MSE, monotonicity should be introduced to judge the performance of the model. If the predicted storage time of the three containers (A, B, and C) is 0.2, 0.1, and 0.3, respectively, then the predicted storage time curve is not monotonic.
[0041] In one embodiment, the average mean square error between the actual storage time and the predicted storage time of all ship groups is 2.08 days. The mean square error alone cannot meet the scenario of container pick-up sequence prediction. Therefore, the monotonicity of the judgment curve is introduced to determine whether the predicted and actual relative sequences match. That is, on the basis of step S3.2, the monotonicity of the predicted storage time curve is judged, that is, whether the predicted container pick-up sequence is correct is judged according to the monotonicity of the predicted storage time curve; The mean square error (MSE) is used to evaluate whether the predicted time is accurate, and the curve monotonicity is used to evaluate whether the predicted container pickup sequence is accurate.
[0042] like Figure 3 The total number of containers for the current ship name and voyage is shown There are 28 containers in total. How many times the slope is negative? The error rate of the current ship name and voyage is 5 times as indicated by the circle. for:
[0043] After statistics of all groups, the average error rate is 20.16%. Furthermore, an error in the prediction of the container pickup sequence does not necessarily mean that it will cause reactive work. This error rate can satisfy the planning and scheduling personnel to formulate loading and unloading plans more scientifically and effectively, verifying the effectiveness of the present invention in predicting the container pickup sequence and the rationality of the results.
[0044] S4. When it is necessary to predict the storage time of a new container, first obtain the attribute parameter information of the container, and then input the information into the trained width learning system model. The width learning system model will process the input information and output the predicted storage time of the container. S5, based on the incremental learning algorithm of sustainable learning, the model is continuously updated based on the new historical data of the container, the performance of the model is continuously improved, and after the model is updated, the model is returned to step S4 to wait for the next storage time prediction of the new container; When the actual business changes, or the generalization effect of the original model cannot support the storage time prediction of new container data, the incremental learning characteristics of the width learning system model based on the trained width learning system model are adopted to further improve the model performance through the incremental training mode.
[0045] In one embodiment, after steps S1 to S3, a width learning system model trained based on the time period from 2023-06-01 to 2023-12-20 is obtained. However, the data prediction effect of the width learning system model after 2024-02 is not good. Therefore, it is necessary to iteratively update the width learning system model through the incremental learning mode of the BLS model. The incremental learning mode with increasing input data is adopted, as follows: Assume that the newly added sample data is , In the embodiment Group Map Node, The initial input matrix of the group enhancement node, represents the output weights in the embodiment, then the input matrix corresponding to the added data It can be expressed as:
[0046] The input value go through The feature map is transformed into :
[0047] The parameters in the above formula are the weight parameters in the initial network, so the updated input matrix It is expressed as:
[0048] The pseudo-inverse of the updated input matrix is expressed as:
[0049] in
[0050]
[0051]
[0052] Therefore, the output weights of the width learning model can be solved The update formula is:
[0053] According to the updated output weights The new container storage time can be re-predicted. After incremental learning, the mean square error is optimized by nearly 5%.
[0054] The preferred embodiments of the present application disclosed above are only used to help understand the present invention and its core ideas. For those skilled in the art, according to the ideas of the present invention, there will be changes in specific application scenarios and implementation operations, and this specification should not be interpreted as limiting the present invention. The present invention is only limited by the claims and their full scope and equivalents.
Claims
1. A container pick-up sequence prediction method based on sustainable learning, characterized in that: The following steps are involved: S1. Execute the container historical data collection operation, where the container historical data includes the historical storage time of each container and attribute parameter information associated with the container; S2. Perform a data cleaning process on the collected historical container data to obtain cleaned model input data; S3, sending the cleaned model input data into the training algorithm to perform a width learning system model training operation, and finally obtaining a trained width learning system model; S4. When it is necessary to predict the storage time of a new container, first obtain the attribute parameter information of the container, and then input the information into the trained width learning system model. The width learning system model will process the input information and output the predicted storage time of the container. According to the predicted storage time of the container, the container pick-up sequence is obtained. S5. An incremental learning algorithm based on sustainable learning is used to continuously update the model based on new container historical data. After the model is updated, the model is returned to step S4 to wait for the next storage time prediction of a new container.
2. The method for predicting container pick-up sequence based on sustainable learning according to claim 1, characterized in that: Step S1 includes the following steps: S1.
1. Collect historical container data of the terminal. The data collection scope includes information about the container yard, the container's own attributes, the attributes of the cargo in the container, the attributes of the container-related terminal operation order, the regulatory information attributes of the regulatory department, the container operation truck reservation information attributes, and the historical storage time of the container. The storage time is the prediction target, and the model predicts the storage time based on the remaining collected data; S1.
2. Through statistical methods, the correlation between different features and container storage time is counted, and according to the set correlation threshold, the ones that meet the correlation requirements are screened out as the core features of the data set.
3. The method for predicting container pick-up sequence based on sustainable learning according to claim 1, characterized in that: Step S2 includes the following steps: S2.
1. Clean the illogical data in the data set; S2.
2. The non-numeric data in the data set are digitized using feature engineering, and the missing values in the data set are replaced by the mean of the data in other historical data that contains the same goods and in the same container; S2.
3. Divide the data set into training set and test set according to the set ratio.
4. The method for predicting container pick-up sequence based on sustainable learning according to claim 1, characterized in that: Step S3 includes the following steps: S3.1, training the width learning system model based on the training set data obtained in step S2.3, and recording the training process and saving the trained model file; S3.2, using the test set data obtained in step S2.3 as the input data of the trained width learning system model, obtaining the container storage time predicted by the width learning system model, grouping the container records according to the ship name and voyage, and sorting the actual storage time of the containers in the group from small to large; S3.
3. According to the grouping in step S3.2, the actual storage time and the predicted storage time in the record are compared to evaluate the performance of the trained width learning system model. If the model prediction effect does not meet the requirements, the model features are improved and supplemented, and the training data is increased until the model prediction accuracy meets the requirements.
5. The method for predicting container pick-up sequence based on sustainable learning according to claim 4, characterized in that: In step S3.3, the actual storage time in the record is compared with the predicted storage time to evaluate the performance of the trained width learning system model, including using the mean square error MSE for evaluation and using the curve monotonicity to evaluate the model prediction effect; The method of evaluating the prediction effect of the model by using the monotonicity of the curve is to determine whether the prediction matches the actual relative sequence by judging the monotonicity of the curve, that is, judging the monotonicity of the predicted storage time curve on the basis of step S3.2, that is, judging whether the predicted container pick-up sequence is correct according to the monotonicity of the predicted storage time curve; The mean square error (MSE) is used to evaluate whether the predicted time is accurate, and the curve monotonicity is used to evaluate whether the predicted container pickup sequence is accurate.
6. The method for predicting container pick-up sequence based on sustainable learning according to claim 1, characterized in that: In step S5, when the actual business changes, or the generalization effect of the original model cannot support the storage time prediction of the new container data, incremental training is performed based on the trained width learning system model using the incremental learning characteristics of the width learning system model.
7. The method for predicting container pick-up sequence based on sustainable learning according to claim 6, characterized in that: In step S5, if the actual business changes, including changes in the main cargo categories or changes in the cooperating customers, the generalization effect of the original model cannot support the storage time prediction of the new container data. At this time, return to step S1 to re-acquire the historical container data, execute steps S1 to S3, and obtain the retrained width learning system model.
8. The method for predicting container pick-up sequence by sustainable learning according to claim 6, characterized in that: In step S5, within a set period of time, if the actual business has not changed, but the width learning system model does not meet the prediction accuracy requirements, then based on the container data within this period of time, return to step S3 to retrain the width learning system model to obtain a retrained width learning system model.
9. A system for implementing the method for predicting container pick-up sequence by sustainable learning as claimed in any one of claims 1 to 8, characterized in that: The invention comprises a memory and a processor, wherein a computer program is stored in the memory, and the processor is connected to the memory, and the processor is used to execute the computer program. When the computer program is executed, it is used to implement the sustainable learning container pick-up sequence prediction method as described in any one of claims 1 to 8.
10. A storage medium for implementing the method for predicting container pick-up sequence by sustainable learning according to any one of claims 1 to 8, characterized in that: A computer program is stored, and when the computer program is executed, it is used to implement the sustainable learning container pick-up sequence prediction method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Container lifting sequence prediction method and system and storage medium
CN114548863A
Short-term power load prediction method based on width learning system
CN116845860A
Cited By
Container tracking data processing method based on machine learning
CN119151411A
