A congestion prediction method, device, equipment and storage medium

By using a preset congestion prediction model in the sorting center to predict conveyor belt congestion and deal with congestion problems in advance, the problem of low efficiency in the existing technology is solved and the sorting efficiency is improved.

CN113610304BActive Publication Date: 2024-09-20BEIJING JINGDONG QIANSHITECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110918699.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-11
Publication Date
2024-09-20
Estimated Expiration
2041-08-11

AI Technical Summary

Technical Problem

Existing technology cannot effectively predict and prevent conveyor belt congestion in sorting centers, resulting in reduced efficiency and transportation delays.

Method used

By determining the parcel flow rate information at each entrance of the sorting device and inputting it into the preset congestion prediction model trained based on sample data, the congestion situation of each monitoring node is predicted, thereby handling congestion in advance and improving sorting efficiency.

Benefits of technology

It achieves advance prediction and prevention of congestion in the sorting center, improves sorting efficiency, and avoids delays and losses caused by manual processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113610304B
    Figure CN113610304B
Patent Text Reader

Abstract

The embodiment of the present invention discloses a congestion prediction method, device, equipment and storage medium, the method comprising: determining the current package flow rate information corresponding to each entrance of the sorting device; inputting each current package flow rate information into a preset congestion prediction model, and determining the current congestion prediction result corresponding to each monitoring node in the sorting device according to the output of the preset congestion prediction model; wherein the preset congestion prediction model is obtained in advance based on sample data training. Through the technical solution of the embodiment of the present invention, the congestion situation can be predicted in advance, so that the congestion can be handled in advance, thereby effectively improving the sorting efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to computer technology, and in particular to a congestion prediction method, device, equipment and storage medium. Background Art

[0002] With the rapid development of science and technology, more and more automated equipment is used in sorting centers to improve sorting efficiency.

[0003] Usually, the sorting center needs to process a large number of packages, and the capacity of the sorting device is limited, which will cause congestion in certain areas of the conveyor belt, greatly affecting the sorting efficiency and even causing delays in transportation and delivery. In order to deal with the congestion of the conveyor belt, the congestion of the monitoring node is currently identified by using sensors or computer vision. Once congestion is found, it is eliminated by manual means.

[0004] However, in the process of implementing the present invention, it is found that there are at least the following problems in the prior art:

[0005] The existing method is to identify congestion when it has occurred and then manually handle it. It can be seen that congestion has already caused certain losses during manual processing, so this post-processing method will also affect the sorting efficiency and cannot effectively improve the sorting efficiency. Summary of the invention

[0006] The embodiments of the present invention provide a congestion prediction method, device, equipment and storage medium to achieve advance prediction of congestion conditions, so that the congestion can be handled in advance later, thereby effectively improving sorting efficiency.

[0007] In a first aspect, an embodiment of the present invention provides a congestion prediction method, including:

[0008] Determine the current package flow rate information corresponding to each entrance of the sorting device;

[0009] Inputting each of the current package flow rate information into a preset congestion prediction model, and determining the current congestion prediction result corresponding to each monitoring node in the sorting device according to the output of the preset congestion prediction model;

[0010] The preset congestion prediction model is obtained in advance through training based on sample data.

[0011] In a second aspect, an embodiment of the present invention further provides a congestion prediction device, including:

[0012] A current parcel flow rate information determination module, used to determine the current parcel flow rate information corresponding to each entrance of the sorting device;

[0013] A current congestion prediction result determination module, used to input each of the current package flow rate information into a preset congestion prediction model, and determine the current congestion prediction result corresponding to each monitoring node in the sorting device according to the output of the preset congestion prediction model;

[0014] The preset congestion prediction model is obtained in advance through training based on sample data.

[0015] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:

[0016] one or more processors;

[0017] A memory for storing one or more programs;

[0018] When the one or more programs are executed by the one or more processors, the one or more processors implement the congestion prediction method provided by any embodiment of the present invention.

[0019] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a congestion prediction method as provided in any embodiment of the present invention.

[0020] The embodiments of the above invention have the following advantages or beneficial effects:

[0021] By inputting the current package flow rate information corresponding to each entrance of the sorting device into the preset congestion prediction model, and based on the output of the preset congestion prediction model, the current congestion prediction result corresponding to each monitoring node in the sorting device can be determined, thereby realizing the advance prediction of the congestion situation so that the congestion can be handled in advance, thereby effectively improving the sorting efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 is a flow chart of a congestion prediction method provided by Embodiment 1 of the present invention;

[0023] Figure 2 is a flow chart of a congestion prediction method provided by Embodiment 2 of the present invention;

[0024] Figure 3 is a structural schematic diagram of a congestion prediction device provided in Embodiment 3 of the present invention;

[0025] Figure 4 It is a structural schematic diagram of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0026] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0027] Embodiment 1

[0028] Figure 1 This is a flow chart of a congestion prediction method provided in the first embodiment of the present invention. This embodiment can be applied to the case of predicting the congestion situation in the sorting equipment in advance. The method can be executed by a congestion prediction device, which can be implemented by software and / or hardware and integrated in an electronic device. Figure 1 As shown, the method specifically comprises the following steps:

[0029] S110, determining the current package flow rate information corresponding to each entrance of the sorting device.

[0030] The sorting device may correspond to multiple entrances. Each entrance may correspond to a scanning device for scanning information of a package. The package to be sorted is scanned by the scanning device and placed at the corresponding entrance. The conveyor belt in the sorting device may convey the package at the entrance to the corresponding exit according to a predetermined route, thereby completing the sorting operation. The current package flow rate information corresponding to each entrance may refer to the scanning frequency of the package being scanned at each entrance, which is used to characterize the frequency of conveying packages at each entrance.

[0031] Specifically, the scanning device can be used to obtain scanning information corresponding to each package scanned at each entrance, and the current package flow rate information corresponding to each entrance can be determined based on the scanning information. For example, for each entrance, the scanning time corresponding to each package currently scanned by the entrance can be obtained, and based on these scanning times, the total number of packages scanned within a preset time period can be determined as the current package flow rate information corresponding to the entrance. For example, the total number of packages scanned within the last minute is used as the current package flow rate corresponding to the entrance.

[0032] S120. Input each current package flow rate information into a preset congestion prediction model, and determine the current congestion prediction result corresponding to each monitoring node in the sorting device according to the output of the preset congestion prediction model; wherein the preset congestion prediction model is obtained in advance based on sample data training.

[0033] Among them, the preset congestion prediction model may refer to a deep neural network model for predicting congestion. For example, the preset congestion prediction model may be any binary classification network model. The monitoring node may refer to a conveyor belt node that needs to be monitored in a sorting device, and its specific location and quantity may be determined based on business needs and actual scenarios. For example, each node on the conveyor belt where congestion most often occurs may be used as a monitoring node. The current congestion prediction result may include two prediction results: a congestion state and a non-congestion state. The congestion state may refer to a state in which it is predicted that the monitoring node will be congested. The non-congestion state may refer to a state in which it is predicted that the monitoring node will not be congested.

[0034] Specifically, the current package flow rate information corresponding to all entrances can be input into the pre-trained preset congestion prediction model for congestion prediction, and the current congestion prediction result corresponding to each monitoring node can be determined according to the output of the preset congestion prediction model. For example, according to the current package flow rate x corresponding to each entrance, the input vector X of the preset congestion prediction model is determined as [x1, x2, ..., x M ], where M is the number of entrances to the sorting device. Correspondingly, the output vector of the preset congestion prediction model is: Y = [y1, y2, ..., y S ], where S is the number of monitoring nodes of the sorting device, and y is the probability of congestion occurring at each monitoring node. This embodiment can detect whether the probability of congestion occurring at each monitoring node is greater than a preset probability. If so, the current congestion prediction result corresponding to the monitoring node is determined to be a congested state. If not, the current congestion prediction result corresponding to the monitoring node is determined to be a non-congested state, thereby predicting the congestion situation of each monitoring node in advance, so that the congestion can be handled in advance later, thereby effectively improving the sorting efficiency.

[0035] The preset congestion prediction model in this embodiment is a model that is pre-trained based on sample data. The preset congestion prediction model can be represented by a deep neural network f(·): Y = f(X). The sample data for training the preset congestion prediction model f(·) can be obtained from actual production. For example, at time node t∈{1, 2, ..., T}, the input of the sorting device and the congestion conditions of each monitoring node are sampled, and the input obtained is X t , the output is Y t For these samples, since it is known whether congestion occurs at each monitoring node, Y t The value of each position in is 0 or 1. The network parameters of the preset congestion prediction model f(·) can be trained based on the collected T training samples using a stochastic gradient descent method to obtain a preset congestion prediction model that can be used to predict congestion conditions.

[0036] The technical solution of this embodiment, by inputting the current package flow rate information corresponding to each entrance of the sorting device into a preset congestion prediction model, and according to the output of the preset congestion prediction model, can determine the current congestion prediction result corresponding to each monitoring node in the sorting device, thereby realizing the advance prediction of the congestion situation, so that the congestion can be handled in advance, thereby effectively improving the sorting efficiency.

[0037] Based on the above technical solution, S110 may include: for each entrance, obtaining the scanning time corresponding to each package among a preset number of packages recently scanned by the entrance; and determining the current package flow rate information corresponding to the entrance based on the scanning time corresponding to each package.

[0038] Specifically, for each entrance, the scanning time of each of the most recently scanned preset number of packages can be obtained from the scanning device, and the current package flow rate information corresponding to the entrance can be determined based on the scanning time corresponding to the most recently scanned same number of packages. For example, the scanning time interval between the first package and the last package of the most recently scanned preset number of packages can be determined as the current package flow rate information corresponding to the entrance.

[0039] Exemplarily, determining the current package flow rate information corresponding to the entrance based on the scanning time corresponding to each package may include: determining the scanning time interval between every two adjacent packages based on the scanning time corresponding to each package; and averaging each scanning time interval to obtain the current package flow rate information corresponding to the entrance.

[0040] Specifically, for the preset number of packages scanned recently, the scanning time interval between each two adjacent packages can be obtained by subtracting the scanning time of the previous package from the scanning time of the next package. All the obtained scanning time intervals are added together and divided by the total number of scanning time intervals, and the division result is obtained as the current package flow rate corresponding to the entrance. For example, the time interval between scanning the i-th package and the i+1-th package at the k-th entrance is Then the current package flow rate corresponding to the kth entrance is: N is the preset number. When the N+1th package in the kth entrance is scanned, the current package flow rate corresponding to the kth entrance is updated to: Thus, by updating the package flow rate in real time, the accuracy of congestion prediction can be ensured. In this embodiment, the moving average of N packages is used as the package flow rate corresponding to the inlet, so that the package flow rate can be more accurately characterized, further ensuring the accuracy of congestion prediction.

[0041] Embodiment 2

[0042] Figure 2This is a flow chart of a congestion prediction method provided in Embodiment 2 of the present invention. Based on the above embodiments, this embodiment adjusts the inlet flow rate of the target monitoring node whose current congestion prediction result is a congestion state to avoid congestion at the target monitoring node. The explanations of the terms that are the same or corresponding to the above embodiments are not repeated here.

[0043] See also Figure 2 The congestion prediction method provided in this embodiment specifically includes the following steps:

[0044] S210: Determine the current package flow rate information corresponding to each entrance of the sorting device.

[0045] S220: Input each current package flow rate information into a preset congestion prediction model, and determine the current congestion prediction result corresponding to each monitoring node in the sorting device according to the output of the preset congestion prediction model.

[0046] S230: Taking the monitoring node whose current congestion prediction result is a congestion state as the target monitoring node.

[0047] The target monitoring node may be a monitoring node that currently needs to adjust the inlet flow rate to avoid congestion. Specifically, this embodiment may obtain each monitoring node whose current congestion prediction result is a congestion state, that is, each monitoring node that is predicted to be congested, and may use any monitoring node as a target monitoring node to adjust the inlet flow rate.

[0048] Exemplarily, S230 may include: if there are at least two monitoring nodes whose current congestion prediction results are in a congested state, obtaining the congestion prediction probability corresponding to each monitoring node whose current congestion prediction result is in a congested state; and taking the monitoring node with the largest congestion prediction probability as the target monitoring node.

[0049] Specifically, by taking the monitoring node with the highest predicted congestion probability as the target monitoring node, the monitoring node with the highest probability of congestion can be adjusted first to avoid congestion at the monitoring node, thereby effectively improving the sorting efficiency. If there are multiple monitoring nodes with the same predicted congestion probability, a monitoring node can be randomly selected as the target monitoring node.

[0050] S240: Determine the weight value of the congestion impact caused by each entrance on the target monitoring node.

[0051] The weight value is used to characterize the impact of the entrance on the congestion of the target monitoring node.

[0052] The parcels in this embodiment usually have different destinations after entering the sorting device from different entrances, so the parcels also have different flow directions in the sorting device. Therefore, although the parcel flow rate of some entrances is faster, the parcels entering the sorting device from these entrances will not pass through certain monitoring nodes, and thus will not affect the congestion of these monitoring nodes. Moreover, multiple entrances may cause congestion in the same monitoring node, but the magnitude of the impact is not necessarily the same. Therefore, when a certain monitoring node is congested, it is necessary to adjust the flow rate from the entrance that can affect the monitoring node, and the adjustment can be made in sequence based on the degree of impact, so as to fundamentally and effectively solve the congestion, avoid congestion in subsequent target monitoring nodes again, and effectively ensure the sorting efficiency.

[0053] Specifically, the preset congestion prediction model is a highly nonlinear complex model, but according to the Taylor series expansion, it can fit a linear component in each local area to intuitively describe the relationship between the various dimensions of input and output. Therefore, this embodiment can perform linear fitting based on the KernelSHAP method in interpretable machine learning, and determine the weight value of the congestion impact of each entrance on the target monitoring node based on the fitting results.

[0054] Exemplarily, S240 may include: randomly generating package flow rate sample information in the vicinity of each current package flow rate information input into a preset congestion prediction model; inputting the package flow rate sample information into the preset congestion prediction model, and obtaining a sample congestion prediction probability corresponding to the target monitoring node based on the output of the preset congestion prediction model; performing linear fitting based on the package flow rate sample information and the corresponding sample congestion prediction probability, and determining the weight value of the congestion impact of each entrance on the target monitoring node based on the fitted linear model.

[0055] Specifically, the current input vector X=[x1, x2, ..., x M ] as the center, randomly generate multiple parcel flow rate samples in the nearby area with a preset length as the radius, and input each parcel flow rate sample into the preset congestion prediction model for congestion prediction, and obtain the sample congestion prediction probability corresponding to the target monitoring node output by the preset congestion prediction model, so as to generate sample data of the current parcel flow rate local area. Linear fitting is performed on each parcel flow rate sample and the corresponding sample congestion prediction probability to obtain a linear model corresponding to the target monitoring node, that is, y = ∑ i φ i X(i)+φ0, the absolute value of the coefficient of each feature in the linear model represents the influence of the corresponding entry on the target monitoring node. In the KernelSHAP method, φ i, i>0 is the Shap value of the i-th entrance, and its absolute value is the weight value of the influence of the i-th entrance on the target monitoring node. By using the above linear fitting method, the influence of each entrance of the sorting device on the congestion of the target monitoring node can be accurately evaluated.

[0056] S250. According to the weight value corresponding to each entrance, the current package flow rate of the entrance is adjusted so that the current congestion prediction result corresponding to the target monitoring node is a non-congested state.

[0057] Specifically, based on the weight value corresponding to each entrance, the flow rate of the entrance that causes a greater impact can be adjusted to slow down the pace of incoming goods, thereby fundamentally avoiding congestion at the target monitoring node and effectively improving the sorting efficiency. Compared with the method of manually clearing the congested monitoring node in the prior art, this embodiment can solve the fundamental problem of congestion by adjusting the entrance sorting rhythm, prevent congestion from happening again, and effectively ensure the sorting efficiency.

[0058] Exemplarily, S250 may include: determining the current adjustment entrance according to the weight value corresponding to each entrance; adjusting the current package flow rate of the current adjustment entrance according to the minimum package flow rate information corresponding to the current adjustment entrance, so that the current congestion prediction result corresponding to the target monitoring node is a non-congested state.

[0059] Among them, since there are certain time requirements when the vehicle unloads, the speed cannot be too slow, so each entrance corresponds to a minimum parcel flow rate, that is, the lower limit of the parcel flow rate. Specifically, an entrance with a weight value greater than zero can be used as the current adjustment entrance. This embodiment can gradually reduce the current parcel flow rate of the current adjustment entrance with a preset step size, under the premise of ensuring that the current parcel flow rate of the current adjustment entrance is greater than or equal to the minimum parcel flow rate, and after each reduction of the current parcel flow rate of the current adjustment entrance, the reduced current parcel flow rate and the current parcel flow rates of other entrances are input into the preset congestion prediction model for re-congestion prediction, directly until the current congestion prediction result corresponding to the target monitoring node is a non-congested state, that is, the probability of congestion at the target monitoring node is less than or equal to the preset probability. By only adjusting the flow rate of the entrance that affects the congestion of the target monitoring node, there is no need to adjust irrelevant entrances, so that the fundamental problem causing congestion can be solved, preventing congestion from occurring again, and effectively improving the sorting efficiency.

[0060] Exemplarily, determining the current adjustment entry according to the weight value corresponding to each entry may include: sorting the weight values ​​corresponding to each entry, and determining the entry with the largest weight value as the current adjustment entry.

[0061] Specifically, all entrances can be sorted in descending order of weight value, and the first entrance after sorting can be used as the current adjustment entrance so that the flow rate of the entrance with the greatest impact can be adjusted first, thereby resolving the predicted congestion problem of the target monitoring node as soon as possible and preventing the congestion of the target monitoring node from being predicted again.

[0062] Exemplarily, according to the minimum package flow rate information corresponding to the current regulation entrance, the current package flow rate of the current regulation entrance is adjusted so that the current congestion prediction result corresponding to the target monitoring node is a non-congested state, which may include: if the current package flow rate of the current regulation entrance is adjusted to the corresponding minimum package flow rate, the current congestion prediction result corresponding to the target monitoring node is still a congested state, then the next regulation entrance is determined, and based on the minimum package flow rate information corresponding to the next regulation entrance, the current package flow rate of the next regulation entrance is adjusted until the congestion prediction result corresponding to the target monitoring node is a non-congested state.

[0063] Specifically, when the current package flow rate of the current adjustment entrance is adjusted to the corresponding minimum package flow rate, the current congestion prediction result corresponding to the target monitoring node is still a congested state (that is, the probability of congestion at the target monitoring node is greater than the preset probability), then the current package flow rate of the current adjustment entrance can be adjusted to the corresponding minimum package flow rate and remain unchanged, and according to the above-mentioned entrance sorting, the second entrance is used as the next adjustment entrance, that is, the entrance with the second greatest impact on the target monitoring node is used as the next adjustment entrance, and according to the above-mentioned similar adjustment method, based on the minimum package flow rate information corresponding to the next adjustment entrance, the current package flow rate of the next adjustment entrance is adjusted, and so on, until the congestion prediction result corresponding to the target monitoring node is a non-congested state.

[0064] It should be noted that in the actual application environment, the preset congestion prediction model cannot guarantee complete accuracy, and missed detection may occur. Therefore, computer vision can also be used to simultaneously detect congestion at each monitoring node in the sorting device, so as to timely find the monitoring nodes where the preset congestion prediction model predicts that there will be no congestion, but in fact there is congestion. In view of this situation, the monitoring node where congestion has occurred can be used as the target monitoring node, and the current package flow rate of each entrance can be obtained to determine the input vector X, and the label Y(s) corresponding to the target monitoring node is set to 1, and the entrance flow rate operation of the above steps S240-S250 is performed, so as to solve the fundamental problem causing congestion, avoid the subsequent congestion of the target monitoring node, and effectively ensure the sorting efficiency.

[0065] The technical solution of this embodiment determines the weight value of the congestion impact caused by each entrance on the target monitoring node whose current congestion prediction result is a congested state, and adjusts the current package flow rate of the entrance according to the weight value corresponding to each entrance, so that the current congestion prediction result corresponding to the target monitoring node is a non-congested state. This can solve the fundamental problem causing congestion by adjusting the entrance sorting rhythm, prevent congestion from happening again, and effectively ensure sorting efficiency.

[0066] The following is an embodiment of a congestion prediction device provided by an embodiment of the present invention. The device and the congestion prediction methods of the above embodiments belong to the same inventive concept. For details not described in detail in the embodiment of the congestion prediction device, reference can be made to the embodiment of the above congestion prediction method.

[0067] Embodiment 3

[0068] Figure 3 This is a structural diagram of a congestion prediction device provided in Example 3 of the present invention. This embodiment is applicable to the situation of making advance predictions of congestion conditions in sorting equipment. The device specifically includes: a current package flow rate information determination module 310 and a current congestion prediction result determination module 320.

[0069] Among them, the current package flow rate information determination module 310 is used to determine the current package flow rate information corresponding to each entrance of the sorting device; the current congestion prediction result determination module 320 is used to input each current package flow rate information into the preset congestion prediction model, and determine the current congestion prediction result corresponding to each monitoring node in the sorting device according to the output of the preset congestion prediction model; wherein the preset congestion prediction model is obtained in advance based on sample data training.

[0070] Optionally, the current package flow rate information determination module 310 includes:

[0071] A scanning time acquisition unit, used for acquiring, for each entrance, a scanning time corresponding to each package among a preset number of packages recently scanned by the entrance;

[0072] The current package flow rate information determining unit is used to determine the current package flow rate information corresponding to the entrance according to the scanning time corresponding to each package.

[0073] Optionally, the current package flow rate information determination unit is specifically used to: determine the scanning time interval between every two adjacent packages according to the scanning time corresponding to each package; and average each scanning time interval to obtain the current package flow rate information corresponding to the entrance.

[0074] Optionally, the device further comprises:

[0075] A target monitoring node determination module is used to determine the current congestion prediction result corresponding to each monitoring node in the sorting device and then use the monitoring node whose current congestion prediction result is a congestion state as the target monitoring node;

[0076] A weight value determination module, used to determine the weight value of the congestion impact caused by each entrance on the target monitoring node;

[0077] The flow rate adjustment module is used to adjust the current package flow rate of the entrance according to the weight value corresponding to each entrance, so that the current congestion prediction result corresponding to the target monitoring node is a non-congested state.

[0078] Optionally, the target monitoring node determination module is specifically used to: if there are at least two monitoring nodes whose current congestion prediction results are in a congested state, obtain the congestion prediction probability corresponding to each monitoring node whose current congestion prediction result is in a congested state; and take the monitoring node with the largest congestion prediction probability as the target monitoring node.

[0079] Optionally, the weight value determination module is specifically used to: randomly generate package flow rate sample information in the vicinity of each current package flow rate information input into the preset congestion prediction model; input the package flow rate sample information into the preset congestion prediction model, and obtain the sample congestion prediction probability corresponding to the target monitoring node based on the output of the preset congestion prediction model; perform linear fitting based on the package flow rate sample information and the corresponding sample congestion prediction probability, and determine the weight value of the congestion impact of each entrance on the target monitoring node based on the fitted linear model.

[0080] Optionally, the flow rate regulating module comprises:

[0081] A current adjustment entry determination unit, used to determine the current adjustment entry according to the weight value corresponding to each entry;

[0082] The flow rate regulating unit is used to adjust the current package flow rate of the current regulating entrance according to the minimum package flow rate information corresponding to the current regulating entrance, so that the current congestion prediction result corresponding to the target monitoring node is a non-congested state.

[0083] Optionally, the current adjustment entry determination unit is specifically used to: sort the weight values ​​corresponding to each entry, and determine the entry with the largest weight value as the current adjustment entry.

[0084] Optionally, the flow rate regulation unit is specifically used to: if the current package flow rate of the current regulation entrance is adjusted to the corresponding minimum package flow rate, and the current congestion prediction result corresponding to the target monitoring node is still in a congested state, then determine the next regulation entrance, and based on the minimum package flow rate information corresponding to the next regulation entrance, adjust the current package flow rate of the next regulation entrance until the congestion prediction result corresponding to the target monitoring node is in a non-congested state.

[0085] The congestion prediction device provided in the embodiment of the present invention can execute the congestion prediction method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the congestion prediction method.

[0086] It is worth noting that in the embodiment of the above-mentioned congestion prediction device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0087] Embodiment 4

[0088] Figure 4 A schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. Figure 4 A block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 4 The electronic device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0089] like Figure 4 As shown, the electronic device 12 is in the form of a general purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).

[0090] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0091] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.

[0092] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 4 not shown, usually called a "hard drive"). Although Figure 4 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0093] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.

[0094] The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), may communicate with one or more devices that enable a user to interact with the electronic device 12, and / or may communicate with any device that enables the electronic device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the electronic device 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0095] The processing unit 16 executes various functional applications and data processing by running the program stored in the system memory 28, for example, implementing a congestion prediction method provided by the embodiment of the present invention, the method comprising:

[0096] Determine the current package flow rate information corresponding to each entrance of the sorting device;

[0097] Input each current package flow rate information into a preset congestion prediction model, and determine the current congestion prediction result corresponding to each monitoring node in the sorting device according to the output of the preset congestion prediction model;

[0098] Among them, the preset congestion prediction model is obtained in advance through training based on sample data.

[0099] Of course, those skilled in the art can understand that the processor can also implement the technical solution of the congestion prediction method provided by any embodiment of the present invention.

[0100] Embodiment 5

[0101] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the congestion prediction method steps provided in any embodiment of the present invention are implemented. The method includes:

[0102] Determine the current package flow rate information corresponding to each entrance of the sorting device;

[0103] Input each current package flow rate information into a preset congestion prediction model, and determine the current congestion prediction result corresponding to each monitoring node in the sorting device according to the output of the preset congestion prediction model;

[0104] Among them, the preset congestion prediction model is obtained in advance through training based on sample data.

[0105] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0106] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0107] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0108] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0109] It should be understood by those skilled in the art that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0110] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A congestion prediction method, characterized in that: include: Determine the current parcel flow rate information corresponding to each entrance of the sorting device; the current parcel flow rate information corresponding to each entrance is the scanning frequency at which the parcels are scanned at each entrance, and the scanning frequency is used to characterize the frequency at which the parcels are transmitted at each entrance; Inputting each of the current package flow rate information into a preset congestion prediction model, and determining the current congestion prediction result corresponding to each monitoring node in the sorting device according to the output of the preset congestion prediction model; The preset congestion prediction model is obtained in advance through training based on sample data.

2. The method according to claim 1, characterized in that The determining of the current package flow rate information corresponding to each entrance of the sorting device includes: For each entrance, obtain the scanning time corresponding to each package in a preset number of packages recently scanned by the entrance; According to the scanning time corresponding to each package, the current package flow rate information corresponding to the entrance is determined.

3. The method according to claim 2, characterized in that The determining, according to the scanning time corresponding to each package, the current package flow rate information corresponding to the entrance includes: According to the scanning time corresponding to each package, determine the scanning time interval between every two adjacent packages; The scanning time intervals are averaged to obtain the current package flow rate information corresponding to the entrance.

4. The method according to any one of claims 1 to 3, characterized in that: After determining the current congestion prediction result corresponding to each monitoring node in the sorting device, the method further includes: The monitoring node whose current congestion prediction result is a congestion state is taken as the target monitoring node; Determine a weight value of the congestion impact caused by each entrance to the target monitoring node; According to the weight value corresponding to each entrance, the current package flow rate of the entrance is adjusted so that the current congestion prediction result corresponding to the target monitoring node is a non-congested state.

5. The method according to claim 4, characterized in that The monitoring nodes whose current congestion prediction results are congestion states are used as target monitoring nodes, including: If there are at least two monitoring nodes whose current congestion prediction results are in a congested state, obtaining the congestion prediction probability corresponding to each monitoring node whose current congestion prediction result is in a congested state; The monitoring node with the highest congestion prediction probability is taken as the target monitoring node.

6. The method according to claim 4, characterized in that The determining of the weight value of the congestion impact caused by each entrance on the target monitoring node includes: Randomly generate parcel flow rate sample information in the vicinity of each current parcel flow rate information input into the preset congestion prediction model; Inputting the package flow rate sample information into the preset congestion prediction model, and obtaining the sample congestion prediction probability corresponding to the target monitoring node according to the output of the preset congestion prediction model; A linear fit is performed based on the package flow rate sample information and the corresponding sample congestion prediction probability, and a weight value of the congestion impact of each entrance on the target monitoring node is determined based on the fitted linear model.

7. The method according to claim 4, characterized in that The step of adjusting the current package flow rate of the entrance according to the weight value corresponding to each entrance so that the current congestion prediction result corresponding to the target monitoring node is a non-congested state includes: According to the weight value corresponding to each entrance, determine the current adjustment entrance; According to the minimum package flow rate information corresponding to the current adjustment entrance, the current package flow rate of the current adjustment entrance is adjusted so that the current congestion prediction result corresponding to the target monitoring node is a non-congested state.

8. The method according to claim 7, characterized in that The step of determining the current adjustment entry according to the weight value corresponding to each entry includes: The weight values ​​corresponding to each entrance are sorted, and the entrance with the largest weight value is determined as the current adjustment entrance.

9. The method according to claim 7, characterized in that: The step of adjusting the current package flow rate of the current adjustment entrance according to the minimum package flow rate information corresponding to the current adjustment entrance so that the current congestion prediction result corresponding to the target monitoring node is a non-congested state includes: If the current package flow rate of the current adjustment entrance is adjusted to the corresponding minimum package flow rate, and the current congestion prediction result corresponding to the target monitoring node is still in a congested state, the next adjustment entrance is determined, and based on the minimum package flow rate information corresponding to the next adjustment entrance, the current package flow rate of the next adjustment entrance is adjusted until the congestion prediction result corresponding to the target monitoring node is in a non-congested state.

10. A congestion prediction device, characterized in that: include: The current parcel flow rate information determination module is used to determine the current parcel flow rate information corresponding to each entrance of the sorting device; the current parcel flow rate information corresponding to each entrance is the scanning frequency of the parcels scanned at each entrance, and the scanning frequency is used to characterize the frequency of the parcels transmitted at each entrance; A current congestion prediction result determination module, used to input each of the current package flow rate information into a preset congestion prediction model, and determine the current congestion prediction result corresponding to each monitoring node in the sorting device according to the output of the preset congestion prediction model; The preset congestion prediction model is obtained in advance through training based on sample data.

11. An electronic device, characterized in that: The electronic device comprises: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the congestion prediction method as described in any one of claims 1-9.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the congestion prediction method as described in any one of claims 1 to 9 is implemented.