A cloud-edge collaboration-based warehouse abnormal inventory early warning method and system
By using drone image acquisition and cloud-edge collaboration technology, the problem of insufficient data coverage in warehouse inventory monitoring has been solved, enabling real-time and accurate inventory early warning and intelligent replenishment, thereby improving warehouse operation efficiency.
Patent Information
- Application Number
- CN202611677158.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-28
- Publication Date
- 2026-11-27
AI Technical Summary
In existing warehouse inventory monitoring, fixed terminals are difficult to cover high-rise or obstructed areas, resulting in data lag, delayed early warning response, and consequently, reduced cargo turnover efficiency and customer experience.
By using inspection drones to collect images, combined with edge computing and cloud management, three-dimensional spatial coordinate mapping and inventory comparison are achieved, a replenishment demand list is generated, and a robotic arm is used to perform warehousing and shelving scheduling.
It enables real-time and accurate early warning and intelligent replenishment decisions for warehouse inventory, improving the automation level of warehousing operations and resource allocation efficiency, and reducing the risk of inventory backlog and stockouts.
Smart Images

Figure CN123180906A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of warehouse management technology, and in particular to a method and system for early warning of abnormal inventory in warehouses based on cloud-edge collaboration. Background Technology
[0002] In existing warehouse inventory monitoring practices, a typical approach is to deploy fixed radio frequency identification (RFID) reader terminals or image acquisition devices in fixed locations in the shelving area. The inventory quantity information of each shelf is obtained through periodic polling or triggered scanning, and then the quantity information is uploaded to the back-end management module for recording and threshold comparison.
[0003] However, the above approach has some limitations in practical applications. Since the sensing range of fixed terminals is mostly limited by their installation location and orientation, it is difficult to achieve complete coverage of high-level, deep-level, or obstructed areas in warehouse racking, leading to missing or untimely updates of inventory data for some racks. Furthermore, the collection frequency of fixed equipment is usually determined by a preset polling cycle. When the pace of warehousing operations accelerates or the frequency of goods turnover increases, inventory changes occurring between two consecutive collections may not be captured in time. This results in a time lag between the inventory data used by the back-end management module and the actual inventory status at the rack. This data lag means that when the back-end compares the inventory data with inventory thresholds, it may not be able to generate timely warnings when the inventory actually falls below the safety level. This affects the timing of replenishment decisions. In businesses with high inventory turnover, the delay in warning response may lengthen the stockout window, negatively impacting downstream fulfillment timeliness and customer experience. Summary of the Invention
[0004] This invention provides a cloud-edge collaborative method and system for early warning of abnormal inventory in warehousing, which improves the real-time performance, accuracy and intelligence of inventory anomaly response, and realizes closed-loop management from perception to disposal.
[0005] To solve the above-mentioned technical problems, the technical solution of the present invention is as follows: Firstly, a cloud-edge collaborative method for early warning of abnormal inventory in warehousing, comprising: Control the inspection drone to fly along the preset cruise route in the warehouse racking area, collect images of the goods placement status at each rack location, and obtain a multi-frame inspection image sequence; A multi-frame inspection image sequence is sent to the edge computing node to detect and locate the target area of goods at each storage compartment and determine the goods category number; depth estimation is performed on the target area of goods corresponding to the goods category number, and the two-dimensional image coordinates are mapped to three-dimensional spatial coordinates to obtain three-dimensional spatial coordinate information. Based on the three-dimensional spatial coordinate information, with the center of the corresponding cargo cell as the origin, the three-dimensional spatial coordinates are mapped to a standardized voxel grid space formed by equilateral cube grid cells. Based on the number of grid cells occupied by the cargo after mapping, the actual cargo inventory data is obtained and uploaded to the cloud management platform. Through the cloud management platform, the actual inventory data of goods is compared with the preset inventory threshold of the corresponding storage location. When the actual inventory data of goods is lower than the preset inventory threshold, an abnormal inventory warning sign is obtained. Based on the abnormal inventory warning sign, retrieve the historical sales record data associated with the corresponding product category number and conduct multi-dimensional correlation analysis with objective quality feedback indicators to obtain the replenishment demand and replenishment priority ranking results. Based on the replenishment demand and replenishment priority ranking, a standardized replenishment list is generated, and the robotic arm's warehouse entry and shelving scheduling instruction is obtained according to the target storage location corresponding to each item category number in the standardized replenishment list.
[0006] Secondly, a cloud-edge collaborative warehouse abnormal inventory early warning system includes: The data acquisition module is used to control the inspection drone to fly along the preset cruise route in the warehouse racking area, and to acquire images of the goods placement status at each storage compartment to obtain a multi-frame inspection image sequence. The processing module is used to send a multi-frame inspection image sequence to the edge computing node, detect and locate the target area of goods at each storage compartment, determine the goods category number, perform depth estimation on the target area of goods corresponding to the goods category number, and map the two-dimensional image coordinates to three-dimensional spatial coordinates to obtain three-dimensional spatial coordinate information. The conversion module is used to map the three-dimensional spatial coordinates to a standardized voxel grid space formed by equilateral cube grid units, with the center of the corresponding cargo cell as the origin, based on the three-dimensional spatial coordinate information. Based on the number of grid units occupied by the cargo after mapping, the actual cargo inventory data is obtained and uploaded to the cloud management platform. The comparison module is used to compare the actual inventory data of goods with the preset inventory threshold of the corresponding storage compartment through the cloud management platform. When the actual inventory data of goods is lower than the preset inventory threshold, an abnormal inventory warning sign is obtained. The decision module is used to retrieve historical sales record data associated with the corresponding product category number and objective quality feedback indicators based on the abnormal inventory warning indicator, and perform multi-dimensional correlation analysis to obtain the replenishment demand and replenishment priority ranking results. The instruction module is used to generate a standardized replenishment list based on the replenishment demand and replenishment priority, and to obtain the robotic arm's warehouse entry and shelving scheduling instruction based on the target storage location corresponding to each item category number in the standardized replenishment list.
[0007] Thirdly, a computer-readable storage medium storing a program that, when executed by a processor, implements the method.
[0008] The above-described solution of the present invention has at least the following beneficial effects: Through a cloud-edge collaborative architecture, multi-frame images collected by drone inspections are processed at edge computing nodes. Depth estimation is used to convert two-dimensional image coordinates into three-dimensional spatial coordinates and map them to a standardized cubic grid space. The actual inventory of goods is calculated based on the grid cell occupancy, effectively mitigating statistical biases caused by occlusion and irregular stacking during fixed-view visual inventory checks. Simultaneously, the cloud triggers anomaly warnings based on inventory data and performs multi-dimensional correlation analysis with historical sales records and customer reviews to determine replenishment demand and priorities. The generated replenishment list can control robotic arms to perform inbound and shelving scheduling according to the target storage cell location, achieving closed-loop management of the entire process from inventory perception and intelligent anomaly warning to replenishment decision optimization. This reduces the risk of inventory backlog and stockouts while improving the automation level and resource allocation efficiency of warehousing operations. Attached Figure Description
[0009] Figure 1 This is a flowchart illustrating a cloud-edge collaborative method for early warning of abnormal inventory in warehousing, provided by an embodiment of the present invention.
[0010] Figure 2 This is a line graph showing the historical sales trend and future forecast provided by an embodiment of the present invention.
[0011] Figure 3 This is a schematic diagram of a cloud-edge collaborative warehouse abnormal inventory early warning system provided by an embodiment of the present invention. Detailed Implementation
[0012] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
[0013] To make the technical solution and working process of this embodiment clearer, the following describes a cloud-edge collaborative method and system for early warning of abnormal inventory in warehousing, in conjunction with the collaborative process of warehouse racks, inspection drones, edge computing nodes, cloud management platforms and robotic arms. The implementation method is used to illustrate the data relationship, processing order and abnormal handling method between the various technical objects. The same technical object is referred to by the same name in different implementation methods.
[0014] In this embodiment, a storage cell is a storage unit on a shelf with defined physical capacity boundaries. Each storage cell has a unique cell number, and the storage configuration database stores the cell center point, length direction, width direction, height direction, physical length, width, and height dimensions, as well as the associated goods category number. The goods category number is used to distinguish different types of goods. The same goods category number is associated with the standard volume of a single item, inventory threshold, historical sales record data, and objective quality feedback indicators. The actual inventory data of goods represents the volume equivalent inventory calculated based on the volume occupied by the goods within the physical capacity space of the storage cell. For goods managed by number of items, it can also be converted into the number of items inventory according to the rounding rules of the corresponding goods category.
[0015] The inspection drone is equipped with an image acquisition device, a pose measurement device, and a wireless communication device. The image acquisition device is used to obtain continuous images of the opening surface of the storage compartment. The pose measurement device is used to output the position and attitude parameters of the inspection drone in the warehouse world coordinate system. The wireless communication device is used to send the images, pose parameters, timestamps, storage compartment numbers, and inspection batch identifiers to the edge computing nodes. The edge computing nodes are deployed on the warehouse site to complete image preprocessing, cargo inspection, cargo category retrieval, depth estimation, 3D coordinate generation, point cloud fusion, and inventory conversion. The cloud management platform is used to maintain the warehouse configuration database, sales data, and quality feedback data, and to perform anomaly comparison, replenishment demand calculation, task sorting, and robotic arm inbound and shelving scheduling.
[0016] The edge computing nodes and the cloud management platform exchange data asynchronously via messaging. Each message carries an inspection batch identifier, a storage compartment number, a goods category number, a data generation timestamp, a processing version identifier, and message verification information. The cloud management platform uses the combination of the inspection batch identifier, storage compartment number, and goods category number as the idempotent key for the inventory result. When data with the same idempotent key is received repeatedly, the more recent version of the valid result is retained. When message verification fails or a field is missing, the inventory status is not updated, and the information is returned to the edge computing node for retransmission. This avoids the same inventory result being counted repeatedly due to link retransmission.
[0017] like Figure 1 As shown, this implementation method starts with the acquisition of inspection images and sequentially obtains three-dimensional spatial coordinate information, actual inventory data of goods, abnormal inventory warning signs, replenishment demand, replenishment priority ranking results, standardized replenishment list, and robotic arm warehouse entry and shelving scheduling instructions.
[0018] The cloud management platform or the task control terminal at the warehouse site reads the rack layout topology and storage cell location spatial distribution information from the warehouse configuration database. The rack layout topology records the access connections between racks, permitted flight areas, and prohibited areas. The storage cell location spatial distribution information records the center position, normal direction, size boundaries, and storage cell number of each storage cell opening. The task control terminal forms a set of candidate waypoints based on the permitted flight areas, and for each storage cell location, selects a waypoint from the candidate waypoint set whose camera field of view can cover the storage cell opening and whose inspection drone body does not enter the prohibited area, thus obtaining the target waypoint corresponding to the storage cell number.
[0019] When multiple available waypoints exist for the same cargo compartment location, the mission control terminal calculates the distance from each available waypoint to the center of the cargo compartment opening, the angle between the camera optical axis and the normal of the cargo compartment opening, and the path length required to fly from the previous waypoint to this waypoint. It then filters out waypoints that exceed the effective imaging range, whose angle does not meet the frontal acquisition conditions, or whose flight path passes through a prohibited area according to a pre-set evaluation order. Among the remaining waypoints, the waypoint with the smaller angle between the camera optical axis and the normal of the cargo compartment opening is selected first. If the angles are the same, the waypoint with the shorter flight path length is selected. If they are still the same, the waypoints are selected according to their waypoint numbers, thereby obtaining the determined target waypoints and gimbal pitch angle parameters.
[0020] When establishing route node relationships based on the layout topology, the task control terminal registers channel intersections, permissible turning positions, target waypoints, and inspection start and end positions as route nodes. It checks each pair of straight-line connecting segments between route nodes to ensure they are all within the permitted flight area and maintain a safe distance from overhead racks and fixed obstacles. If the check passes, a bidirectional connecting edge is established between the two route nodes, and the length of the connecting segment is recorded as the edge path length. For the inspection start node, its cumulative path length is initialized to 0, and the cumulative path lengths of other nodes are initialized to an undetermined state. The system repeatedly reads data from nodes that have not yet completed expansion. Take the node with the smallest cumulative path length, and add the cumulative path length of the node to the edge path length of its adjacent connecting edges one by one. If the sum is less than the cumulative path length already registered by the adjacent node or if the adjacent node has not yet registered a cumulative path length, update the adjacent node with the sum and record the current node as the predecessor node of the adjacent node, until the target waypoint is expanded or there are no unexpanded nodes with a determined cumulative path length. When the target waypoint is expanded, backtrack from the target waypoint to the inspection start node according to the predecessor node and reverse the backtracking order to obtain the connecting flight segment to the target waypoint. If there are no expandable nodes, the target waypoint is determined to be unreachable.
[0021] When the task control terminal forms an access order covering multiple target waypoints, it takes the inspection start node as the current node, reads the connecting segments from the current node to each unvisited target waypoint, selects the target waypoint with the shortest path length as the next target waypoint, and determines the next target waypoint according to the order of cargo cell number when the path lengths are the same. The target waypoint is moved from the unvisited set to the visited set and becomes the new current node. The process of reading connecting segments, selecting the next target waypoint, and updating the set is repeated until the unvisited set is empty. The task control terminal then concatenates the connecting segments obtained from each selection, deletes the nodes with duplicate beginnings and ends of adjacent connecting segments, and checks whether the concatenated route has failed segments caused by the update of prohibited areas, thus obtaining the preset cruise route. This process clarifies the node initialization, cumulative path update, parallel selection, backtracking, and stopping conditions.
[0022] The task control terminal arranges each target waypoint according to the connectivity of the rack aisles, and generates connecting segments between adjacent target waypoints that avoid rack boundaries and fixed obstacles, forming a waypoint list covering the storage cells to be inspected. When a target waypoint is unreachable, the storage cell number corresponding to the target waypoint is written into the supplementary collection package, and the unreachable waypoint is not added to the current waypoint list. After the current inspection batch is completed, the supplementary collection route is replanned or an on-site verification task is generated based on the supplementary collection package, thereby avoiding the interruption of the entire inspection process due to the failure of waypoint planning for a single storage cell.
[0023] After receiving the waypoint list, the inspection drone flies to each target waypoint in sequence. Upon reaching the target waypoint, it reduces its flight speed and enters a hovering state, while simultaneously rotating the gimbal to the attitude indicated by the pitch angle parameter associated with that target waypoint. The attitude measurement device continuously outputs the drone's position and attitude. When multiple consecutively obtained position parameters fall within the position tolerance range of the target waypoint and multiple attitude parameters fall within the angle tolerance range of the target attitude, the inspection drone is determined to be in a stable hovering shooting attitude. The position tolerance range, angle tolerance range, and number of consecutive judgments are predetermined through drone vibration calibration and image sharpness testing.
[0024] Under stable hovering shooting posture, the image acquisition device continuously acquires images of the inside of the cargo compartment according to the exposure parameters corresponding to the on-site lighting conditions. The exposure parameters can be selected by the edge computing node from a preset set of exposure parameters based on the image brightness distribution. Specifically, the edge computing node counts the proportion of pixels in the effective grayscale range in the preview image. When the proportion is lower than the exposure qualification condition, the candidate exposure parameters are switched sequentially and the preview image is re-acquired until the effective pixel proportion meets the exposure qualification condition or the candidate exposure parameter set is traversed. If the condition is still not met after traversal, the cargo compartment is marked as having abnormal lighting and added to the collection set to be supplemented.
[0025] The image acquisition device binds a timestamp, cargo cell number, waypoint number, inspection batch identifier, camera internal parameter version, and UAV pose parameters corresponding to the acquisition time to each frame of image. The images of the same cargo cell are arranged according to the timestamp to obtain a multi-frame inspection image sequence with spatial index identifier. When the timestamp interval between adjacent images exceeds the acquisition interval tolerance or the pose parameters are missing, the edge computing node marks the corresponding image as an invalid frame and requests a replacement, ensuring that the image, pose, and cargo cell position used in subsequent processing can correspond one-to-one.
[0026] Since waypoints, gimbal attitude, and cargo cell number are bound together during the acquisition phase, the multi-frame inspection image sequence not only preserves the cargo placement status but also the spatial position and acquisition order of each image. Therefore, it can provide a data foundation for unifying the three-dimensional coordinates in different frames into the same warehouse world coordinate system and reduce confusion about cargo cell ownership caused by changes in the drone's shooting position.
[0027] After receiving a sequence of multiple inspection images, the edge computing node reads the corresponding camera intrinsic parameters and lens distortion parameters according to the camera's internal parameter version, performs distortion correction mapping on the pixel positions in each image, and obtains a geometrically corrected image. The edge computing node then statistically analyzes the brightness distribution of the geometrically corrected image, normalizes the brightness channel according to the reference brightness range, and adjusts the local contrast without changing the edge position of the goods to obtain a standard inspection image. If the image blurriness, overexposed pixel ratio, or underexposed pixel ratio does not meet the preset validity conditions, the image is marked as an invalid image and will not participate in subsequent 3D fusion.
[0028] During the distortion correction mapping process, the edge computing node reads the lateral focal length, vertical focal length, and principal point position from the camera intrinsic parameters. It subtracts the principal point's lateral coordinate from the original pixel's lateral coordinate and divides the result by the lateral focal length. Similarly, it subtracts the principal point's vertical coordinate from the original pixel's vertical coordinate and divides the result by the vertical focal length to obtain the initial coordinates on the normalized plane. The square of the initial lateral coordinate is added to the square of the initial vertical coordinate to obtain the squared radial distance. The radial displacement is calculated based on the squared radial distance and the radial distortion coefficient obtained from lens calibration. Finally, the tangential distortion coefficient is calculated... The tangential displacement is calculated by subtracting the radial and tangential displacements from the initial coordinates round by round, and using the coordinates obtained in the current round as the input for the next round. The process stops when the difference between the coordinates of two adjacent rounds is less than the distortion correction stopping threshold or when the number of rounds reaches the upper limit. After stopping, the normalized coordinates are multiplied by the corresponding focal length and added back to the principal point coordinates to obtain the original image sampling position corresponding to each output pixel in the geometrically corrected image. When the sampling position is located between adjacent original pixels, the contribution ratio is allocated according to the horizontal and vertical distances from the sampling position to the adjacent pixels, and the adjacent pixel values are weighted and summed to obtain the output pixel value.
[0029] When performing illumination normalization enhancement, the edge computing node first sums the brightness values of all effective pixels within the grid area and divides them by the number of effective pixels to obtain the current average brightness. Then, it calculates the difference between each brightness value and the current average brightness, adds the squares of each difference, divides them by the number of effective pixels, and takes the square root to obtain the current brightness dispersion. When the current brightness dispersion is not zero, it subtracts the current average brightness from the brightness value of each pixel and divides it by the current brightness dispersion to obtain a standard brightness value that maintains the brightness order of pixels. The standard brightness value is multiplied by the reference brightness dispersion and added to the reference average brightness to obtain the normalized brightness. When the current brightness dispersion is zero, the image is marked as lacking texture variation, and no category retrieval based on this image is performed. When the normalized brightness exceeds the image's allowed value boundary, it is restricted to the corresponding boundary. Then, in each local neighborhood, a low-end reference value and a high-end reference value are determined according to the brightness order. The current pixel is mapped to the local effective brightness range based on its relative position between the two reference values, thus obtaining the standard inspection image.
[0030] The edge computing node inputs the standard inspection image into the cargo instance segmentation network. The instance segmentation network outputs pixel-level masks, pixel-level bounding boxes, category candidate information, and detection confidence information for each candidate cargo instance. The edge computing node first removes candidate cargo instances located outside the target cargo cell based on the pixel projection range of the cargo cell opening surface, and then deletes candidate cargo instances whose effective pixel count is lower than the contour integrity condition to obtain the cargo target region within the cargo cell area. The pixel-level mask is used to limit the pixels that actually belong to the cargo surface, and the pixel-level bounding box is used to limit the processing range of subsequent depth estimation.
[0031] The instance segmentation network comprises a layer-by-layer feature extraction part, a multi-scale feature merging part, a candidate region generation part, and a mask output part. The layer-by-layer feature extraction part reads the corresponding local window for each output position in the input feature map, multiplies each channel element in the local window with the coefficients corresponding to the position and channel in the convolution kernel, adds the products and adds a bias, and obtains the feature value of the output position after non-linear activation. The same rule is used to traverse all output positions to obtain the next layer feature map. When it is necessary to reduce the feature map, the feature map is divided into local regions and the representative value of each local region is read. When it is necessary to restore the spatial resolution, the adjacent feature values are interpolated according to the relative distance between the target output position and the adjacent low-resolution feature positions to obtain a high-resolution feature map corresponding to the spatial position of the standard inspection image.
[0032] The multi-scale feature merging part arranges high-level semantic features and low-level contour features with the same cargo grid image position by channel and obtains fused features through position-by-position convolution. The candidate region generation part outputs the cargo presence degree, bounding box center offset, and boundary size for each candidate position in the fused features. Positions where the cargo presence degree meets the candidate condition are converted into candidate bounding boxes. Then, according to the overlap ratio between candidate bounding boxes, they are processed sequentially from high presence degree to low presence degree. After retaining the current candidate bounding box, the remaining candidate bounding boxes that have an overlap ratio with the current candidate bounding box that meets the duplication condition are deleted until the candidate set is empty. The mask output part extracts the region features corresponding to each retained candidate bounding box from the fused features. For each pixel in the region feature, it outputs the probability that it belongs to the current cargo instance. Pixels whose probabilities meet the mask conditions form a pixel-level mask. The horizontal and vertical extreme values of the coordinates of each pixel outside the mask form a pixel-level bounding box.
[0033] When training the segmentation network, the training end inputs the labeled image into the network to obtain the predicted presence degree of goods, the predicted bounding box, and the predicted pixel mask. It compares the predicted presence degree of goods with the labeled presence state at each candidate position to obtain the presence state difference. It calculates and sums the absolute differences between the coordinates of each boundary of the predicted bounding box and the corresponding coordinates of the labeled bounding box to obtain the boundary position difference. It reads the goods state of the labeled mask and the corresponding state probability output by the network pixel by pixel. Based on the relationship that the lower the probability of the correct state, the greater the difference, it obtains the pixel mask difference. It adds up the mask differences of all valid pixels and divides by the number of valid pixels. The training end merges the presence state difference, boundary position difference, and pixel mask difference according to a preset contribution ratio to obtain the training evaluation result for this round. Based on the training evaluation result for this round, it updates the convolution kernel coefficients, bias, and feature merging parameters layer by layer in the direction that reduces the evaluation result. It then uses the updated parameters to process the next batch of training samples. Training stops when the evaluation result of the validation samples no longer decreases for several consecutive validation cycles or reaches the upper limit of the training rounds, and the parameter version with the smaller validation result is saved.
[0034] A pre-built warehouse cargo feature library stores confirmed reference visual features and their acquisition conditions according to cargo category numbers. Edge computing nodes extract combined visual features of shape, texture, and color channels from each cargo target area, map the combined visual features to the same feature space as the reference visual features, and calculate the matching degree between the combined visual features and each reference visual feature. The edge computing nodes determine the reference visual features whose matching degree meets the category retrieval conditions as candidate matching items, and determine the target matching item from the candidate matching items according to the matching degree. When multiple candidate matching items have the same matching degree, they are filtered according to the set of allowed cargo categories pre-bound to the cargo cell location. If there are still multiple matching items, the category is not forcibly determined, but the category identifier to be verified is output.
[0035] The specific process of forming the combined visual features is as follows: the edge computing node extracts the pixels inside the cargo based on the pixel-level mask, reads the coordinates of adjacent boundary points along the boundary of the pixel-level mask in a fixed direction, calculates the directional change and length ratio of adjacent boundary segments respectively, and accumulates them according to the directional interval to obtain the contour features; the pixels inside the cargo are counted according to the preset color intervals, and the number of pixels in each color interval is divided by the total number of effective pixels inside the cargo to obtain the color distribution features; local texture windows are set inside the cargo, and the brightness relationship between the center pixel and the surrounding pixels is calculated window by window. The corresponding texture states are counted according to the relationship, and the number of each texture state is divided by the number of effective windows to obtain the texture distribution features; the edge computing node arranges the contour features, color distribution features and texture distribution features in sequence, and saves the fixed order of each feature component to obtain the combined visual features. The feature retrieval of the target area of the cargo stops when the total number of effective pixels or the number of effective windows is zero.
[0036] When edge computing nodes calculate the matching degree, they square each component of the combined visual feature, add them together, and take the square root of the sum to obtain the feature modulus to be retrieved. They also square each component of the reference visual feature, add them together, and take the square root of the sum to obtain the reference feature modulus. When both modulus is not zero, they multiply the feature value to be retrieved at the same component position with the reference feature value, add all the product products together, and then divide the sum of the products by the two feature modulus in turn to obtain the directional consistency degree, which is used as the matching degree. When any modulus is zero, the corresponding reference item is marked as an invalid match and does not participate in the candidate selection. When the matching degree of multiple reference items meets the retrieval conditions, they are arranged in descending order of matching degree. When the values are the same, they are arranged in the order of the goods category number, thus obtaining repeatable retrieval results.
[0037] When the goods packaging has machine-readable markings, the edge computing node can also parse the goods category number in the markings and perform a consistency check between the parsed goods category number and the goods category number obtained by visual retrieval. If they match, the goods category number is output. If they do not match, a category conflict record is generated based on the completeness of the markings, the degree of visual matching, and the allowed category set of the storage compartment. The category conflict record does not enter the automatic inventory conversion process, but is uploaded to the cloud management platform to trigger a review. This avoids misjudgment of the category, which could lead to the incorrect invocation of the standard volume of a single item and the inventory threshold.
[0038] Edge computing nodes perform monocular depth estimation on the target area of goods corresponding to the goods category number. The monocular depth estimation network takes standard inspection images and goods pixels defined by pixel-level masks as input, and outputs a depth prediction value relative to the camera optical center for each valid goods pixel. When training the monocular depth estimation network, the training samples include warehouse images with different storage cell locations, shooting distances, placement densities, occlusion levels, and lighting conditions. The sample labels are reference depths corresponding to the image pixels. During training, the network parameters are updated according to the difference between the predicted depth and the reference depth. The update stops when the depth error on the validation samples no longer improves or the training stopping condition is met. The network parameters that meet the deployment conditions for the validation error are saved as the depth estimation network called by the edge computing nodes.
[0039] The monocular depth estimation network consists of an image encoding part, a scale feature combination part, and a depth output part. The image encoding part forms encoded features with different spatial resolutions layer by layer according to the same local window multiplication and accumulation method as the instance segmentation network. The scale feature combination part starts with the encoded features with smaller spatial resolution, performs interpolation and amplification, and combines the amplified features with higher resolution encoded features at the same spatial location by channel. Then, it reduces the duplicate channels by positional convolution. The amplification, combination, and convolution process is repeated until the pixel resolution of the cargo target area is restored. The depth output part reads the combined channel features for each valid cargo pixel, multiplies each channel feature by the depth output parameter, adds them together and restricts the result to non-negative, and obtains the initial depth prediction value of the pixel. The output outside the pixel-level mask does not participate in the cargo depth calculation.
[0040] When calculating the depth training evaluation results, for pixels that simultaneously have effective reference depth and effective predicted depth, the predicted depth is subtracted from the reference depth and the absolute value is taken to obtain the pixel depth difference. The depth differences of all effective pixels are summed and divided by the number of effective pixels to obtain the overall depth difference. Next, adjacent effective pixels are read along the horizontal and vertical sides of the image, and the changes between adjacent predicted depths and adjacent reference depths are calculated. The two changes are subtracted and the absolute value is taken to obtain the edge change difference. All edge change differences are summed and divided by the number of effective adjacent pixel pairs. The training end merges the overall depth difference and edge change difference according to a preset contribution ratio to obtain the depth training evaluation result for this round. The network parameters are updated layer by layer in the direction that reduces the result. When the number of effective pixels or the number of effective adjacent pixel pairs is zero, the training sample is discarded, and invalid samples are not used to update the parameters.
[0041] When the monocular depth estimation network outputs relative depth instead of depth in physical length units, depth scale calibration samples are established before deployment using the cargo compartment opening size, known distances inside the cargo compartment, or scale reference objects set on the cargo compartment. Edge computing nodes match the predicted depth of the scale reference objects with their known physical distances to obtain scale parameters used to convert relative depth into physical depth. The scale parameters are saved according to the camera's internal parameter version, target waypoint, and cargo compartment area. During runtime, the relative depth of cargo pixels is combined with the corresponding scale parameters to obtain the physical depth expressed in storage size units. If the camera focal length, image cropping ratio, or installation status changes, the original scale parameters are invalidated and scale calibration is re-executed.
[0042] The specific process for obtaining the depth scale parameter is as follows: the calibration end collects multiple scale reference positions under the same camera internal parameter version and target waypoint. For each scale reference position, the known physical distance and the relative depth output by the network are read. When the relative depth is not zero, the known physical distance is divided by the relative depth to obtain the scale candidate value of the reference position. All valid scale candidate values are arranged in ascending order of value. The scale candidate value corresponding to the middle position of the arrangement is read as the center candidate value. Then, the absolute difference between the remaining scale candidate values and the center candidate value is calculated. Candidate values whose absolute difference reaches the scale anomaly condition are deleted. The retained candidate values are added together and divided by the number of retained values to obtain the depth scale parameter. If there is no retained candidate value, the calibration fails. If the dispersion of the retained candidate value exceeds the scale stability condition, a scale reference position is added and the calculation is recalculated. The random depth error of a single reference position is not directly used for all cargo pixels.
[0043] For each cargo pixel, the edge computing node reads its horizontal pixel coordinates, vertical pixel coordinates, and physical depth. First, it calculates the offset of the horizontal pixel coordinates relative to the horizontal coordinates of the camera master point. Then, it multiplies the horizontal offset by the physical depth and divides it by the camera's horizontal focal length to obtain the horizontal coordinates of the cargo pixel in the camera coordinate system. Next, it calculates the offset of the vertical pixel coordinates relative to the vertical coordinates of the camera master point. Then, it multiplies the vertical offset by the physical depth and divides it by the camera's vertical focal length to obtain the vertical coordinates of the cargo pixel in the camera coordinate system. Finally, it uses the physical depth as the forward coordinate in the camera coordinate system to obtain the three-dimensional coordinates of the cargo surface sampling points in the camera coordinate system.
[0044] The edge computing node determines the rotation relationship of the camera coordinate system relative to the warehouse world coordinate system based on the UAV attitude parameters bound at the time of image acquisition. It determines the position of the camera optical center in the warehouse world coordinate system based on the UAV position parameters and the installation offset between the camera and the UAV body. The edge computing node changes the direction of the three-dimensional coordinates of each sampling point according to the rotation relationship, and then adds the position component of the camera optical center to the coordinates after the direction transformation to obtain the coordinates of each sampling point on the surface of the goods in the warehouse world coordinate system. The sampling point coordinates, goods category number, cargo cell number, inspection batch identifier and acquisition timestamp are combined into three-dimensional spatial coordinate information.
[0045] When the UAV attitude parameters are represented by rotation angles around three attitude axes in sequence, the edge computing nodes establish direction transformation matrices around the first, second, and third attitude axes respectively. In each direction transformation matrix, the coordinate components parallel to the corresponding attitude axis remain unchanged, while the other two coordinate components are combined according to the cosine and sine values of the rotation angle, respectively. The edge computing nodes combine the matrices according to the rotation order predefined by the pose measurement device. During combination, for each row of the previous matrix and each column of the next matrix, the corresponding elements are multiplied and the products are added. The sum is written into the corresponding row and column position of the combined matrix until the three direction transformation matrices are combined, thus obtaining the attitude transformation matrix of the UAV body relative to the storage world coordinate system. Then, following the same row and column multiplication and addition method, the camera's installation transformation matrix relative to the UAV body is combined with the attitude transformation matrix to obtain the rotation relationship of the camera coordinate system relative to the storage world coordinate system. If the rotation order or installation parameter version is inconsistent, the coordinate transformation is stopped and a pose version conflict record is output.
[0046] For multiple frames of images of the same storage compartment, the edge computing node uses the warehouse world coordinate system to unify the three-dimensional spatial coordinate information of each frame. Sampling points whose spatial distance falls within the same fusion neighborhood and whose cargo category number is consistent are grouped into the same candidate point cluster. For multiple sampling points within the same fusion neighborhood, the retention order is determined according to the effectiveness of depth prediction and image clarity. Sampling points with higher effectiveness are retained or the coordinates of effective sampling points are statistically fused to obtain a multi-frame fused point cloud. If the boundaries of the same storage compartment in different frames cannot be aligned, the inspection batch is marked as having an abnormal pose and the automatic inventory conversion of the storage compartment is stopped.
[0047] During multi-frame point cloud fusion, edge computing nodes divide the warehouse world coordinate system into a fusion index grid based on the fusion neighborhood edge length. For each sampling point, the starting coordinate of the fusion index grid is subtracted from its three coordinate components, then divided by the fusion neighborhood edge length and rounded down to obtain a fusion index composed of three integer indices. Edge computing nodes use a combination of the cargo cell number, cargo category number, and fusion index as the point group key, and write sampling points with the same point group key into the same point group. The depth effectiveness and image clarity of each sampling point in the point group are mapped to a unified contribution interval. The two contribution levels are multiplied to obtain the contribution value of the sampling point. Each coordinate component of each sampling point is multiplied by the corresponding contribution value and summed. The sum is divided by the sum of all contribution values in the point group to obtain the fusion coordinate of that coordinate component. When the sum of all contribution values is zero, the point group is deleted. When a point group comes from only a single image frame, it is marked as a single-frame point group. When the number of single-frame point groups reaches the point cloud validity stopping condition, supplementary sampling information is output. The multi-frame fused point cloud is composed of all valid fusion coordinates.
[0048] Because the physical depth is calibrated by scale, the pixel coordinates are back-projected by the camera's intrinsic parameters, and the multi-frame point cloud is unified to the warehouse world coordinate system by the drone's pose at the time of acquisition, the resulting three-dimensional spatial coordinate information has a spatial scale corresponding to the physical size of the cargo compartment. This information can be used for subsequent voxel volume statistics, instead of directly mistaking the relative depth value for the physical distance.
[0049] The edge computing node reads the center point, length unit vector, width unit vector, height unit vector, and physical length, width, and height dimensions of the corresponding storage cell from the local synchronous copy of the storage configuration database based on the storage cell number in the three-dimensional spatial coordinate information. It establishes a storage cell local coordinate system with the center point of the storage cell as the origin and the length, width, and height directions of the storage cell as mutually perpendicular coordinate axes. The effective value range of the local coordinate system in the three coordinate axis directions is determined according to the physical containment boundary of the storage cell.
[0050] Edge computing nodes generate a set of candidate voxel edge lengths based on the cargo grid size, the minimum resolvable structural size of the target cargo, and the depth prediction error. The generation rules for the candidate voxel edge length set are as follows: the minimum resolvable structural size of the target cargo (i.e., the minimum detectable planar size of the cargo surface) serves as the lower limit for the voxel edge length, and one-tenth of the minimum directional size of the cargo grid serves as the upper limit. Within this lower and upper limit, all candidate voxel edge lengths are generated at 1-millimeter intervals. When computing resources are limited, the interval is adjusted to 5 mm. For each generated candidate voxel edge length, the calibration point cloud is mapped to a candidate voxel mesh, and similar data are statistically analyzed. The system calculates the conversion fluctuations of a static cargo across multiple inspection batches, the amount of erroneous empty cargo cells, and the conversion errors of known quantity samples. For each candidate voxel edge length, the calibration point cloud is mapped to a candidate voxel grid, and the conversion fluctuations, erroneous empty cargo cells, and conversion errors of known quantity samples for the same static cargo across multiple inspection batches are statistically analyzed. Edge computing nodes screen candidate voxel edge lengths that simultaneously meet the conversion stability condition, the empty cargo cell erroneous occupancy condition, and the quantity error condition. Among the qualified candidates, the candidate voxel edge length with fewer voxels that still meets the resolution requirements is selected as the edge length resolution. When no candidate voxel edge length is qualified, the automatic conversion stops and recalibration information is output.
[0051] Based on the determined side length resolution, the edge computing nodes divide the physical storage space of the storage cell into equal intervals along the length, width, and height directions. When the physical dimension in a certain direction cannot be divided by the side length resolution, complete voxel mesh cells are symmetrically arranged from the center of the storage cell to both sides of that direction. The remaining area near the storage cell boundary that is less than one complete voxel is recorded as the boundary mesh cell. The boundary mesh cell saves its actual volume and does not replace it with the volume of a complete voxel. In this way, a standardized cubic mesh space and boundary mesh information covering the entire physical storage space of the storage cell are obtained.
[0052] The edge computing node performs coordinate translation and orientation projection on each sampling point in the multi-frame fused point cloud. First, it subtracts the coordinates of the cell center point from the storage world coordinates of the sampling point to obtain the position vector relative to the cell center point. Then, it calculates the projection components of this position vector in the length, width, and height directions of the cell to obtain the local coordinates of the sampling point. The edge computing node determines the voxel index of the sampling point based on the relative position between the local coordinates and the effective value range of the cell, and deletes the sampling points that exceed the physical containment boundary of the cell, thus obtaining the discrete distribution result of the cargo point cloud in the standardized cubic grid space.
[0053] When calculating the directional projection components, the edge computing node reads the three coordinate components of the position vector and the three directional components of the target direction unit vector. It multiplies the first coordinate component of the position vector with the first directional component of the target direction unit vector, the second coordinate component with the second directional component, and the third coordinate component with the third directional component. Then, it adds the three products to obtain the directed distance of the position vector in the target direction. This process is performed with the length, width, and height directions of the storage compartment as the target directions to obtain the storage compartment's partial coordinates. If the length of any directional unit vector deviates from the unit length condition, its directional components are first normalized by dividing each component by the length of the vector. If the angle between the three directional unit vectors does not meet the condition of mutual perpendicularity, the mapping is stopped and a recalibration of the storage compartment coordinate system is requested.
[0054] When calculating voxel indices, edge computing nodes subtract the effective lower boundary of the cell length direction from the length component of the local coordinates, divide by the voxel side length resolution, and round down to obtain the length direction index. The width and height directions are obtained by the same process. When the local coordinates are exactly located at the effective upper boundary of the cell, they are assigned to the boundary grid cell at the end of the direction arrangement. When the local coordinates are located at the common boundary of adjacent voxels, they are assigned to the voxel with the larger index value, resulting in a definite 3-direction voxel index. Edge computing nodes arrange the 3-direction indices in a fixed order of height direction, then width direction, and finally length direction, and write the sampling points into the corresponding voxel records. When all sampling points have been traversed, the discrete distribution results are output. For empty point clouds, the existing calculation anomaly records are directly output.
[0055] The edge computing node traverses the discrete distribution results and counts the number of valid sampling points in each voxel grid cell and the number of valid image frames from which they come. When both the number of valid sampling points and the number of valid image frames meet the occupancy determination criteria, the corresponding voxel grid cell is marked as a surface occupancy cell; otherwise, it is marked as an unconfirmed cell. The occupancy determination criteria are obtained by calibrating empty cargo grid point clouds and known cargo point clouds. When the thresholds are equal, they are assigned to the occupancy branch to avoid different judgments in different processing batches due to the same calibration criteria.
[0056] For point clouds that can only obtain the visible surface of the goods, edge computing nodes perform entity occupancy completion with the surface occupancy cells corresponding to the same target area of the goods as the boundary. Specifically, edge computing nodes read voxel mesh cells column by column according to the height direction of the cargo grid, determine the first and last surface occupancy cells belonging to the same cargo point cluster in the same column, and mark the mesh cells between the two that are not separated by cargo grid partitions or known gaps as internal occupancy candidates. Then, the internal occupancy candidates are confirmed by combining the continuity of adjacent columns and the surface boundaries of multi-view point clouds. If there is a lack of relative surfaces or the adjacent columns are not continuous, closed filling is not performed, and the area is marked as an occluded uncertain area.
[0057] In another entity occupancy completion method, the edge computing node first marks all surface-occupied cells as non-crossable boundaries, and sequentially adds unoccupied grid cells on the physical containment boundary of the storage cell to the external free queue and marks them as visited. Each time, a current grid cell is taken from the head of the external free queue, and adjacent grid cells sharing the same surface with the current grid cell are read in a fixed order: negative length direction, positive length direction, negative width direction, positive width direction, negative height direction, and positive height direction. If an adjacent grid cell is within the storage cell, is not a surface-occupied cell, and has not been visited, it is marked as visited and added to the tail of the queue. Then, the head of the queue is read again until the external free queue is empty. After the queue processing is completed, all visited and unoccupied cells constitute a free area connected to the outside of the storage cell. Grid cells that are neither surface-occupied cells nor visited constitute closed internal candidates. The edge computing node marks the closed internal candidates as internal occupied cells only when the continuity of surface-occupied cells meets the closure condition; otherwise, it marks them as occluded uncertain areas. This method clarifies the queue initialization, adjacent cell reading order, access status update, and stopping conditions.
[0058] Edge computing nodes perform connectivity checks on surface occupancy units and confirmed internal occupancy units, deleting isolated occupancy regions that are not connected to the main body of the cargo target area and whose volume is lower than the noise region condition, thus obtaining the confirmed occupancy unit set corresponding to the cargo entity. Edge computing nodes multiply the number of complete voxel occupancy units by the standard volume of a single complete voxel and add the actual volume of each boundary occupancy unit in sequence to obtain the total cargo occupancy volume. The volume of the occluded uncertain region is not directly added to the total cargo occupancy volume, but is output along with the existing results as an uncertain state.
[0059] Edge computing nodes read the corresponding standard volume of a single item and category conversion rules based on the goods category number, divide the total volume occupied by the goods by the standard volume of a single item, and obtain the volume equivalent inventory. For goods that are counted by item and have relatively stable shape and placement gaps, the volume equivalent inventory is converted into the number of items according to the rounding boundary determined by the known quantity of calibrated samples. For bulk goods or goods whose single item boundaries cannot be stably determined, the volume equivalent inventory is directly used as the actual inventory data of the goods and the measurement type is marked at the same time. It is prohibited to force the output of the number of items when no category conversion rules are set.
[0060] When the standard volume of a single item is missing, the value is invalid, the total volume occupied by the goods is an abnormal value, or the proportion of the storage space occupied by the uncertain area of the obstruction reaches the automatic conversion stop condition, the edge computing node does not generate normal actual inventory data. Instead, it generates an inventory calculation anomaly record with the reason for failure, storage space number and inspection batch identifier. The normal actual inventory data is then encapsulated with the goods category number, storage space number, measurement type, timestamp, conversion confidence status and processing version identifier into an inventory result message and uploaded to the cloud management platform.
[0061] Since the cargo point cloud is first converted to a local coordinate system consistent with the physical boundary of the cargo cell, and then the occupancy reconstruction and volume conversion are performed using the calibrated voxel side length, the inventory calculation uses the spatial occupancy status of the cargo inside the target cargo cell, rather than the two-dimensional area in a single frame image. Therefore, it can reduce the impact of changes in shooting distance, cargo stacking and partial occlusion on inventory conversion.
[0062] After receiving the inventory result message, the cloud management platform first verifies the idempotency key, processing version identifier, measurement type, and conversion confidence status in the message. If the processing version is earlier than the version already saved by the cloud management platform, the conversion confidence status is abnormal, or the binding relationship between the goods category number and the storage location is inconsistent, the message will not be used to overwrite the current valid inventory status. Instead, a data conflict record will be formed. Only the actual inventory data of the goods that pass the verification will enter the inventory threshold comparison process.
[0063] The cloud management platform reads the safety stock lower limit, threshold effective time, and measurement type from the warehouse configuration database based on the cargo category number and storage cell location index corresponding to the actual cargo inventory data. When a storage cell location has an independent safety stock lower limit, the storage cell level value is used; when a storage cell location does not have an independent value, the cargo category level value is used. If no valid value is set at either level, an inventory threshold missing record is generated and automatic warnings are stopped. The safety stock lower limit and the actual cargo inventory data use the same measurement type, and direct comparisons are not allowed between different measurement types if no conversion relationship is set. Preferably, the safety stock lower limit is preset and stored in the warehouse configuration database by the cloud management platform in the following manner: For any goods category number, the system retrieves the average daily demand, the standard deviation of daily demand, the average replenishment lead time (in days), and the service level coefficient (determined according to the preset service level level, with a value set between 1.0 and 2.5) of the goods category within a preset calibration period; during calculation, the product of the standard deviation of daily demand and the square root of the replenishment lead time is calculated first, and then this product is multiplied by the service level coefficient to obtain the first value; at the same time, the product of the average daily demand and the replenishment lead time is calculated to obtain the second value; the first value and the second value are added to obtain the theoretical safety stock value; the theoretical safety stock value is rounded and aligned with the unit packaging of the goods category to obtain the final safety stock lower limit; wherein, the service level level is determined according to the turnover level pre-marked in the warehouse configuration database for the goods category. In the above calculations, the average daily demand is expressed in units per day, and the standard deviation of daily demand represents the standard deviation of demand quantity obtained with a single day as a statistical period, with the unit being units. The replenishment lead time is first converted to a value in days, and the service level coefficient is a dimensionless quantity. When the daily demand is independent and the replenishment lead time is treated as a fixed number of days, the product of the standard deviation of daily demand and the square root of the replenishment lead time in days is still in units. The units of the first and second values are both units, and they can be added directly. If other measurement types are used, they should be converted to the same inventory unit before calculation.
[0064] The cloud management platform compares the actual inventory data of goods with the preset inventory threshold. When the actual inventory data is greater than or equal to the preset inventory threshold, the inventory status of the corresponding compartment is recorded as normal. When the actual inventory data is lower than the preset inventory threshold, the preset inventory threshold is subtracted from the actual inventory data to obtain the inventory gap. The inventory gap is then divided by the preset inventory threshold to obtain the inventory gap ratio. When the preset inventory threshold is zero, the inventory gap ratio is not calculated, and only the numerical comparison result is recorded.
[0065] The degree of inventory deviation is determined based on the deviation range in which the inventory gap ratio falls. The warehouse configuration database stores multiple consecutive deviation ranges and their corresponding deviation levels in ascending order. The cloud management platform reads the lower and upper boundaries of the range sequentially, starting from the lowest level deviation range. It compares the inventory gap ratio with the two boundaries. When the inventory gap ratio is greater than the lower boundary of the range but less than the upper boundary, it reads the corresponding deviation level of the range and stops range traversal. When the inventory gap ratio is equal to the common boundary of adjacent ranges, it is assigned to the range with the higher deviation level. When the inventory gap ratio exceeds the upper boundary of the highest range, it is assigned to the highest deviation level. When there are no range records or when there is overlap or disconnection between ranges, the deviation rule is determined to be invalid and automatic warning is stopped. This yields a preliminary judgment result that determines the range's affiliation.
[0066] To avoid repeated switching of warning status due to fluctuations in inventory data around the threshold, the cloud management platform can save the previous inventory status and the number of consecutive low inventory times for the current storage compartment. When the continuously obtained valid inventory results are all lower than the preset inventory threshold and the number of consecutive low inventory times reaches the warning confirmation number, the inventory status will be switched from normal to abnormal. When the inventory status is already abnormal, it will only switch back to normal after the actual inventory data of the goods reaches the recovery threshold and the recovery confirmation number is met consecutively. The number of warning confirmation times, recovery threshold, and recovery confirmation times are determined based on the goods turnover speed and inspection interval.
[0067] When the inventory status is determined to be abnormal, the cloud management platform extracts the spatial coordinates of the storage cell location, the goods category number, the actual inventory data, the preset inventory threshold, the inventory gap amount, the inventory gap ratio, the inspection batch identifier, and the data generation timestamp, and encapsulates them to generate an abnormal inventory warning identifier. The abnormal inventory warning identifier also carries a unique warning event number and warning status. The warning event number is used to associate with subsequent sales data analysis, replenishment tasks, and robotic arm execution feedback. If the same storage cell generates a low inventory result again before the previous abnormal event is closed, the inventory field and timestamp of the original warning event are updated, and an independent replenishment task is not generated again.
[0068] The cloud management platform reads historical sales records arranged chronologically within a preset historical period based on the product category number and warning event number in the abnormal inventory warning identifier, and extracts objective quality feedback indicators from user interaction logs associated with the same product category number. Before extraction, user identity identifiers are removed, and only the product category, event type, confirmation status, and statistical period of the event time are retained. Access permissions and retention periods are set according to the purpose of inventory warning and replenishment decision-making. The historical sales record data includes at least the sales time, effective sales quantity, and record validity status. The objective quality feedback indicators are formed by structured event fields in the logs. The structured event fields record quality normal events and quality abnormal events that have been validly confirmed, and do not directly use unconfirmed free text evaluations as quality conclusions. The objective quality feedback indicators are indicators obtained based on the statistics of confirmed quality normal events and quality abnormal events in the user interaction logs. The preset historical period is determined based on the circulation speed level marked in the warehouse configuration database for each goods category. For goods marked as high turnover, the preset historical period is set to 30 days; for goods marked as medium turnover, the preset historical period is set to 60 days; and for goods marked as low turnover, the preset historical period is set to 90 days. If the goods category is not marked with a circulation speed level, a default of 60 days is used as the preset historical period. In addition, when the actual number of valid historical records is less than 80% of the total number of statistical periods within the preset historical period, the system automatically extends the historical period to 1.5 times the original period until the number of valid records meets the condition, but the maximum preset historical period limit is 180 days.
[0069] The cloud management platform deletes sales records that lack product category numbers, timestamps, or valid quantities. For sales records that have been revoked or reversed, the platform merges them into the net valid quantity for the corresponding time period according to the record status. The platform then sums the valid sales quantities according to a preset statistical period to obtain the sales time sequence arranged chronologically. For statistical periods with missing records, if the business status indicates that the period is operating normally and the data link is complete, the missing sales are filled in with zero sales. If the data link is abnormal or the business status is unknown, the period is marked as a missing period and skipped during trend calculation to avoid misjudging missing data as zero sales.
[0070] The cloud management platform sets up trend analysis windows based on the replenishment business cycle. For each target time period in the sales time series, it reads the effective sales within the analysis window centered on or before the target time period. The effective sales are added up sequentially and divided by the number of effective time periods to obtain the smoothed sales for the target time period. When there are no effective time periods in the analysis window, the automatic demand calculation for that product category is stopped. When the number of effective time periods is insufficient for the trend analysis conditions, the forecast range is shortened or the basic gap replenishment branch is switched to obtain a trend sequence used to characterize long-term changes in sales.
[0071] The cloud management platform groups historical sales data according to the same seasonal location, compares the sales volume of each time period with the corresponding trend value, and if the trend value is not zero, the ratio between the sales volume of the time period and the trend value represents the degree of change of the seasonal location relative to the trend level; if the trend value is zero, the sample is skipped. The effective degree of change for the same seasonal location is averaged, and the average result of each seasonal location is normalized to maintain a uniform scale for the seasonal factors within a complete seasonal cycle, obtaining the seasonal factors corresponding to future prediction periods. Seasonal locations without effective samples use the average result of adjacent effective seasonal locations or enter the no-seasonal-correction branch. The complete seasonal cycle is pre-set according to the sales pattern of goods, specifically it can be a 12-month cycle or a 4-quarter cycle. After normalization, a complete seasonal cycle... The average of all seasonal factors within a seasonal cycle is equal to 1. For example, for a certain type of goods with obvious winter sales characteristics, the seasonal factors for each month in the 12-month cycle can be set as follows: January 0.85, February 0.80, March 0.90, April 0.95, May 1.00, June 1.05, July 1.10, August 1.10, September 1.05, October 1.00, November 1.10, and December 1.10 (the average of the above 12-month factors is exactly 1.0). When the number of valid samples at each seasonal location does not meet the seasonal grouping conditions, or when the prediction error obtained by using seasonal factors on the parameter validation samples is not lower than the prediction error obtained by not using seasonal factors, it is determined that seasonal correction is not enabled for this goods, and the seasonal factor for all periods is set to 1.0.
[0072] The cloud management platform determines the trend direction and rate of change based on the changes in adjacent effective time periods within the trend sequence. It then extends the most recent effective trend value to a preset future period according to this rate of change, and adjusts the extension results based on the seasonal factors corresponding to each future time period to obtain the predicted sales for each period within the preset future period. Figure 2 As shown, the line chart displays the actual sales trend (solid line) of a certain product category over a preset historical period and the future predicted sales volume (dashed line) after seasonal adjustment. It intuitively reflects the dynamic relationship between inventory gap and replenishment demand. The cloud management platform adds up the predicted sales volume of each future period to obtain the total predicted sales volume for the preset future period. When the predicted result is less than zero, it is treated as zero. When the predicted result exceeds the prediction boundary jointly defined by historical effective sales capacity and warehouse capacity, the prediction result is restricted to the corresponding boundary and a prediction over-boundary record is generated.
[0073] The specific calculation process for the trend change rate is as follows: The cloud management platform reads the time series index and corresponding smoothed sales of each effective time period in the trend analysis window. It adds up all effective time series indices and divides them by the number of effective time periods to obtain the average time series index. It adds up all smoothed sales and divides them by the number of effective time periods to obtain the average smoothed sales. For each effective time period, it subtracts the average time series index from the time series index of that time period to obtain the time series deviation. It subtracts the average smoothed sales from the smoothed sales of that time period to obtain the sales deviation. It multiplies the time series deviation and the sales deviation and sums the products over all time periods to obtain the joint change. It then squares each time series deviation and sums them to obtain the time series dispersion. When the time series dispersion is not zero, it divides the joint change by the time series dispersion to obtain the trend change rate. It multiplies the trend change rate by the average time series index and subtracts it from the average smoothed sales to obtain the trend initiation value. It then multiplies the time series index of the future time period by the trend change rate and adds the trend initiation value to obtain the trend prediction value for the future time period. When the time series dispersion is zero, it uses the most recent effective smoothed sales as the future trend prediction value.
[0074] The seasonal correction process for future periods is as follows: The cloud management platform reads the corresponding seasonal factors based on the position of the future period in the seasonal cycle, multiplies the future trend forecast value by the seasonal factors, and obtains the initial forecast sales for that future period. If the initial forecast sales are lower than zero, they are corrected to zero; if the initial forecast sales are higher than the upper limit of the executable sales for that product category in the same statistical period, they are corrected to that upper limit; if the corresponding seasonal factors are missing, the future trend forecast value without seasonal correction is used. All periods within the future preset period are processed one by one, and the corrected forecast sales are added together to obtain the total forecast sales for the future preset period. If any future period has both missing data and missing forecast boundaries, the forecast result is marked as low confidence.
[0075] For objective quality feedback indicators, the cloud management platform separately counts the number of valid normal quality events, the number of valid abnormal quality events, and the total number of valid quality events within a preset historical period. When the total number of valid quality events is not zero, the number of valid normal quality events is divided by the total number of valid quality events to obtain the positive quality ratio, and the number of valid abnormal quality events is divided by the total number of valid quality events to obtain the abnormal quality ratio. The positive quality ratio is then subtracted from the abnormal quality ratio to obtain a quality feedback value ranging from -1 to 1, so that the more stable the quality status, the higher the quality feedback value. When there are no valid quality events, the quality feedback status is recorded as insufficient data, and missing feedback is not directly regarded as a positive or negative result.
[0076] To determine the contribution of sales trends, seasonal factors, and quality feedback values to replenishment demand, the cloud management platform uses historical samples that have completed inventory verification and replenishment result confirmation to form a calibration sample set. The calibration samples are divided into parameter determination samples and parameter verification samples according to product category and time sequence, and multiple sets of candidate weights are generated according to a preset start point, end point, and step sequence. The method for determining the preset start point, end point, and step sequence is as follows: for each weight parameter to be calibrated, the value range of the parameter is uniformly mapped to the interval between 0 and 1, with a preset start point of 0, a preset end point of 1, and a preset step of 0.05 (i.e., increasing by 0.05 for each step); when there are three parameters to be calibrated (i.e., the comprehensive weight coefficient is composed of the weights of the three input quantities), the sum of the three weights must always remain 1; enumerate all parameters that satisfy the condition... A candidate weight set is formed by combining three weights with a step size of 0.05 and a sum of 1. When computational resources are limited or time constraints cause the number of enumerated combinations to exceed the preset limit (e.g., more than 1000 groups), the step size is automatically adjusted to 0.10 to reduce the number of candidate combinations. If, during subsequent calibration, the number of qualified candidates is less than 5, the step size is rolled back to 0.05 for refined searching. For each candidate weight, the normalized trend change degree, seasonal change degree, and quality feedback value are weighted and summed to obtain the candidate comprehensive weight coefficient. The candidate comprehensive weight coefficient is then used to calculate the candidate replenishment demand of the calibration sample. The difference between the candidate replenishment demand and the confirmed actual demand is recorded, as well as whether the candidate replenishment demand exceeds the storage capacity and the single handling capacity of the robotic arm.
[0077] When normalizing each input quantity, the cloud management platform reads the effective lower boundary and effective upper boundary of the corresponding input quantity from the parameter determination sample. It subtracts the effective lower boundary from the current input quantity to obtain the boundary offset, and subtracts the effective lower boundary from the effective upper boundary to obtain the effective range width. Then, it divides the boundary offset by the effective range width to obtain the normalized input quantity located within the unified value range. When the current input quantity is lower than the effective lower boundary, the lower boundary of the unified value range is used; when the current input quantity is higher than the effective upper boundary, the upper boundary of the unified value range is used. When the effective range width is zero, the input quantity is marked as not participating in the fusion in this round. The cloud management platform multiplies each normalized input quantity participating in the fusion with the corresponding candidate weight, and then adds all the products to obtain the candidate comprehensive weight coefficient. When some input quantities do not participate in the fusion, the remaining candidate weights are divided by the sum of the remaining candidate weights to keep the sum of the remaining weights uniform. When the sum of the remaining weights is zero, the candidate weights of that group are invalid.
[0078] The cloud management platform identifies qualified candidate weights as those whose demand differences meet the verification error conditions and do not violate warehouse execution constraints. Following the rule of first comparing verification errors, then comparing the degree of demand fluctuation, and finally comparing the order in which candidate weights were generated, the target weight is determined from the qualified candidate weights. If no qualified candidate weights are available, quality feedback is not used for dynamic correction; instead, basic replenishment demand is formed using inventory gap and future sales forecasts, while simultaneously generating recalibration information. If multiple candidate weights have the same evaluation result, one set is determined according to the order in which the candidate weights were generated, thus obtaining a repeatable comprehensive weight coefficient.
[0079] The cloud management platform reads the inventory gap based on the abnormal inventory warning indicator, adds the inventory gap to the total predicted sales volume for the future preset period to obtain the basic replenishment quantity, and then dynamically adjusts the basic replenishment quantity according to the comprehensive weight coefficient. When the comprehensive weight coefficient indicates sales growth and stable quality status, the basic replenishment quantity is increased; when the comprehensive weight coefficient indicates sales decline or an increase in the proportion of abnormal quality, the basic replenishment quantity is decreased. The adjustment range is constrained by the remaining capacity of the storage space, the upper limit of a single replenishment, and non-negative conditions to obtain the candidate replenishment demand quantity.
[0080] The specific calculation process for dynamic correction is as follows: The cloud management platform reads the lower boundary, upper boundary, lower boundary, and upper boundary of the comprehensive weight coefficient; subtracts the lower boundary from the comprehensive weight coefficient, and then divides it by the difference between the upper and lower boundaries to obtain the relative position of the comprehensive weight coefficient within the calibration range; multiplies the difference between the upper and lower boundaries by the relative position, and adds the lower boundary to obtain the replenishment correction factor; multiplies the basic replenishment quantity by the replenishment correction factor to obtain the candidate replenishment demand; when the comprehensive weight coefficient is lower or higher than the calibration range... Each replenishment correction boundary is used. When the upper boundary is equal to the lower boundary, no dynamic correction is performed and the basic replenishment quantity is used. The replenishment correction boundary is determined by historical calibration samples based on demand error and storage capacity constraints. Specifically, the lower and upper boundaries of the comprehensive weight coefficient are determined by the statistical distribution of the comprehensive weight coefficient in the historical samples that have completed inventory verification. That is, the comprehensive weight coefficients of all valid historical samples are arranged in ascending order of value, and the value corresponding to the tenth percentile in the arrangement is taken as the lower boundary, and the value corresponding to the ninetieth percentile is taken as the upper boundary.
[0081] The lower and upper boundaries of the replenishment correction are determined as follows: First, the historical samples are divided into a training sample set and a validation sample set. In the training sample set, the first deviation between the baseline replenishment demand and the actual demand for each historical sample before dynamic correction, and the second deviation after dynamic correction, are calculated. Then, the initial search range of the replenishment correction boundary is set to 0.5 to 2.0, and points are taken at equidistant intervals of 0.05, traversing all candidate boundary combinations within this range. For each candidate boundary combination, for validation samples where the actual demand is not zero, the absolute value of the difference between the candidate replenishment demand and the actual demand is taken, and then divided by the actual demand to obtain the absolute error ratio. The average of these absolute error ratios is then calculated to obtain the average absolute error ratio. Error percentage; for samples with zero actual demand, division is not performed, but the absolute value of the candidate replenishment demand is used as the absolute deviation of zero demand and averaged separately; when all verification samples are zero demand samples, candidate combinations are selected from smallest to largest absolute deviation of zero demand; at the same time, the number of violations exceeding storage capacity is counted; the boundary candidate combination with the smallest average absolute error percentage and zero violations on the verification sample set is selected as the final replenishment correction lower and upper boundaries; if multiple candidate combinations have the same average absolute error percentage, the one with the smaller span between the upper and lower boundaries is selected; if no candidate combination in the entire search range can meet the condition of zero violations, the replenishment correction lower boundary is fixed at 0.8 and the replenishment correction upper boundary is fixed at 1.2.
[0082] For goods counted by piece, the cloud management platform adjusts the candidate replenishment demand to the number of executable pieces according to the packaging units and full package rules stored in the warehouse configuration database; for goods measured by volume equivalent, the same measurement type as the actual inventory data is maintained; the cloud management platform then checks whether the candidate replenishment demand exceeds the difference between the target storage space's capacity and the current actual inventory. If it exceeds, it limits it to that difference; if it is less than zero, the warning event is transferred to a state where no replenishment verification is required, and finally the replenishment demand is obtained.
[0083] For multiple goods categories with simultaneous inventory anomalies, the cloud management platform reads the inventory gap ratio, comprehensive weight coefficient, anomaly duration, and replenishment demand, and maps the values of different dimensions to a unified evaluation interval according to their respective calibration ranges. When the upper and lower limits of a certain evaluation quantity are the same, the evaluation quantity is recorded as not participating in this round of ranking to avoid division by zero during the normalization process. The cloud management platform weights and sums the effective evaluation quantities according to the calibrated priority contribution parameters to obtain the replenishment priority evaluation value for each goods category.
[0084] Priority contribution parameters are determined through historical tasks that have completed scheduling and achieved fulfillment results. The cloud management platform generates multiple sets of candidate contribution parameters according to a preset step, ensuring that each set of contribution parameters corresponds to the inventory gap ratio, comprehensive weight coefficient, abnormal duration, and replenishment demand. For each set of contribution parameters, the candidate priority order of historical tasks is calculated using the same normalization and multiplicative accumulation process as the formal sorting. Then, the candidate priority order is compared with the confirmed target execution order in the historical tasks for each task. The number of task pairs with the same order, the number of tasks executed after a stockout, and the number of tasks that violate the robotic arm operation constraints are counted. Candidate parameters whose number of executions after a stockout does not exceed the fulfillment conditions and do not violate operation constraints are determined as qualified candidates. Among the qualified candidates, candidates with a large number of task pairs with the same order are selected first, followed by candidates with a smaller dispersion in replenishment task waiting time. If they are still the same, they are selected according to the candidate generation order to obtain the priority contribution parameters. If there are no qualified candidates, the basic sorting is performed according to the order of inventory gap ratio, abnormal timestamp, and goods category number.
[0085] The cloud management platform ranks each category of goods according to its replenishment priority evaluation value from highest to lowest. If the evaluation values are the same, the category with the larger inventory gap ratio is selected first. If the inventory gap ratio is still the same, the category with the earlier abnormal inventory warning timestamp is selected. If the timestamps are still the same, the categories are arranged according to the preset order of the category numbers, resulting in a replenishment priority ranking result with no uncertain parallel relationships. When the category of goods participating in the ranking is empty, the current replenishment decision ends and no blank replenishment list is generated.
[0086] Because sales trends, seasonal variations, and quality feedback have all undergone effective processing, dimensional unification, and candidate weight calibration, replenishment demand is not directly given by undefined multidimensional analysis. Instead, it is formed by the current inventory gap, future sales forecasts, and a correction process constrained by execution boundaries. This allows abnormal inventory warning indicators to be transformed into verifiable replenishment quantities and definite task sequences.
[0087] The cloud management platform creates a replenishment task entry for each goods category number based on the replenishment demand and replenishment priority ranking results. The replenishment task entry includes the warning event number, goods category number, replenishment demand, measurement type, replenishment priority sequence number, task generation time, and task status. The cloud management platform uses the combination of the warning event number and the goods category number as the task idempotency key. If an incomplete task already exists with the same idempotency key, the platform updates its replenishment demand and priority, without adding duplicate replenishment tasks.
[0088] The cloud management platform queries the warehouse configuration database for candidate storage locations bound to the goods category numbers in each replenishment task entry, and filters them based on the current available capacity, storage status, and goods category binding status of the candidate storage locations. If the original storage location corresponding to the current warning event is still available and the remaining capacity can accommodate the replenishment demand, the original storage location is determined as the target storage location. Otherwise, the target storage location is determined from the candidate storage locations according to the available capacity, storage number order, and robotic arm reachability. If no candidate storage location meets the conditions, the task is marked as a storage location to be allocated and does not enter the automatic shelving scheduling.
[0089] The cloud management platform encapsulates the goods category number, replenishment demand quantity, replenishment priority number, target storage location, measurement type, warning event number, and task status into replenishment task fields, and arranges the replenishment task fields in order according to the replenishment priority to obtain a standardized replenishment list. The standardized replenishment list saves the list version and generation time. When any task field changes, a new list version is generated. The robotic arm scheduling terminal only executes the list that has passed the integrity check and whose version has not expired.
[0090] The robotic arm scheduling terminal reads the spatial coordinates of the target storage cell opening, the target placement area, the allowed approach direction, the robotic arm workspace, the joint range of motion, the end effector type, and the obstacle occupancy information from the warehouse configuration database based on the target storage cell location corresponding to each goods category number in the standardized replenishment list. It also reads the identification result of the goods to be put on the shelves at the inbound connection position. If the identification result of the goods to be put on the shelves is inconsistent with the goods category number in the replenishment task field, an automatic shelving instruction is not generated, but a goods category conflict record is formed instead.
[0091] The robotic arm scheduling end generates a candidate set of end-effector poses based on the target placement area and the allowed approach direction. For each end-effector pose, it calculates the corresponding joint position combination and deletes joint position combinations that exceed the joint movement range, cause the robotic arm to collide with itself, intersect with the shelf or fixed obstacle, or whose end-effector posture does not meet the placement conditions. If at least one qualified joint position combination exists, the target storage location is determined to have passed the accessibility check. If no qualified joint position combination exists, the corresponding replenishment task is marked as an unreachable task, and the target storage location is reselected according to the candidate storage location order or transferred to other execution equipment for processing.
[0092] The candidate set of end-effector poses is formed based on the center position of the target placement area, the allowed approach direction, and the outer boundary of the cargo. The robotic arm scheduling end uses the center of the target placement area as the basic target point, generates an approach position outside the target compartment along the allowed approach direction, and generates a basic end-effector pose based on the directional relationship between the end-effector gripping surface and the cargo support surface. When the target placement area allows multiple approach directions, they are arranged in sequence according to the angle between the approach direction and the normal of the compartment opening surface, the available length of the approach path, and the direction number. Each approach position, target placement position, and end-effector pose is combined into an end-effector pose candidate. No corresponding candidate is generated when the remaining space of the target placement area is smaller than the outer boundary of the cargo to be shelved.
[0093] When the robotic arm scheduling terminal obtains joint position combinations, it first reads the motion range and initial step size of each joint according to the joint connection order. Within the motion range of each joint, it generates joint position candidates according to the step size and combines the candidate joint positions from front to back according to the joint number. For each combination, it reads the rotation or translation transformation of the first joint starting from the robotic arm base. It combines this transformation with the installation transformation of the next joint relative to the previous joint in a matrix multiplication and addition manner. It processes all joints and end effector installation transformations in sequence to obtain the end effector calculated position corresponding to the candidate combination. It calculates the difference between the end effector calculated position and the target position in three coordinate directions, squares each difference, adds them together, and takes the square root to obtain the position difference. Then, it obtains the attitude difference according to the angle between each direction axis of the end effector calculated attitude and the corresponding direction axis of the target attitude. When both the position difference and attitude difference meet the attitude tolerance, the joint position combination is recorded as a qualified attitude candidate.
[0094] If there are no qualified candidates for the current distance step length, the robotic arm scheduling end selects a joint position combination with the smallest position difference and posture difference in a preset order as the local search center. Within the range of adjacent joints of this combination, the distance step length is reduced and a new candidate combination is generated. The forward pose calculation and difference comparison are repeated until a qualified candidate for the pose is obtained, the distance step length reaches the search stop boundary, or the number of local search rounds reaches the upper limit. If there are still no qualified candidates when the stop boundary is reached, it is determined that the end target pose is unreachable. If multiple qualified candidates for the pose exist, the candidate with the smallest total change in the joint relative to the current joint position is selected first. If the total change is the same, the candidate is selected according to the joint candidate generation order.
[0095] When performing collision verification at the robotic arm scheduling end, the spatial line segments or envelopes of each robotic arm link are calculated based on the candidate joint position combinations. Each link envelope is transformed to the warehouse world coordinate system, and the obstacle occupancy grids corresponding to shelves, ground, fixed equipment, and known temporary obstacles are read. Checkpoints are generated along the length direction of the link envelope at intervals smaller than the side length of the obstacle occupancy grid. Each checkpoint is mapped to an obstacle grid index. When any grid containing a checkpoint is marked as an obstacle occupancy, an external collision is determined. Then, the minimum distance between non-adjacent link envelopes is checked pairwise to see if it is less than the self-collision interval. If neither external collision nor self-collision occurs, the candidate joint position combinations are retained. If the obstacle information version is earlier than the replenishment list version, the obstacle occupancy grid is updated first before the verification is performed.
[0096] For replenishment tasks that pass the reachability check, the robotic arm scheduling end uses the current joint position combination of the robotic arm as the starting point of the path and the qualified joint position combination corresponding to the target end pose as the ending point of the path. It generates adjacent states in the state space formed by the discrete joint motion range. Starting from the starting point of the path, it expands the adjacent states according to the preset joint order, deletes states that violate joint range, collision constraints and end pose constraints, records the previous state and cumulative joint motion of each retained state, and continuously selects unexpanded states with smaller cumulative joint motion to expand until the end point of the path is reached or there are no expandable states.
[0097] When the robotic arm scheduling end reaches the end of the path, it reads the previous state saved for each state from the end of the path back to the beginning of the path, and then reverses the reading order to obtain the inbound transport path from the beginning of the path to the end of the path. If there is no expandable state, the path planning is determined to be a failure. The allowed approach direction is adjusted or another qualified joint position combination is selected for replanning. If all candidates fail, the task is marked as a path abnormal and automatic execution is stopped to prevent the robotic arm from moving without a valid collision-free path.
[0098] The robotic arm scheduling terminal first arranges the tasks through path planning according to the replenishment priority number in the standardized replenishment list. If the priority numbers are the same, the expected amount of motion from the current end position of the robotic arm to the next task connection position is compared. If the expected amount of motion is the same, the tasks are arranged according to the order of task generation time and goods category number to obtain the operation sequence. The robotic arm scheduling terminal encapsulates the task number, the goods category number to be transported, the replenishment quantity, the connection position, the target storage cell position, the inbound transport path, the end effector action sequence, and the operation sequence into a robotic arm inbound and shelving scheduling instruction.
[0099] When the robotic arm executes the scheduling instructions, it confirms the type and quantity of goods to be transported at the docking location, arrives at each path status in sequence according to the inbound transport path, and performs the placement action at the target storage location. After each replenishment task is completed, the robotic arm controller returns the task number, actual quantity executed, completion time, and execution status. The cloud management platform updates the replenishment task to completed, partially completed, or failed based on the execution status. The completed quantity is used to update the storage status of the storage location. Partially completed tasks generate continuation tasks based on the remaining quantity. Failed tasks save the failure stage and equipment status and enter the retry or manual review branch.
[0100] Once the robotic arm completes its task, the cloud management platform can generate a review and inspection task, control the inspection drone to re-collect multi-frame images of the target storage compartment, and re-obtain the actual inventory data and stock status of the goods. When the review result meets the inventory recovery conditions, the corresponding warning event is turned off. When the review result is still lower than the preset inventory threshold, the abnormal inventory warning sign is updated and the remaining replenishment demand is recalculated, thus forming a closed loop between inventory perception, abnormal warning, replenishment decision, shelving execution and inventory review.
[0101] Before the system is put into use, this implementation establishes camera calibration records, storage rack calibration records, cargo category calibration records, and parameter calibration records. The camera calibration records include camera focal length, principal point position, distortion parameters, image size, and the installation relationship between the camera and the UAV body. The storage rack calibration records include the storage rack center point, three-directional unit vectors, physical dimensions, and opening surface boundaries. The cargo category calibration records include cargo category number, standard volume per piece, allowed storage rack set, and measurement type. The parameter calibration records include voxel side length resolution, occupancy determination conditions, rounding boundaries, inventory thresholds, weight parameters, and the effective version of each record.
[0102] When establishing a storage cell calibration record, the calibration end reads multiple calibration positions on the opening face and internal boundary of the storage cell in the warehouse world coordinate system. The length direction is determined based on the two opposite length sides of the storage cell opening face, the height direction is determined based on the height side intersecting with the length sides, and the width direction is determined based on the length direction and the height direction. The calibration end performs perpendicularity verification and direction consistency verification on the three directions. If the verification passes, the geometric center of the storage cell is used as the center point. If the verification fails, the storage cell calibration record is not saved and a prompt is made to re-collect the boundary position.
[0103] When establishing cargo category calibration records, multiple sets of calibration point clouds are collected for known quantities of cargo under different placement methods. The total volume occupied by each group of cargo is obtained by following the same depth estimation, coordinate transformation, voxel occupancy, and entity completion process as in formal inspection. The total volume occupied by each group of cargo is divided by the corresponding known quantity to obtain the candidate value of the single item volume for each group. After deleting samples whose point cloud integrity does not meet the calibration conditions, the remaining candidate values of the single item volume are statistically analyzed to obtain the standard volume of a single item and the allowable fluctuation range. If the number of remaining samples is insufficient or the fluctuation of the candidate value exceeds the stability condition, only the volume equivalent inventory of the cargo category is output, and automatic item number conversion is not enabled.
[0104] The voxel side length resolution and occupancy determination criteria are jointly determined based on calibration samples of the same cargo category. The calibration end generates candidate voxel side lengths and candidate sampling point number thresholds arranged in numerical order. For each candidate combination, empty cargo cell samples, known quantity samples, and occluded samples are processed, and the volume of empty cargo cells that are misjudged as occupied, the conversion difference of known quantity, the fluctuation of repeated inspections, and the processing time are recorded respectively. Candidate combinations that simultaneously meet the conditions of misoccupancy, conversion difference, repeated inspection stability, and edge computing latency are determined as qualified combinations. When there are multiple qualified combinations, the combination with the smaller conversion difference is selected first, followed by the combination with the shorter processing time. If they are still the same, they are selected according to the order in which the candidate combinations are generated.
[0105] Inventory thresholds are configured by the warehouse management system according to the product category and storage location, and the effective time is saved. When the system receives a new inventory threshold, it does not retroactively change the already closed alert events. The new threshold is only used for inventory results generated after the effective time. If the new threshold is inconsistent with the current measurement type, is lower than zero, or exceeds the maximum storage capacity of the storage cell, it is rejected and the previous valid threshold is retained. The threshold update event saves the value before the update, the value after the update, the effective time, and the version identifier for subsequent interpretation of the alert triggering basis.
[0106] Sales trend parameters, seasonal factors, and comprehensive weights are recalibrated according to a preset update cycle. When the number of historical valid samples reaches the update condition, the sales pattern of the product category deviates continuously, or the difference between the replenishment results and actual demand exceeds the recalibration condition continuously, the cloud management platform generates new candidate weights and selects the target weight according to the recorded verification process. The new target weight is only switched to the effective state when the error on the parameter verification sample is not higher than the current weight and does not violate the warehouse capacity constraint; otherwise, the current weight continues to be used and the recalibration fails in this round.
[0107] When communication between the edge computing node and the cloud management platform is interrupted, the edge computing node writes the inventory result message into the local queue to be sent according to the generation time and the grid number. After communication is restored, the message is sent in the order of inspection batch identifier and generation time. When the local queue to be sent reaches the capacity limit, the inventory results with normal conversion status and more recent generation time are retained first, and the grid number corresponding to the removed message is added to the re-inspection set. The cloud management platform eliminates the data that was repeatedly sent during the disconnection period according to the idempotent key and the processing version.
[0108] When multiple goods categories exist in the same storage cell, the edge computing nodes form point clusters for each goods category according to the instance segmentation results. Voxel occupancy reconstruction is performed independently for each category. When the same voxel is occupied by point clusters of different categories at the same time, the target category is determined based on the number of effective sampling points in multiple frames and the degree of category matching. When the target category cannot be determined, the conflicting voxels are removed from the confirmed occupancy unit set of each category and marked as category uncertain regions. When any category uncertain region reaches the conversion stop condition, the automatic inventory conversion of that category is stopped.
[0109] When the outer packaging of goods has transparent, reflective, low-texture, or flexible deformation characteristics that make monocular depth prediction unstable, a depth acquisition device capable of outputting physical depth can be set on the inspection drone, and the depth output by the depth acquisition device can be used to replace the predicted value of the monocular depth estimation network. Regardless of whether monocular depth estimation or a depth acquisition device is used, the subsequent three-dimensional coordinate unification is completed using camera intrinsics, acquisition pose, and cargo layout coordinate system, without changing the data chain of voxel occupancy, inventory conversion, threshold comparison, and replenishment scheduling.
[0110] like Figure 3 As shown, a cloud-edge collaborative warehouse abnormal inventory early warning system includes a data acquisition module, a processing module, a conversion module, a comparison module, a decision module, and an instruction module. The data acquisition module can be deployed on the task control terminal and the inspection drone. The processing module and the conversion module can be deployed on the edge computing node. The comparison module and the decision module can be deployed on the cloud management platform. The instruction module can be implemented collaboratively by the cloud management platform and the robotic arm scheduling terminal. Each module maintains the consistency of the processed objects through inspection batch identifiers, storage cell numbers, cargo category numbers, early warning event numbers, and replenishment task numbers.
[0111] The acquisition module reads the shelf layout topology and storage compartment spatial distribution information, forms a preset patrol route, and controls the inspection drone to obtain a multi-frame inspection image sequence. At the same time, it writes the storage compartments corresponding to unreachable waypoints, unstable poses, abnormal exposures, and missing timestamps into the supplementary acquisition sequence. The processing module completes image preprocessing, instance segmentation, category matching, depth-scale conversion, pixel back projection, and multi-frame point cloud fusion to obtain three-dimensional spatial coordinate information. It outputs the processing abnormal status when there are category conflicts, scale failures, or misalignment of inter-frame coordinates.
[0112] The conversion module establishes a coordinate system for the cargo layout and a standardized cubic grid space, completes voxel indexing, surface occupancy judgment, internal occupancy completion, volume statistics, and single-item standard volume conversion to obtain actual cargo inventory data; the comparison module verifies the inventory result version and measurement type, retrieves preset inventory thresholds and calculates inventory gap amount, inventory gap ratio and deviation level, and encapsulates abnormal inventory warning indicators when the warning confirmation conditions are met.
[0113] The decision-making module processes historical sales data and objective quality feedback indicators to sequentially generate trend sequences, seasonal factors, predicted sales, comprehensive weighting coefficients, replenishment demand, and replenishment priority ranking results. The instruction module generates a standardized replenishment list, completes target storage allocation, robotic arm accessibility verification, collision-free path planning, and operation sequence arrangement, outputs robotic arm warehouse entry and shelving scheduling instructions, and receives execution feedback. Each module maintains data correlation through inspection batch identifiers, storage cell numbers, early warning event numbers, and replenishment task numbers.
[0114] Each module can be implemented through software, hardware, or a combination of both. The edge computing node includes a processor, memory, image data interface, and cloud-edge communication interface. The cloud management platform includes data storage components and decision processing components. The robotic arm scheduling terminal includes a device status interface, path planning components, and instruction issuance interface. When the processor executes the program instructions in the memory, it completes the processing from a multi-frame inspection image sequence to the robotic arm's warehouse entry and shelving scheduling instructions according to the above calculation process.
[0115] In the absence of conflicting data meanings or execution conditions, the data collection validity check, depth scale calibration, voxel resolution calibration, inventory status anti-shake, weight update, storage cell reallocation, path replanning, and review inspection in the above implementation methods can be combined with each other. The combined processing still maintains the correspondence between inspection batches, storage cell locations, goods categories, early warning events, and replenishment tasks.
[0116] To more clearly illustrate the values of the preset parameters and the system operation process, a complete application example is given below. In a certain warehouse rack, the physical dimensions of a certain storage compartment are 60 cm long, 40 cm wide, and 35 cm high. The goods category bound to this compartment is a high-turnover category. Regarding the preset inventory threshold, based on the average daily demand of this goods category being 20 units, the standard deviation of daily demand being 5 units, the replenishment lead time being 2 days, and the service level coefficient being 1.65, the calculation method is as described above (first calculate the product of the standard deviation and the square root of the lead time, then multiply by...). Using the service level coefficient plus the product of average demand and lead time, the theoretical safety stock value is approximately 51.7 units. After rounding down to the nearest unit, the final safety stock minimum is determined to be 52 units. Regarding the preset historical period, since this is a high-turnover category, a preset historical period of 30 days is adopted. Regarding the voxel side length resolution, the minimum resolvable size of this product is 2 cm, and the minimum directional size of the compartment is one-tenth of 35 cm, which is 3.5 cm. Calibration is performed in 1 mm intervals within the range of 2 cm to 3.5 cm, and the final selected voxel side length is 2.5 cm. Regarding the seasonality factor, this commodity has no obvious seasonal characteristics, and the seasonality factor for all months is set to 1.0; regarding the preset step, the step value during the weight calibration process is 0.05; regarding the replenishment correction factor, it is calibrated in steps of 0.05 within the search range of 0.5 to 2.0, and the final lower boundary of the correction factor is determined to be 0.85 and the upper boundary to be 1.45; when the inspection drone collects the actual inventory data of this compartment as 32 pieces, this value is lower than the safety stock lower limit of 52 pieces, triggering an anomaly warning; the cloud is based on the most recent 30 days. Historical sales forecasts indicate a demand of 25 units for the next 7 days, while the current inventory gap is 20 units. Adding the inventory gap to the forecasted demand yields a basic replenishment quantity of 45 units. The cloud management platform reads the replenishment correction factor of 1.10 corresponding to the comprehensive weighting coefficient from the currently effective calibration record. Multiplying the basic replenishment quantity of 45 units by the replenishment correction factor of 1.10 yields a candidate replenishment demand of 49.5 units. This multiplication does not change the unit of the replenishment quantity. The quantity is then rounded up to 50 units based on individual packaging. Finally, a replenishment task is generated, and the robotic arm schedules the warehousing and shelving.
[0117] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for early warning of abnormal inventory in warehousing based on cloud-edge collaboration, characterized in that, The method includes: Control the inspection drone to fly along the preset cruise route in the warehouse racking area, collect images of the goods placement status at each rack location, and obtain a multi-frame inspection image sequence; A multi-frame inspection image sequence is sent to the edge computing node to detect and locate the target area of goods at each storage compartment and determine the goods category number; depth estimation is performed on the target area of goods corresponding to the goods category number, and the two-dimensional image coordinates are mapped to three-dimensional spatial coordinates to obtain three-dimensional spatial coordinate information. Based on the three-dimensional spatial coordinate information, with the center of the corresponding cargo cell as the origin, the three-dimensional spatial coordinates are mapped to a standardized voxel grid space formed by equilateral cube grid cells. Based on the number of grid cells occupied by the cargo after mapping, the actual cargo inventory data is obtained and uploaded to the cloud management platform. Through the cloud management platform, the actual inventory data of goods is compared with the preset inventory threshold of the corresponding storage location. When the actual inventory data of goods is lower than the preset inventory threshold, an abnormal inventory warning sign is obtained. Based on the abnormal inventory warning sign, retrieve the historical sales record data associated with the corresponding product category number and conduct multi-dimensional correlation analysis with objective quality feedback indicators to obtain the replenishment demand and replenishment priority ranking results. Based on the replenishment demand and replenishment priority ranking, a standardized replenishment list is generated, and the robotic arm's warehouse entry and shelving scheduling instruction is obtained according to the target storage location corresponding to each item category number in the standardized replenishment list.
2. The cloud-edge collaborative warehouse abnormal inventory early warning method according to claim 1, characterized in that, A multi-frame inspection image sequence, including: Based on the layout topology of the warehouse racking area and the spatial distribution information of each storage compartment, a list of waypoints covering the field of view of all storage compartments and the corresponding gimbal pitch angle parameters are planned to obtain the preset cruise route. According to the preset cruise route, the inspection drone is controlled to fly to each waypoint in sequence and perform hovering actions. At the same time, the gimbal is controlled to rotate to the attitude indicated by the pitch angle parameter so that the camera optical axis is facing the opening of the cargo compartment, and the stable hovering shooting posture corresponding to each cargo compartment is obtained. Under a stable hovering shooting posture, the system continuously collects the cargo placement status inside the compartment according to preset exposure parameters, and binds the collected image data with timestamps and compartment numbers to obtain a multi-frame inspection image sequence arranged in time sequence and with spatial index identifiers.
3. The cloud-edge collaborative warehouse abnormal inventory early warning method according to claim 1, characterized in that, Three-dimensional spatial coordinate information, including: Edge computing nodes perform distortion correction and illumination normalization enhancement on multi-frame inspection image sequences to obtain pre-processed standard inspection images. Based on the standard inspection image, the outline features of goods within the storage area are extracted and instance segmentation is performed. The pixel-level bounding box of the target area of goods is delineated, and the visual features within the pixel-level bounding box are compared and matched with the pre-set warehouse goods feature library to obtain the unique goods category number corresponding to each goods. Based on the single-frame imaging information of the cargo target area in the standard inspection image, a pre-trained monocular depth estimation network is invoked. Taking the pixel-level bounding box of the cargo target area as input, the network outputs the depth prediction value of each sampling point on the cargo surface relative to the optical center of the camera through forward inference. Combined with the real-time pose parameters of the inspection drone, the depth prediction value and the two-dimensional pixel coordinates are jointly back-projected to the warehouse world coordinate system to obtain the three-dimensional spatial coordinate information of the cargo target area.
4. The warehouse abnormal inventory early warning method based on cloud-edge collaboration according to claim 1, characterized in that, Actual inventory data for goods includes: Using the center point of the location of the storage compartment to which the three-dimensional spatial coordinate information belongs as the origin of the coordinate system, a local coordinate system matching the physical storage space of the storage compartment is established, and a standardized voxel grid space formed by equilateral cube grid units is constructed in the local coordinate system. The coordinates of each point in the three-dimensional spatial coordinate information are mapped to a standardized cubic grid space through coordinate translation and scale normalization to obtain the discrete distribution result of the cargo point cloud in the grid space. Traverse the discrete distribution results, determine whether each cubic grid cell is occupied by the cargo point cloud, count the total number of occupied grid cells, and obtain the number of voxels filling the cargo entity in the standardized cubic grid space. Based on the number of voxels filled and the standard volume corresponding to a single grid cell, combined with the standard volume of a single item of a pre-calibrated cargo category number, the actual inventory data of the cargo corresponding to the cargo category number in the current storage cell is calculated and uploaded to the cloud management platform.
5. The cloud-edge collaborative warehouse abnormal inventory early warning method according to claim 4, characterized in that, Using the center point of the storage compartment's location, as determined by the 3D spatial coordinate information, as the origin, a local coordinate system matching the physical storage space of the storage compartment is established. Within this local coordinate system, a standardized voxel grid space is constructed, consisting of cubic grid cells of equal side length, including: Based on the physical length, width, and height dimensions of the storage compartment, the side length resolution of a single voxel grid cell in the standardized cubic grid space is determined, and a grid division benchmark that is proportionally mapped to the physical storage space of the storage compartment is obtained. Based on the grid division benchmark, with the center point of the grid location as the origin of the coordinate system, mutually perpendicular coordinate axes are established along the length, width, and height directions of the grid to obtain the grid layout coordinate system. Based on the coordinate system of the cargo compartment and the grid division benchmark, the physical storage space of the cargo compartment is evenly divided into several equally divided virtual grids in the three coordinate axis directions. Several closely arranged standardized cubic grid units are formed by the equal length edges in three mutually perpendicular directions, resulting in a standardized cubic grid space covering the entire physical storage space of the cargo compartment.
6. The method for early warning of abnormal inventory in warehousing based on cloud-edge collaboration according to claim 1, characterized in that, Abnormal inventory warning indicators include: The cloud management platform retrieves the safety stock lower limit value pre-set for the storage location from the preset warehouse configuration database based on the cargo category number and storage location index corresponding to the actual cargo inventory data, and uses the safety stock lower limit value as the preset inventory threshold for inventory comparison; the preset inventory threshold value is the safety stock lower limit value for the corresponding storage location. The actual inventory data of goods is compared with the preset inventory threshold to determine the degree of deviation of the actual inventory data from the preset inventory threshold, and a preliminary judgment result representing the inventory profit and loss status is obtained. When the preliminary judgment results indicate that the actual inventory of goods is lower than the preset inventory threshold, the spatial coordinates of the storage compartment, the goods category number, and the difference between the actual inventory of goods and the preset inventory threshold are extracted and packaged to generate an abnormal inventory warning label with a timestamp.
7. The method for early warning of abnormal inventory in warehousing based on cloud-edge collaboration according to claim 1, characterized in that, The replenishment demand and replenishment priority ranking results include: Based on the goods category number carried in the abnormal inventory warning label, retrieve historical sales record data within the preset historical period, and extract objective quality feedback indicators based on user interaction logs associated with the same goods category number to construct a multidimensional associated dataset; Trend decomposition and seasonal factor extraction are performed on the sales time-series features in the multidimensional associated dataset. The extracted circulation features and objective quality feedback indicators are then weighted and fused to obtain a comprehensive weight coefficient. The current inventory gap represented by the abnormal inventory warning sign is dynamically corrected based on the comprehensive weighting coefficient, and combined with the predicted sales volume of the future preset period, the total amount of goods to be replenished to meet the needs of safe operation is calculated as the replenishment demand. Based on the gap ratio of replenishment demand and the level of comprehensive weighting coefficient, multiple categories of goods with simultaneous inventory anomalies are evaluated and ranked in a multi-dimensional priority manner to obtain the replenishment priority ranking result.
8. The method for early warning of abnormal inventory in warehousing based on cloud-edge collaboration according to claim 1, characterized in that, The robotic arm's warehouse entry and shelving scheduling instructions include: Based on the replenishment demand and replenishment priority ranking results, replenishment task entries are generated and priority mapping is performed for each category of goods with inventory anomalies to obtain an initial replenishment task set. Based on the category numbers of each goods in the initial replenishment task set, query the storage cell location bound to each category number from the preset storage configuration database to obtain the target storage cell location corresponding to each category number; The product category number, replenishment demand quantity, replenishment priority ranking result, and target storage location are encapsulated as replenishment task fields. The replenishment task fields are then arranged according to the replenishment priority ranking result to obtain a standardized replenishment list. Based on the target storage location corresponding to each category number in the standardized replenishment list, the robot arm accessibility is verified, the inbound handling path is planned, and the operation sequence is sorted for each target storage location to obtain the robot arm inbound and shelving scheduling instruction.
9. A cloud-edge collaborative warehouse abnormal inventory early warning system, characterized in that, include: The data acquisition module is used to control the inspection drone to collect images of the goods placement at each compartment along a preset cruise route, and obtain a multi-frame inspection image sequence. The processing module is used to send a multi-frame inspection image sequence to the edge computing node, detect and locate the target area of the goods and determine the goods category number, perform depth estimation on the target area of the goods, map the two-dimensional image coordinates to three-dimensional spatial coordinates, and obtain three-dimensional spatial coordinate information. The conversion module is used to map the three-dimensional spatial coordinates to a standardized voxel grid space formed by equilateral cube grid units, with the center of the cargo location as the origin. Based on the number of grid units occupied by the cargo, the actual cargo inventory data is obtained and uploaded to the cloud management platform. The comparison module is used to compare the actual inventory data of goods with the inventory threshold of the storage compartment through the cloud management platform. When the actual inventory data of goods is lower than the inventory threshold, an abnormal inventory warning sign is obtained. The decision module is used to retrieve historical sales record data associated with the product category number and objective quality feedback indicators based on the abnormal inventory warning indicator, and perform multi-dimensional correlation analysis to obtain the replenishment demand and replenishment priority ranking results. The instruction module is used to generate a standardized replenishment list based on the replenishment demand and replenishment priority, and to obtain the robotic arm's warehouse entry and shelving scheduling instruction based on the target storage location corresponding to each goods category number.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a program that, when executed by a processor, implements the method as described in any one of claims 1 to 8.
