An intelligent algorithm for allocating container areas and slots for unloading containers based on machine learning

Through intelligent algorithms based on machine learning, association rules are extracted from historical data of container terminals, and allocation of container areas and locations is optimized. This solves the problem that traditional technology is difficult to effectively describe and solve the yard operation process, and achieves a more stable and efficient terminal. operations.

CN116402173BActive Publication Date: 2024-08-23DALIAN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211099026.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-06
Publication Date
2024-08-23
Estimated Expiration
2042-09-06

AI Technical Summary

Technical Problem

Traditional mathematical modeling and operations optimization technology are difficult to accurately describe and effectively solve the container terminal yard operation process, making it difficult to formulate yard plans, and scheduling decisions are easily interfered by subjective and objective factors, affecting the stability of decision-making quality.

Method used

An intelligent algorithm for unloading container area and box location allocation based on machine learning is adopted. Through unsupervised learning, random forest algorithm and data mining, the implicit relationship between the unloading container area allocation decision and container attributes, operation characteristics and yard status is extracted. Association rules and heuristic algorithms are designed to provide real-time scheduling support for port production operations.

Benefits of technology

Effectively utilize massive historical data to optimize container area and container location allocation decisions, alleviate traffic congestion in the yard, improve terminal production and operation efficiency, and promote the intelligent construction of container terminals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116402173B
    Figure CN116402173B
Patent Text Reader

Abstract

The present invention belongs to the field of container yard area and slot allocation, and proposes an intelligent algorithm for container area and slot allocation for unloading ships based on machine learning. The historical data of container terminal unloading operations and yard status are collected to calculate the yard status, and the typical yard status is extracted based on unsupervised learning algorithm and clustering algorithm; the factors affecting the selection of container unloading areas are analyzed, and the selection rules for unloading container storage areas based on machine learning are extracted, and the rule-based intelligent algorithm for unloading container area allocation and the heuristic intelligent algorithm for unloading container slot allocation are designed. The present invention takes into account the impact of container characteristics, operation characteristics and yard status characteristics on the container area allocation decision in the actual operation of the terminal. Based on massive historical operation data, machine learning is used to effectively extract high-quality scheduling experience, provide decision support for container terminal yard operation scheduling, and help alleviate yard traffic congestion, improve the production and operation efficiency of container terminals, and promote the intelligent construction of container terminals.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of container yard area and container space allocation, and in particular to an intelligent algorithm for container area and container space allocation for unloading containers based on machine learning. Background Art

[0002] As the throughput of container terminals continues to grow, the operating pressure of terminals is increasing. It is of great significance to formulate reasonable container area and container allocation strategies for container terminal yards to improve the utilization rate and turnover rate of yards and operating facilities, alleviate yard traffic congestion, and improve terminal production efficiency. "Jiang, XJ, Jin, JG, 2017. A branch-and-price method for integrated yard crane deployment and container allocation in transshipment yards. Transport. Res. Part B 98, 62-75.", "Wang K, Zhen L, Wang SA, et al, 2018. Column Generation for the Integrated Berth Allocation, Quay Crane Assignment, and Yard Assignment Problem. Transp. Sci. 52(4), 812-834." and "Yang, LY, Ng, TS, Lee, LH 2022. A robust approximation for yard template optimization under uncertainty. Transport. Res. Part B 160,21-53", all indicate that container yard operations are strongly coupled with ship arrival operations and landside container delivery and pickup operations, and are significantly affected by randomness and uncertainty factors. Traditional mathematical modeling and operations optimization techniques are difficult to accurately describe the yard operation process and effectively solve it, and it is difficult to formulate a yard plan of real scale in advance. In the actual operation process, dispatchers are often required to make on-site decisions based on the real-time status of the yard and the dispatching experience accumulated over time. This is easily disturbed by subjective and objective factors, and it is difficult to ensure the stability of decision quality. How to make full use of the massive historical data of container yard operations, deeply explore high-quality dispatching experience, and effectively apply it to making yard operation decisions has become an important issue facing the intelligent construction of container terminals. Summary of the invention

[0003] To solve the above problems, the present invention proposes an intelligent algorithm for container area and slot allocation for unloading containers based on machine learning. Considering the factors affecting the slot allocation in the actual operation process of the container terminal, the historical operation data of the unloading containers, the container attributes and the yard status are known, and the historical operation data of the unloading containers are deeply mined. The unsupervised learning concept, random forest algorithm, big data mining and statistical theory in machine learning are used to extract the implicit association rules between the unloading container area allocation decision and the container attribute characteristics, operation characteristics and yard status characteristics. According to the extracted rules, the heuristic algorithm for container area allocation and slot allocation is designed, and the corresponding indicators are selected to evaluate the effectiveness of the rule extraction and allocation algorithm, so as to provide decision support for the real-time scheduling of port production operations.

[0004] The technical solution of the present invention:

[0005] An intelligent algorithm for allocating container areas and slots for unloading containers based on machine learning, comprising the following steps:

[0006] Step 1: Collect historical data on container terminal unloading operations and yard status, including container terminal layout data, unloading operation data, and yard status data;

[0007] The layout data of container terminals include the number of berths, the layout of the yard and the number of container areas; the unloading operation data include the unloading time, unloading berth, container area and unloading container data; the unloading container data include the import and export type and the container owner; the yard status data include the stockpiled volume, operation number, number of cranes and the proportion of container stacking operations in each container area in the yard in each time period; the stockpiled volume of the container area includes the stockpiled volume of each berth and each stack in the container area; the number of operations in the container area includes the number of container stacking operations, container retrieval operations and container unloading operations; the number of cranes in the container area is the total number of cranes with operation records in the container area in each time period; the proportion of container stacking operations in the container area is the proportion of the number of container stacking operations in the container area to the total number of operations;

[0008] Step 2: Based on the unsupervised learning algorithm, the yard status is calculated according to the historical data, and the typical yard status is extracted using the clustering algorithm;

[0009] The yard status includes the status of the stockpiled quantity, the number of operations, the number of yard bridges, and the proportion of container operations; a certain state of the yard is represented by a vector consisting of the corresponding state values ​​of each container area, and the length of the vector is equal to the number of container areas in the yard;

[0010] The corresponding status of each container area is the relative size of each parameter in the yard status data of the current container area in its adjacent 8 container areas; the parameters are the stockpile volume / number of operations / number of yard bridges / ratio of container stacking operations;

[0011] The calculation method is: compare the yard status data of any container area with its adjacent container areas in turn. When the parameter value of the container area is greater than that of an adjacent container area, the corresponding status value of the container area is increased by 1; when the parameter value of the container area is less than that of an adjacent container area, the corresponding status value of the container area is reduced by 1; when the parameter value of the container area is equal to that of an adjacent container area, the corresponding status value remains unchanged; after comparing with all 8 adjacent container areas in pairs, the accumulated corresponding status value of the container area is obtained, and the value range is [-8,8]; and the larger the status value, the larger the parameters such as the stockpile volume / number of operations / number of yard bridges / ratio of stacking operations of the container area are in its adjacent container areas.

[0012] The state value vectors of the stockpiled volume, number of operations, number of yard bridges, and proportion of container operations in each container area in the yard are different in different time periods, while the state value vectors in adjacent time periods are similar. After calculating the yard state value vectors in different time periods, the unsupervised learning algorithm in machine learning is used to construct a K-means-based yard state value vector clustering model. The distance between the center point of each cluster with different cluster numbers and the sample is used to characterize the clustering accuracy. The more clusters there are, the higher the clustering accuracy and the lower the clustering efficiency. Considering the clustering efficiency and clustering accuracy comprehensively, the appropriate number of clusters is selected for clustering.

[0013] A K-means-based yard status value vector clustering model is constructed to cluster four types of yard status, namely, the stockpiled volume in each container area, the number of operations in each container area, the number of yard bridges in each container area, and the proportion of container stacking operations in each container area. In each type of yard status, the average value of the yard status value vector of each cluster is taken as the typical yard status of the cluster sample, and the typical yard status is extracted. The number of typical yard status is equal to the number of clusters.

[0014] Step 3: Analyze the factors affecting the selection of container unloading area;

[0015] By statistically analyzing the container area selection of different types of unloading containers in historical data, the factors affecting the selection of container unloading areas include container attribute characteristics, unloading characteristics and yard status characteristics; container attribute characteristics include container import and export types; unloading characteristics include unloading berth numbers; yard status characteristics include the type of stockpiled volume, number of operations, number of yard cranes and container stacking operation ratio of each container area;

[0016] Step 4: Extracting the selection rules of the unloading container storage area based on machine learning;

[0017] Using the yard status clustering method in step 2, we obtain typical yard status clusters such as the corresponding number of stockpiled inventory status, number of operations status, number of yard bridges status and container stacking operation ratio in each hour. On this basis, we mine the selection rules of the container storage area for unloading containers in the historical data.

[0018] Based on the supervised learning concept in machine learning, when the state value vectors of the stockpiled volume, number of operations, number of yard bridges, and proportion of container stacking operations in each container area in the yard belong to a corresponding type of typical yard state, the container area allocation features under the yard state combination in the historical data are counted; the container area allocation features include: the state value of the stockpiled volume, the state value of the number of operations, the state value of the number of yard bridges, and the state value of the proportion of container stacking operations in the allocated container area; the number of container areas with different state values ​​of the stockpiled volume, number of operations, number of yard bridges, and proportion of container stacking operations under each yard state combination is counted and the occurrence probability is calculated, and the probability of selecting the container area with each state value under each yard state combination is used as the container area selection rule for unloading containers;

[0019] Step 5: Design of intelligent algorithm for rule-based unloading container area allocation, including feature importance calculation, heuristic comparison rule design, and algorithm verification;

[0020] In order to determine the influence of different influencing factors on the allocation of unloading container areas, a machine learning model was first constructed using a shuffled random forest algorithm. The importance of the characteristics of the unloading container area allocation was calculated using a shuffled random forest algorithm, including the import and export type, unloading berth, the stock status of each container area in the yard, the number of operations, the number of yard bridges, and the proportion of container operations. On this basis, a rule-based unloading container area allocation intelligent algorithm was used to generate a set of optional drop-off areas for unloading containers. The specific implementation method of the rule-based unloading container area allocation intelligent algorithm is as follows:

[0021] (1) The rule-based intelligent algorithm for allocating container areas for unloading containers is as follows:

[0022] First, initialize the unloading time t of unloading box i i , Yard status Yard status rule set {stock status rule C, operation number status rule J, yard bridge number status rule Y, container operation ratio status rule R}, alternative container area set B feasible , the minimum number of candidate bins M, in the four types of rule sets C, J, Y, and R, sort the corresponding types of rules in the order of bin selection probability from high to low;

[0023] Secondly, the rule sets corresponding to the four types of yard status are called in descending order of importance to generate a set of optional container areas. The calling order is RULE1, RULE2, RULE3, and RULE4.

[0024] According to the unloading operation sequence, for each unloading container i, first calculate the yard state s1 in the current yard time period, and select the container area with the highest probability state in RULE1 in descending order. If such a container area exists, put it into the candidate set B1 and enter the second level of screening. If such a container area does not exist, continue to select the container area with the second highest probability state in RULE1 until the candidate set B1 is not an empty set;

[0025] In the second level screening, the yard state s2 is calculated, and the bins with higher probability states in RULE2 are selected in descending order of selection probability, until the intersection of the candidate sets B1 and B2 is not an empty set, and the third level screening is entered;

[0026] In the third level screening, the yard state s3 is calculated, and the bins with higher probability states in RULE3 are selected in descending order of selection probability, until the intersection of the candidate sets B1, B2, and B3 is not an empty set, and the fourth level screening is entered;

[0027] In the fourth level of screening, the yard state s4 is calculated, and the bins with higher probability states in RULE4 are selected in descending order of selection probability until the intersection of the candidate sets B1, B2, B3 and B4 is not an empty set, and the intersection of the candidate sets B1, B2, B3 and B4 is added to the candidate set B feasible ;

[0028] Judgment B feasible Whether the minimum number of candidate bins M is met, if so, output the candidate set B feasible ;

[0029] If the requirements are not met, start from the fourth level of screening and continue to select the highest probability state box area in the remaining rules to add to the candidate set B feasible , until the requirements are met and the screening stops;

[0030] If the requirements are still not met, return to the third level of screening, continue to select the highest probability state box area in the remaining rules, update the candidate set B3, repeat the fourth level screening process until the requirements are met, stop screening, and output the candidate set B feasible ;

[0031] If the requirements are still not met, return to the second level of screening, continue to select the highest probability state box area in the remaining rules, update the candidate set B2, repeat the third and fourth level screening process until the requirements are met, stop screening, and output the candidate set B feasible ;

[0032] If the requirements are still not met, return to the first level of screening, continue to select the highest probability state box area in the remaining rules, update the candidate set B1, repeat the second, third, and fourth level screening process until the requirements are met and stop screening, and output the candidate set Bfeasible .

[0033] (2) Heuristic comparison rules are used to select the candidate box set B. feasible The final drop-off area is determined in the following principles: random principle, proximity principle and idle principle; the random principle is to feasible The final drop box area is randomly selected in B. feasible Select the container area closest to the container unloading berth in the current task. The idle principle is to be in B feasible Select the container area with the least number of shippers or the least amount of stockpiled containers; among them, give priority to the container area with containers of the same shipper already stored.

[0034] (3) Algorithm Verification is used to verify the container area allocation effect of the rule-based intelligent algorithm for container area allocation for unloading containers. During the container stacking process, the greater the workload in a single container area, the greater the operating pressure of the yard crane, resulting in a longer waiting time for the yard crane operation; at the same time, in the future container pick-up process, the more cargo owners in a single container area and the more containers are picked up at the same time, the higher the probability of traffic congestion. Therefore, the evaluation indicators used include the maximum, minimum, average and variance of the workload and number of cargo owners in each container area in the yard.

[0035] Step 6: Design of heuristic intelligent algorithm for unloading container slot allocation, including setting of slot allocation principle, design and verification of heuristic algorithm for unloading container slot allocation;

[0036] According to the comparison results of different container area selection principles in step 5, the best principle is selected to determine the final container area. After the container area for unloading containers is determined, the container space is allocated according to the following principles.

[0037] The slot allocation principles followed by the heuristic intelligent algorithm for unloading container slot allocation include: (1) containers of the same owner should be stacked in the same or adjacent slots as much as possible, and containers of different owners should be stacked as dispersedly as possible;

[0038] (2) When selecting a container slot in the stack, try to choose a stack with fewer remaining container slots;

[0039] (3) When containers of different owners are stored in the same bay, different stacking locations should be selected as far as possible to store the containers of each owner separately.

[0040] After the drop box area of ​​any unloading box is determined, a judgment is made; the logic of the heuristic algorithm for unloading box slot allocation is as follows;

[0041] Determine whether there are containers with the same owner in the current container area;

[0042] 1) When there is no container of the same owner in the current container area, further determine whether there is a container space in the current container area that is not occupied by other owners;

[0043] 1.1) When there are bays occupied by other cargo owners, the bay farthest from the bays occupied by other cargo owners is selected from the feasible bays, and the stack with the least stockpiled quantity is selected for stockpiling;

[0044] 1.2) When all bays are occupied by other cargo owners, the bay with the least number of cargo owners is selected from the feasible bays, and the stack with the largest stockpiled quantity is selected for stockpiling;

[0045] 2) When there are containers of the same owner in the current container area, determine whether there is a space occupied only by the container of the current owner;

[0046] 2.1) When there is a slot occupied only by the current owner's container, further determine whether there is an available slot; 2.1.1) When there is an available slot, select the stack with the least remaining slots and available slots for storage; 2.1.2) When there is no available slot, further determine whether there is a slot not occupied by other owners;

[0047] 2.1.2.1) When there are other bays not occupied by other cargo owners, the bay closest to the bay occupied by the cargo owner is selected, and the stack with the least number of cargo owners and the least remaining container spaces is selected for storage;

[0048] 2.1.2.2) When all bays are occupied by other cargo owners, further determine whether there are bays for the current cargo owner's container storage;

[0049] 2.1.2.2.1) When there are bays with storage space for containers of the current consignor, the stack with the least number of consignors and the least remaining container space shall be selected for storage;

[0050] 2.1.2.2.2) When there is no space for the current owner's container to be stored, the nearest space to the owner is selected from all feasible spaces, and the stack with the least number of owners and the least remaining container spaces is selected for storage;

[0051] 2.2) When the current container area only has slots occupied by the current owner and other owners at the same time, or only occupied by other owners, further determine whether there are vacant slots in the slots containing the container of the owner;

[0052] 2.2.1) When there are vacant slots among the slots containing the consignor's container, the slot with the least number of consignors is selected from all feasible slots containing the consignor's container, and the stack with the least number of consignors and the least remaining slots is selected for storage;

[0053] 2.2.2) When there is no vacant space among the bays containing the container of the consignor, the bay closest to the consignor is selected, and the stack with the least number of consignors and the least remaining space is selected for storage;

[0054] After the container slots are determined, the container slot allocation results are verified. When picking up containers in the container area, if the containers of the same consignor are stored in a concentrated manner, it will help reduce the movement of the yard crane in the container area and improve the efficiency of the yard crane's container picking operations; if the containers of the same consignor are stored in a dispersed manner, it will increase the movement of empty vehicles along the bay direction during the container pickup process, reduce operating efficiency, and further extend the queuing time for container pickup trucks, causing lane congestion between container areas. Considering the distribution of containers of the same consignor in the container area, the verification of the heuristic algorithm for unloading container slot allocation uses the storage density of containers of the same consignor as the evaluation index of the slot allocation effect. The calculation method is shown in the following formula;

[0055]

[0056] Among them, n i is the number of bays occupied by shipper i in the current container area, f i is the number of the frontmost bay occupied by shipper i in the current container area, l i is the last bay number occupied by shipper i in the current container area;

[0057] The value range of the container storage density of the same consignor is (0,1]. The closer the index is to 0, the more dispersed the container storage locations of the same consignor are; the closer the index is to 1, the denser the container storage locations of the same consignor are.

[0058] The number of clusters is set to 8, and a total of 8 types of typical yard states are extracted.

[0059] Beneficial effects of the present invention: The present invention takes into account the impact of container characteristics, operation characteristics and yard status characteristics on the container area allocation decision during the actual operation of the terminal. Based on massive historical operation data, the data mining method is used to extract the association rules between container area allocation and container characteristics, operation characteristics and yard status characteristics in the historical data, and on this basis, an intelligent algorithm for container area allocation and container slot allocation is designed. The massive historical operation data of the container terminal is effectively utilized, and the container characteristics, operation characteristics and yard status characteristics are considered. The rules for unloading container area allocation are deeply mined and extracted. On this basis, the container area and container slot allocation decisions are optimized, and the operation decisions are intelligently adjusted according to the terminal operation status. It can provide port managers with reasonable and effective unloading container area and container slot allocation decisions in real time, which is conducive to alleviating yard traffic congestion, improving the production and operation efficiency of container terminals, and promoting the intelligent construction of container terminals. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figure 1 It is a schematic diagram of the dock layout;

[0061] Figure 2 It is a conceptual diagram of the adjacent box area;

[0062] Figure 3 It is a schematic diagram of the conversion from two-dimensional container area state to one-dimensional yard state;

[0063] Figure 4 is the distance between the center point of each cluster with different number of clusters and the sample;

[0064] Figure 5 is the clustering result of the typical state of the stockpile in the yard; (a)-(h) correspond to typical yard state 1-typical yard state 8 respectively;

[0065] Figure 6 It is a line chart of the typical status of the stockpiled amount of each cluster;

[0066] Figure 7 is the number of times the container area is selected under different yard conditions; (a) is the state of the stockpiled quantity in the container area; (b) is the state of the number of operations in the container area; (c) is the proportion of container stacking operations in the container area;

[0067] Figure 8 is the calculation result of the importance of the characteristics of the container slot allocation in the unloading container area;

[0068] Fig. 9 It is the logic flow chart of the heuristic intelligent algorithm for allocating container slots for unloading containers. DETAILED DESCRIPTION

[0069] The present invention is further described below in conjunction with the accompanying drawings.

[0070] The present invention takes the container unloading area and container slot allocation at the CICT Terminal of Colombo Port, Sri Lanka in 2019 as an embodiment.

[0071] Step 1: Collect historical data on container terminal unloading operations and yard status.

[0072] The collected data includes data related to the layout of the container terminal, ship unloading operation data and yard status data.

[0073] The data related to the terminal layout include the number of berths, the layout of the yard, and the number of container areas. In this case, there are 4 berths, the yard is arranged horizontally, there are 38 loaded container areas, 3 empty container areas, and 2 refrigerated container areas. The berth and yard layout diagram is as follows: Figure 1 shown.

[0074] The unloading operation data includes the unloading time, unloading berth, container drop zone and unloading container data. The unloading container data includes import and export types and container owners. In this case, the unloading containers include three types: imported containers, transshipment containers and container transfer containers. Among them, the imported containers need to be picked up by external container trucks, and the container transfer containers only need to be transported by internal container trucks in the yard. The transshipment containers include loading at the current terminal and loading at other terminals. The operation process of the former is similar to that of the container transfer containers, and the operation process of the latter is similar to that of the imported containers. The company to which the container pickup truck belongs is used as the owner information of the unloading container. For imported containers and transshipment containers loaded at other terminals, the owner is the company code of the external container truck that picks up the container. For container transfer containers and transshipment containers loaded at the current terminal, the owner is the current terminal (CICT).

[0075] The yard status data includes the stockpiled quantity, number of operations, number of yard bridges and the proportion of stacking operations in each heavy container area in the yard in each time period. The stockpiled quantity of a certain container area includes the stockpiled quantity of each bay and each stack in the container area, the number of operations includes the number of stacking operations, the number of container unloading operations and the number of container unloading operations, the number of yard bridges is the total number of yard bridges with operation records in the container area in each time period, and the proportion of stacking operations is the proportion of the number of stacking operations in the container area to the total number of operations.

[0076] Based on the container terminal unloading operation data and yard status data collected above, data mining methods are used to analyze the correlation between container attributes, yard status and container area selection, and the container area selection rules for unloading containers are extracted from massive historical data.

[0077] Step 2: Based on the unsupervised learning algorithm, the yard status is calculated according to historical data, and the typical yard status is extracted using the clustering algorithm.

[0078] As described in step 1, the stockpiling status, number of operations, number of yard bridges, and proportion of container stacking operations in each container area in each time period are selected to describe the status of the yard in the current time period. In this case, one hour is used as a time period to count the stockpiling status, number of operations, number of yard bridges, and proportion of container stacking operations in each container area. The eight adjacent container areas near container area i are defined as the adjacent container area j (j = 1, 2, ···, 8) of container area i, as follows: Figure 2 shown.

[0079] Taking the stock status as an example, the stock in the current box area is compared with the stock in the adjacent box area in turn, and the relative relationship is recorded as v i,j , j = 1, 2, ···, 8, if the current box area has a larger stock than the adjacent box area, then v i,j =1, if it is less than the stockpile in the adjacent bin area, then v i,j =-1, if the stockpile is the same as that in the adjacent bin area, then v i,j =0, the stock status of this box area Vi ∈[-8,8]. i The larger the value is, the larger the stockpile volume in this container area is in the adjacent container areas. i The smaller it is, the smaller the stockpiled quantity in this box area is relative to the adjacent box areas.

[0080] After the state representation method of each container area is determined, the two-dimensional distribution of the container area state is converted into a one-dimensional yard state to obtain the yard state value vector. The conversion process is as follows: Figure 3 shown.

[0081] Taking hours as units, the above method is used to calculate the stockpile status value vectors of 8760 hours in 2019, and the stockpile status value vector polyline of each hour is obtained. The unsupervised learning algorithm in machine learning is used to construct a stockpile status value vector clustering model based on K-means. According to the similarity between samples, the stockpile status value vectors of each hour are clustered. First, the distance between the center point of each cluster with different cluster numbers and the sample is calculated, as shown in Figure 1. Figure 4 shown.

[0082] As the number of clusters increases, the distance between the center point of each cluster and the sample point gradually decreases, the clustering accuracy gradually increases, and the clustering efficiency decreases accordingly. Taking into account the clustering efficiency and clustering accuracy, the number of clusters is set to 8, and the stockpile status value vectors of the yard are clustered to obtain the clusters to which the stockpile status value vectors of each hour belong. In each type of stockpile status value vector cluster, the average value of the stockpile status value vector of each cluster is taken as the typical stockpile status of the cluster sample. A total of 8 types of typical stockpile status of the yard are extracted, such as Figure 5 shown.

[0083] Figure 5 The black line in the figure represents the typical state of the stockpile in each cluster. The average stockpile state is extracted for comparison, as shown in Figure 2. Figure 6 shown.

[0084] pass Figure 6 By comparison, it can be seen that some container areas maintain a relatively high or relatively low stockpile volume throughout the year (for example, container areas 18, 33, and 35, etc.). At the same time, the stockpile volume status of some container areas in different clusters varies greatly (for example, container areas 5, 14, and 21, etc.).

[0085] Step 3: Analysis of factors affecting the selection of container unloading area.

[0086] according to Figure 1It can be seen that the yard is divided into 4 areas (01-04), of which 01, 03, and 04 storage areas each have 10 heavy container areas (rows A-K), and 02 area has 8 heavy container areas (rows A-H). Based on statistical theory, by sorting out the container area selection of various types of unloading containers in different areas and rows in historical data, the influence of container attribute characteristics (import and export type), unloading characteristics (berth number) and yard status characteristics (stock type, operation number type, yard crane number type, container stacking operation ratio type) on container area allocation is analyzed.

[0087] (1) Import and export types

[0088] As described in step 1, the unloaded containers in this case include transshipment containers and unloading containers that need to be loaded at this terminal, as well as import containers and transshipment containers that need to be picked up. Therefore, according to the destination of the unloaded containers, the locations of the storage areas of the unloaded containers that need to be loaded and picked up in the historical data (2019) are counted respectively. The statistical results are shown in the following table:

[0089] Table 1 Row number of the storage area for unloading containers that need to be loaded

[0090]

[0091] Table 2 Row number of the unloading container storage area where the container needs to be picked up

[0092]

[0093] According to statistical data, most of the unloaded containers that need to be loaded are stacked in the container area close to the shore, and most of the unloaded containers that need to be picked up are stacked in the container area close to the land. The results show that in the process of allocating unloaded container areas at the terminal in this case, the unloaded containers that need to be loaded tend to be allocated to the container area close to the shore for the convenience of subsequent loading operations, and for unloaded containers that need to be picked up, they tend to be allocated to the container area close to the land for the convenience of subsequent picking up operations.

[0094] (2) Berth number

[0095] The historical data (2019) of the container storage areas unloading at different berths are statistically analyzed, and the statistical results are shown in the following table:

[0096] Table 3 The location of the unloading container storage area at different berths

[0097]

[0098] According to the statistical data, since the number of container areas in area 02 (8) is less than that in areas 01, 03, and 04 (10), the number of unloading containers stored in area 02 for each berth is relatively small. At the same time, the number of unloading containers stored in areas close to the unloading berths for each berth is relatively large. The results show that in the process of allocating unloading container areas, the terminal in this case tends to choose container areas that are closer to the unloading berths.

[0099] (3) Yard status

[0100] As described in step 1, the stockpiling status, operation status and container stacking operation ratio of each container area in each period are selected to describe the yard status, where the representation method of the stockpiling status and operation status is as described in step 2. The number of times the unloading container area with different stockpiling status, different operation status and different container stacking operation ratio is selected in the historical data (2019) is counted respectively. The results are as follows Figure 7 shown.

[0101] According to the statistical results, about 74% of the unloading tasks selected the container area with relatively small stockpiles and relatively few operations, and the stockpiles and operations status values ​​of most unloading container areas were -8, -6, -4, -2, 0, and 2; about 42% of the unloading tasks selected the container area with a stacking operation ratio of more than 90%, and about 33% of the unloading tasks selected the container area with a stacking operation ratio of 100%. As the stacking operation ratio decreases, the number of selections of the corresponding container area gradually decreases. The results show that in the process of allocating container areas for unloading ships in this case, the terminal tends to select container areas with relatively small stockpiles, relatively small operations, and high stacking operation ratios.

[0102] Step 4: Extraction of selection rules for unloading container storage areas based on machine learning.

[0103] Using the yard status clustering method in step 2, we obtain 8 categories of stockpile status, number of operations status, number of yard bridges status and container ratio status within each hour. Based on the supervised learning concept in machine learning, the selection rules of the container storage area for unloading containers in historical data are mined.

[0104] According to the unloading operation time, four types of yard status are matched for each unloading task in the historical data. When the stockpile volume, number of operations, number of yard bridges, and container stacking operation ratio state value vectors of each container area in the yard belong to a corresponding type of typical state, the container area allocation characteristics under this state combination in the historical data are counted, where the container area allocation characteristics include: the stockpile volume state value, the number of operations state value, the number of yard bridges state value, and the container stacking operation ratio state value of the allocated container area. The number of container areas with different stockpile volume, number of operations, number of yard bridges, and container stacking operation ratio state values ​​under each state combination is counted and the occurrence probability is calculated. The probability of selecting a container area with each state value under each state combination is used as the container area selection rule for unloading containers. Taking the yard stockpile volume state selection rule as an example, the statistical results are shown in the following table:

[0105] Table 4 Rules for selecting stockpile status in some storage yards

[0106]

[0107] In Table 4, the combination of stockpile status as typical state 1, number of operations status as typical state 5, number of yard bridges status as typical state 3, and stack container ratio status as typical state 8 is recorded as Class 1 yard status. When the yard status is Class 1, the selection probability of the container area with a stockpile status value of 1 in the historical data is 25.00%, the selection probability of the container area with a stockpile status value of 0 is 20.83%, the selection probability of the container area with a stockpile status value of -4 is 16.67%, and the selection probability of the container area with a stockpile status value of -6 is 10.42%, which are marked as Rule 1-1, Rule 1-2, Rule 1-3, and Rule 1-4 respectively.

[0108] Step 5: Design and verification of rule-based intelligent algorithm for unloading container area allocation.

[0109] In order to determine the influence of different factors on the allocation of unloading container areas, the random forest algorithm with shuffled order was used to calculate the feature importance of import and export types, unloading berths and four types of yard status. The results are as follows: Figure 8 shown.

[0110] The calculation results of feature importance show that among the four yard status features, the importance of stockpile status > number of operations status > number of yard bridges status > container operation ratio status. Therefore, in the rule-based intelligent algorithm for unloading container area allocation, the four types of rule sets are called in the order of C, J, Y, and R. The specific implementation method of the algorithm is as follows:

[0111] First, initialize the unloading time t of unloading box i i , Yard status Yard status rule set {stock status rule C, operation number status rule J, yard bridge number status rule Y, container operation ratio status rule R}, alternative container area set Bfeasible , the minimum number of candidate bins M, in the four types of rule sets, sort the corresponding types of rules in C, J, Y, and R according to the order of selection probability from high to low;

[0112] Secondly, the rule sets corresponding to the four yard states are called in descending order of importance to generate a set of optional container areas. The calling order is C, J, Y, and R.

[0113] According to the unloading operation sequence, for each unloading container i, first calculate the yard status s in the current yard time period c , in descending order, select the bin with the highest probability state in C. If there is such a bin, put it into the candidate set B c , and enter the second level of screening. If there is no box of this type, continue to select the box with the next highest probability state in C until the candidate set B c is not an empty set;

[0114] In the second level screening, the yard status s is calculated j , according to the order of selection probability from high to low, select the bins with higher probability states in J in turn until the candidate set B c and B j The intersection of is not an empty set, and enters the third level of screening;

[0115] In the third level screening, the yard status s is calculated y , according to the order of selection probability from high to low, select the bins with higher probability states in Y in turn until the candidate set B c , B j and B y The intersection of is not an empty set, and enters the fourth level of screening;

[0116] In the fourth level screening, the yard status s is calculated r , according to the order of selection probability from high to low, select the bins with higher probability states in R in turn until the candidate set B c , B j , B y and B r The intersection of is not an empty set, and the alternative set B c , B j , B y and B r The intersection of joins the candidate set B feasible ;

[0117] Judgment B feasible Whether the minimum number of candidate bins M is met, if so, output the candidate set B feasible ;

[0118] If the requirements are not met, start from the fourth level of screening and continue to select the state box with the highest probability in the remaining rules to update the candidate set B r , the candidate set B c , B j , B y and B r The intersection of joins the candidate set B feasible , until the requirements are met and the screening stops;

[0119] If the requirements are still not met, return to the third level of screening, continue to select the highest probability state box area in the remaining rules, and update the candidate set B y Repeat the fourth-level screening process until the requirements are met and stop screening, and output the candidate set B feasible ;

[0120] If the requirements are still not met, return to the second level of screening, continue to select the highest probability state box area in the remaining rules, and update the candidate set B j Repeat the third and fourth level screening process until the requirements are met and stop screening, and output the candidate set B feasible ;

[0121] If the requirements are still not met, return to the first level of screening, continue to select the highest probability state box area in the remaining rules, and update the candidate set B c Repeat the second, third, and fourth level screening process until the requirements are met and stop screening, and output the candidate set B feasible ;

[0122] The pseudo code of the rule-based intelligent algorithm for unloading container area allocation is as follows:

[0123]

[0124]

[0125] Use the container area selection rules to filter out the candidate container areas for unloading containers. feasible Finally, different heuristic algorithms are used to allocate the final container drop zone, including the random principle, the principle of being closest to the unloading berth, and the principle of the least cargo owner / stockpile, as follows:

[0126] (1) Random principle: Randomly select a box area with remaining boxes in the set of candidate box areas as the final box area;

[0127] (2) Proximity principle: The container area closest to the unloading berth and with remaining container spaces is selected as the final container unloading area from the set of alternative container unloading areas;

[0128] (3) Idle principle: The container area with the least number of cargo owners, the least stockpiled space, and the most remaining container spaces is selected from the set of candidate container areas as the final container area. Among them, the container area with containers of the same cargo owner already stored is given priority.

[0129] Finally, the container area allocation algorithm is verified. During the container stacking process, the greater the workload in a single container area, the greater the operating pressure of the yard crane, resulting in a longer waiting time for the yard crane operation; at the same time, in the future container pick-up process, the more cargo owners there are in a single container area and the more containers are picked up at the same time, the higher the probability of traffic congestion. Therefore, the evaluation indicators used include the maximum, minimum, average and variance of the workload and the number of cargo owners in each container area in the yard. The comparison of various evaluation indicators under different container area allocation principles is shown in the following table:

[0130] Table 5 Comparison of box area allocation effects under different principles

[0131]

[0132] The comparison results in Table 5 show that under the principle of random selection of container areas, the various indicators are relatively close to historical data, indicating that the set of alternative container areas obtained by the above-mentioned algorithm for generating alternative container areas for unloading containers basically conforms to the container area allocation preference in the actual operation of the terminal in this case, and verifies the effectiveness of the container area selection rule for unloading container areas based on the yard status described in step 4. Among the three container area selection principles, the average number of cargo owners in each container area is the least under the principle of the closest distance to the unloading berth, and the maximum operation volume of a single container area and the variance of the operation volume of each container area under the principle of the least number of cargo owners / stock volume are small. Both principles are better than historical data.

[0133] Step 6: Design and verification of heuristic intelligent algorithm for container slot allocation for unloading containers.

[0134] According to the comparison results of different container area selection principles in step 5, the best principle is selected to determine the final container area. After the container area for unloading containers is determined, the container space allocation is carried out according to the following principles:

[0135] (1) Containers of the same owner should be stored in the same or adjacent bays as much as possible, and containers of different owners should be stored in separate bays as much as possible;

[0136] (2) When selecting a container slot in the stack, try to choose a stack with fewer remaining container slots;

[0137] (3) When containers of different owners are stored in the same bay, different stacking locations should be selected as far as possible to store the containers of each owner separately.

[0138] Based on the above principles, under the premise of known unloading area, a heuristic algorithm for unloading container slot allocation is designed. The main logical flow of the algorithm is as follows:

[0139] (1) After the drop-off area of ​​any unloaded container is determined, first determine whether there are containers of the same owner in the current area; if not, further determine whether there are slots in the current area that are not occupied by other owners. If so, select the slot farthest from the slots occupied by other owners from the feasible slots, and select the stack with the least stockpile for storage; if all slots are occupied by other owners, select the slot with the least number of owners from the feasible slots, and select the stack with the most stockpile for storage;

[0140] (2) If there are containers of the same owner in the current container area, determine whether there are slots occupied only by the current owner's container. If so, further determine whether there are vacant slots. If so, select the stack with the least remaining slots and vacant slots for storage;

[0141] (3) If there are no vacant slots in the bay occupied by the consignor, further determine the occupancy status of other slots. If there are other slots not occupied by other consignors, select the bay closest to the slot occupied by the consignor, and select the stack with the least number of stacked consignors and the least remaining slots for storage;

[0142] (4) If all bays are occupied by other cargo owners, further determine whether there are bays where the current cargo owner's containers are stored. If so, select the bay with the least number of cargo owners and the least remaining container slots for storage among the bays where the current cargo owner's containers are stored; if there are no bays where the current cargo owner's containers are stored among other bays, select the bay closest to the cargo owner's bay among all feasible bays, and select the bay with the least number of cargo owners and the least remaining container slots for storage;

[0143] (5) If the current container area only has slots occupied by the current owner and other owners at the same time, or only has slots occupied by other owners, further determine whether there are vacant slots among the slots containing the container of the owner. If so, select the slot with the least number of owners from all feasible slots containing the container of the owner, and select the stack with the least number of owners and the least remaining slots for stacking; if there are only feasible slots that do not contain the container of the owner, select the slot closest to the slot of the owner, and select the stack with the least number of owners and the least remaining slots for stacking.

[0144] Algorithm logic flow Fig. 9 shown.

[0145] After the container slots are determined, the container slot allocation results are verified. When picking up containers in the container area, if the containers of the same consignor are stored in a concentrated manner, it will help reduce the movement of the yard crane in the container area and improve the efficiency of the yard crane's container picking operations; if the containers of the same consignor are stored in a dispersed manner, it will increase the movement of empty vehicles along the bay direction during the container pickup process, reduce operating efficiency, and thus extend the queue time for container pickup trucks, causing lane congestion between container areas. Considering the distribution of containers of the same consignor in the container area, the storage density of containers of the same consignor is used as the evaluation index for container slot allocation, and the calculation method is as follows:

[0146]

[0147] Among them, n i is the number of bays occupied by shipper i in the current container area, f i is the number of the frontmost bay occupied by shipper i in the current container area, l i It is the last slot number occupied by shipper i in the current container area.

[0148] The value range of the same-owner container stacking density is (0,1]. The closer this index is to 0, the more dispersed the storage locations of the same-owner containers are. The closer it is to 1, the denser the storage locations of the same-owner containers are. The comparison between the storage density of the same-owner containers in each container area in the heuristic algorithm for slot allocation and the historical data is shown in the following table:

[0149] Table 6 Comparison of the effects of the heuristic algorithm for slot allocation

[0150]

[0151] From the comparison in Table 6, we can see that in the historical operation of the terminal in this case, the stacking density of containers with the same owner reached 23 at most, indicating that there are many mixed stacking of containers of different owners in the container area; in the calculation results of the heuristic algorithm for slot allocation designed in this study, the stacking density of containers in all container areas and all cargo owners is 1, indicating that all containers are centrally stored according to the cargo owner, and there is no mixed stacking. The results show that the heuristic algorithm for slot allocation designed in this study can effectively avoid the mixed stacking of containers of different cargo owners, which is conducive to improving the efficiency of the yard crane operation when picking up containers.

Claims

1. An intelligent algorithm for allocating container areas and slots for unloading containers based on machine learning, characterized in that: The following steps are involved: Step 1: Collect historical data on container terminal unloading operations and yard status, including container terminal layout data, unloading operation data, and yard status data; The layout data of container terminals include the number of berths, the layout of the yard and the number of container areas; the unloading operation data include the unloading time, unloading berth, container area and unloading container data; the unloading container data include the import and export type and the container owner; the yard status data include the stockpiled volume, operation number, number of cranes and the proportion of container stacking operations in each container area in the yard in each time period; the stockpiled volume of the container area includes the stockpiled volume of each berth and each stack in the container area; the number of operations in the container area includes the number of container stacking operations, container retrieval operations and container unloading operations; the number of cranes in the container area is the total number of cranes with operation records in the container area in each time period; the proportion of container stacking operations in the container area is the proportion of the number of container stacking operations in the container area to the total number of operations; Step 2: Based on the unsupervised learning algorithm, the yard status is calculated according to the historical data, and the typical yard status is extracted using the clustering algorithm; The yard status includes the status of the stockpiled quantity, the number of operations, the number of yard bridges, and the proportion of container operations; a certain state of the yard is represented by a vector consisting of the corresponding state values ​​of each container area, and the length of the vector is equal to the number of container areas in the yard; The corresponding status of each container area is the relative size of each status parameter of the current container area in its eight adjacent container areas; the status parameters are the stockpiled quantity / number of operations / number of yard bridges / ratio of container stacking operations; The calculation method is: compare the state parameters of any box area with its adjacent boxes in pairs. When the parameter value of the box area is greater than that of an adjacent box area, increase the corresponding state value of the box area by 1; when the parameter value of the box area is less than that of an adjacent box area, decrease the corresponding state value of the box area by 1; when the parameter value of the box area is equal to that of an adjacent box area, keep the corresponding state value unchanged; after the comparison with all 8 adjacent boxes is completed, the accumulated corresponding state value of the box area is obtained, and the value range is [-8,8]; A K-means-based yard state value vector clustering model is constructed. The number of clusters is set, and the four types of yard states, namely, the stockpiled volume in each container area, the number of operations in each container area, the number of yard bridges in each container area, and the proportion of container operations in each container area, are clustered. In each type of yard state, the average value of the yard state value vector of each cluster is taken as the typical yard state of the cluster sample. The number of typical yard states is equal to the number of clusters. Step 3: Analyze the factors affecting the selection of container unloading area; The factors affecting the selection of container unloading area include container attribute characteristics, unloading characteristics and yard status characteristics; container attribute characteristics include container import and export types; unloading characteristics include unloading berth number; yard status characteristics include the type of stockpiled volume, number of operations, number of yard cranes and proportion of container stacking operations in each container area; Step 4: Extracting the selection rules of the unloading container storage area based on machine learning; Based on the supervised learning concept in machine learning, when the state value vectors of the stockpiled volume, number of operations, number of yard bridges, and proportion of container stacking operations in each container area in the yard belong to a corresponding type of typical yard state, the container area allocation features under the yard state combination in the historical data are counted; the container area allocation features include: the state value of the stockpiled volume, the state value of the number of operations, the state value of the number of yard bridges, and the state value of the proportion of container stacking operations in the allocated container area; the number of container areas with different state values ​​of the stockpiled volume, number of operations, number of yard bridges, and proportion of container stacking operations under each yard state combination is counted and the occurrence probability is calculated, and the probability of selecting the container area with each state value under each yard state combination is used as the container area selection rule for unloading containers; Step 5: Design of intelligent algorithm for rule-based unloading container area allocation, including feature importance calculation, heuristic comparison rule design, and algorithm verification; (1) The importance of the slot allocation features of the unloading container area is calculated using a random forest algorithm with a shuffled order. The slot allocation features of the unloading container area include import and export types, unloading berths, the stock status of each container area in the yard, the number of operations, the number of yard bridges, and the proportion of container operations; The intelligent algorithm for allocating container areas for unloading containers based on rules is as follows: First, initialize the unloading time t of unloading box i i , Yard status Yard status rule set {stock status rule C, operation number status rule J, yard bridge number status rule Y, container operation ratio status rule R}, alternative container area set B feasible , the minimum number of candidate bins M, in the four types of rule sets C, J, Y, and R, sort the corresponding types of rules in the order of bin selection probability from high to low; Secondly, the rule sets corresponding to the four types of yard status are called in descending order of importance to generate a set of optional container areas. The calling order is RULE1, RULE2, RULE3, and RULE4. According to the order of unloading operations, for each unloading container i, it is divided into four layers of screening according to the rule set, and the layered positive order screening is carried out, and the container areas with the highest probability in each type of yard state are selected into different candidate sets in turn; the intersection of the four different candidate sets obtained is added to the candidate container area set B feasible ; First, the yard state s1 in the current yard time period is calculated, and the box area with the highest probability state in RULE1 is selected in descending order of the box area selection probability; when this type of box area exists, it is put into the candidate set B1 and enters the second level of screening; when this type of box area does not exist, the box area with the second highest probability state in RULE1 is continuously selected until the candidate set B1 is not an empty set; In the second level screening, the yard state s2 is calculated, and the bins with the highest probability state in RULE2 are selected in descending order of selection probability, until the intersection of the candidate sets B1 and B2 is not an empty set, and the third level screening is entered; In the third level screening, the yard state s3 is calculated, and the bins with higher probability states in RULE3 are selected in descending order of selection probability, until the intersection of the candidate sets B1, B2, and B3 is not an empty set, and the fourth level screening is entered; In the fourth level of screening, the yard state s4 is calculated, and the bins with higher probability states in RULE4 are selected in descending order of selection probability until the intersection of the candidate sets B1, B2, B3 and B4 is not an empty set, and the intersection of the candidate sets B1, B2, B3 and B4 is added to the candidate set B feasible ; Judgment B feasible Whether the minimum number of candidate bins M is met, if so, output the candidate set B feasible ; When the requirements are not met, start screening from the fourth layer and continue to select the highest probability state box area in the remaining rules to add to the candidate set B feasible , until the requirements are met and the screening stops; if the requirements are still not met, perform reverse screening, obtain the highest probability state box area in the remaining rules and add it to the candidate set of the corresponding layer, and start positive screening from this layer to obtain B feasible , until the candidate set B feasible After meeting the requirements, stop screening; When B feasible When the minimum number of candidate bins M is not met, the following steps are performed: Starting from the fourth level of screening, continue to select the bins with the highest probability in the remaining rules and add them to the candidate set B feasible , until the requirements are met and the screening stops; If the requirements are still not met, return to the third level of screening, continue to select the highest probability state box area in the remaining rules, update the candidate set B3, repeat the fourth level screening process until the requirements are met, stop screening, and output the candidate set B feasible ; If the requirements are still not met, return to the second level of screening, continue to select the highest probability state box area in the remaining rules, update the candidate set B2, repeat the third and fourth level screening process until the requirements are met, stop screening, and output the candidate set B feasible ; If the requirements are still not met, return to the first level of screening, continue to select the highest probability state box area in the remaining rules, update the candidate set B1, repeat the second, third, and fourth level screening process until the requirements are met and stop screening, and output the candidate set B feasible ; (2) The heuristic comparison rule is used to select the candidate box set B. feasible The final drop box area is determined in the following principles: random principle, proximity principle and idle principle; the random principle is to feasible The final drop box area is randomly selected in B feasible Select the container area closest to the container unloading berth in the current task. The idle principle is to be in B feasible Select the container area with the least number of shippers or the least stockpiled quantity; (3) Algorithm verification is used to verify the container area allocation effect of the rule-based intelligent algorithm for unloading container areas. The evaluation indicators used include the maximum, minimum, average and variance of the workload and number of cargo owners in each container area in the yard; Step 6: Design of heuristic intelligent algorithm for unloading container slot allocation, including setting of slot allocation principle, design and verification of heuristic algorithm for unloading container slot allocation; The slot allocation principles followed by the heuristic intelligent algorithm for unloading container slot allocation include: (1) Containers of the same owner are stored in the same or adjacent bays, and containers of different owners are stored in separate bays; (2) When selecting slots among bays, select the slot with the fewest remaining slots; (3) When containers of different owners are stored in the same bay, select different stacks to store the containers of each owner; After the drop box area of ​​any unloading box is determined, a judgment is made; the logic of the heuristic algorithm for unloading box slot allocation is as follows; Determine whether there are containers with the same owner in the current container area; 1) When there is no container of the same owner in the current container area, further determine whether there is a container space in the current container area that is not occupied by other owners; 1.1) When there are bays occupied by other cargo owners, the bay farthest from the bays occupied by other cargo owners is selected from the feasible bays, and the stack with the least stockpiled quantity is selected for stockpiling; 1.2) When all bays are occupied by other cargo owners, the bay with the least number of cargo owners is selected from the feasible bays, and the stack with the largest stockpiled quantity is selected for stockpiling; 2) When there are containers of the same owner in the current container area, determine whether there is a space occupied only by the container of the current owner; 2.1) When there is a space occupied only by the current owner's container, further determine whether there is any vacant space; 2.1.1) When there is any vacant space, select the stack with the least remaining space and vacant space for storage; 2.1.2) When there is no vacant container space, further determine whether there is a space that is not occupied by other cargo owners; 2.1.2.1) When there are other bays not occupied by other cargo owners, the bay closest to the bay occupied by the cargo owner is selected, and the stack with the least number of cargo owners and the least remaining container spaces is selected for storage; 2.1.2.2) When all bays are occupied by other cargo owners, further determine whether there are bays for the current cargo owner's container storage; 2.1.2.2.1) When there are bays with storage space for containers of the current consignor, the stack with the least number of consignors and the least remaining container space shall be selected for storage; 2.1.2.2.2) When there is no space for the current owner's container to be stored, the nearest space to the owner is selected from all feasible spaces, and the stack with the least number of owners and the least remaining container spaces is selected for storage; 2.2) When the current container area only has slots occupied by the current owner and other owners at the same time, or only occupied by other owners, further determine whether there are vacant slots in the slots containing the container of the owner; 2.2.1) When there are vacant slots among the slots containing the consignor's container, the slot with the least number of consignors is selected from all feasible slots containing the consignor's container, and the stack with the least number of consignors and the least remaining slots is selected for storage; 2.2.2) When there is no vacant space among the bays containing the container of the consignor, the bay closest to the consignor is selected, and the stack with the least number of consignors and the least remaining space is selected for storage; The verification of the heuristic algorithm for unloading container slot allocation uses the same-owner container storage density as the evaluation index of the slot allocation effect. The calculation method is shown in the following formula; in, n i is the number of bays occupied by shipper i in the current container area, f i is the number of the frontmost bay occupied by shipper i in the current container area, l i is the last bay number occupied by shipper i in the current container area; The value range of the container storage density of the same consignor is (0,1]. The closer the index is to 0, the more dispersed the container storage locations of the same consignor are; the closer the index is to 1, the denser the container storage locations of the same consignor are.

2. The intelligent algorithm for allocating container areas and slots for unloading ships based on machine learning according to claim 1 is characterized in that: The number of clusters is set to 8.