Supply chain intelligent inventory management system and method based on big data
By constructing a label generation network and using the cross-entropy loss value, the problem of heavy workload for labeling cargo images is solved, automatic high-quality label generation is achieved, labor costs are reduced, and label generation accuracy is improved. It is suitable for big data environments. supply chain inventory management.
Patent Information
- Application Number
- CN202411008265.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-07-26
AI Technical Summary
In the existing technology, the workload of labeling cargo images is large and cumbersome, making it difficult to achieve intelligent and high-quality labeling, resulting in low neural network training efficiency and inability to effectively reduce the workload of manual labeling.
Adopting a supply chain intelligent inventory management method based on big data, by building a label generation network, using pre-trained segmentation network and label generation network, combined with cross-entropy loss value and random initialization parameters, automatically generate labels for unlabeled goods images, reducing manpower cost and improve label generation accuracy.
It realizes automated labeling, significantly reduces labor costs, improves the accuracy of label generation and network training efficiency, avoids over-fitting, and is suitable for supply chain inventory management in a big data environment.
Smart Images

Figure CN118552136B_ABST
Abstract
Description
Technical Field
[0001] The present invention generally relates to the field of data processing. More specifically, the present invention relates to a supply chain intelligent inventory management system and method based on big data. Background Art
[0002] Some goods in the supply chain inventory are difficult to preserve, such as fruits. When the goods are stored in an improper environment or stored for a long time, they will be damaged. If such damaged goods are not handled in time, other goods will be damaged. Therefore, when damaged goods appear, they must be identified and handled accordingly.
[0003] Neural networks can identify damaged goods more accurately, but before using neural networks to identify damaged goods, the neural network needs to be trained. Training neural networks requires a large number of labeled goods images, so a large number of goods images need to be labeled manually. The work of labeling goods images is not only cumbersome, but also labor-intensive. Therefore, how to achieve intelligent labeling has become a problem that needs to be solved urgently.
[0004] The existing patent application document CN117370902A shows a multi-classification and multi-label data annotation method and device. The method in the document is to have multiple people label the same thing, assign appropriate weights to each person's label according to the consistency of the label, and then determine the final label. The method in the document can reduce the error rate of manual labeling and improve the accuracy of labeling.
[0005] The labeling method in the document not only does not reduce the workload of people labeling, but also requires more manpower, so the method in the document is not suitable for solving the problem in the present invention. How to reduce the workload of labeling and achieve intelligent and high-quality labeling has become the research focus of the present invention. Summary of the invention
[0006] In order to solve the problem of intelligent and high-quality labeling, the present invention provides a supply chain intelligent inventory management system and method based on big data.
[0007] In the first aspect, the present invention provides a supply chain intelligent inventory management method based on big data, which adopts the following technical solutions:
[0008] The supply chain intelligent inventory management method based on big data includes the following steps:
[0009] Acquire a labeled cargo image and an unlabeled cargo image, and record them as a first cargo image and a second cargo image respectively;
[0010] Obtaining a pre-trained first segmentation network, a second segmentation network, and a pre-built label generation network and initializing parameters in the label generation network using random values;
[0011] The first product image and the second product image are sequentially input into the label generation network to obtain respective output results, which are respectively recorded as the first feasible label and the second feasible label; the cross entropy loss value is calculated between the first feasible label and the self-contained label, which is recorded as the first loss value; the second feasible label is used as the label, and the second product image is input into the second segmentation network to obtain a loss value, which is recorded as the second loss value; the first product image is input into the second segmentation network and the parameters in the second segmentation network are updated; the second feasible label is used as the label, and the second product image is input into the second segmentation network after the parameters are updated to obtain a loss value, which is recorded as the third loss value;
[0012] A fourth loss value is calculated, where the fourth loss value is positively correlated with the first loss value and negatively correlated with the difference between the third loss value and the second loss value; the fourth loss value is used to complete the training of the label generation network; and labels are generated using the trained label generation network labels to assist inventory management.
[0013] The present invention automatically labels unlabeled cargo images by constructing a label generation network, thereby effectively reducing the labor cost of labeling work; further, in order to ensure that the label generation network can generate accurate labels, a suitable loss function is constructed to calculate the loss value, thereby completing the training of the label generation network based on the loss value, and improving the accuracy of the labels generated by the label generation network; further, based on the feature that training the network with accurately labeled cargo images will improve the accuracy of the network, a loss function is constructed to calculate the loss value, and the loss value calculated by the loss function constructed by this feature can effectively evaluate the accuracy of the labels generated by the label generation network, thereby achieving effective training of the label generation network and improving the accuracy of the labels generated by the label generation network.
[0014] Preferably, the calculating the fourth loss value comprises:
[0015] ;
[0016] in, represents the first loss value, represents the third loss value, represents the second loss value, Indicates the preset anti-zero coefficient. Represents the fourth loss value.
[0017] The present invention introduces the first loss value as an indicator when calculating the fourth loss value, and uses this indicator to verify the accuracy of labels generated by the label generation network using manually annotated accurate labels, thereby providing a basis for effective training of the label generation network; at the same time, by analyzing the changes in the loss values calculated from the labels generated by the unlabeled goods images before and after the network is updated, it is determined whether the loss values corresponding to the generated labels conform to the characteristic that the network training network with the goods images with accurate labels will improve the network accuracy, thereby effectively verifying the accuracy of the labels generated by the label generation network, and providing a basis for effective training of the label generation network; at the same time, when constructing the loss function, the information features of the labeled goods images and the information features of the unlabeled images are simultaneously introduced, thereby preventing the label generation network from being trained using only a few information features of the labeled goods images, which will cause the trained label generation network to overfit to the labeled goods images, thereby further improving the accuracy of the label generation network.
[0018] Preferably, the method for acquiring the pre-trained first segmentation network comprises:
[0019] Construct the first segmentation network;
[0020] The first cargo images are sequentially input into the first segmentation network to complete the first stage of training of the first segmentation network.
[0021] Preferably, the method for obtaining the pre-trained second segmentation network includes:
[0022] The second cargo image is sequentially input into the first segmentation network trained in the first stage to obtain a segmentation image of the second cargo image, each pixel value in the segmentation image is added with 0.5 and then rounded down to obtain a rounded segmentation image, and the rounded segmentation image is used as the initial label image of the second cargo image;
[0023] The initial label image of the second cargo image is used as a label, and the second cargo image is input into the second segmentation network to complete the training of the second segmentation network to obtain the second segmentation network completed by the first stage training.
[0024] The present invention only uses the second cargo image to perform the first stage training on the second segmentation network, preventing the second segmentation network completed in the first stage from including the first cargo image information, thereby effectively preventing the output result from not changing before and after the training when the second segmentation network is subsequently trained using the first cargo image, and providing a basis for the subsequent analysis of the loss change before and after the training of the second segmentation network using the first cargo image.
[0025] Preferably, the method for obtaining the pre-built label generation network includes:
[0026] Construct a label generation network containing 5 convolutional layers, 2 downsampling layers, 2 deconvolution layers, and 7 activation functions, and use the cross entropy loss function as the loss function of the label generation network.
[0027] Preferably, the step of initializing parameters in the label generation network using random values includes:
[0028] Generate a random value between b1 and b2, and use the random value as the initial value of each parameter in the label generation network. b1 and b2 represent the upper interval limit value and the lower interval limit value respectively.
[0029] The present invention uses random numbers to initialize network parameter values, which is easy to operate and can also make the network parameter values more diversified, thereby preventing the problem of low network training efficiency caused by a single network parameter.
[0030] Preferably, the auxiliary inventory management includes:
[0031] Inputting the second cargo image into the trained label generation network in sequence to obtain an output result, and using the output result as the final label of the second cargo image;
[0032] The final label of the second cargo image is used as the label, and the first segmentation network trained in the first stage is further trained using all the second cargo images, and the trained first segmentation network is recorded as the final trained first segmentation network;
[0033] The newly collected cargo image is input into the first segmentation network that has been finally trained to obtain the segmentation result. The data in the segmentation result is added with 0.5 and then rounded up to obtain the rounded data. The cargo corresponding to the pixels whose rounded data is equal to 1 is picked out.
[0034] The present invention utilizes the trained label generation network to generate the label of the second cargo image, eliminating the need for manual labeling processing, and effectively saving labor costs.
[0035] In a second aspect, the present invention provides a supply chain intelligent inventory management system based on big data, which adopts the following technical solutions:
[0036] The supply chain intelligent inventory management system based on big data includes: a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the supply chain intelligent inventory management method based on big data is implemented.
[0037] By adopting the above technical solution, the above-mentioned supply chain intelligent inventory management method based on big data is generated into a computer program and stored in a memory to be loaded and executed by a processor, so that a terminal device is made according to the memory and the processor for easy use.
[0038] The present invention has the following beneficial effects:
[0039] By building a label generation network, we can automatically label unlabeled cargo images, thereby effectively reducing the labor cost of labeling work;
[0040] Furthermore, in order to ensure that the label generation network can generate accurate labels, a suitable loss function is constructed to calculate the loss value, so as to complete the training of the label generation network based on the loss value and improve the accuracy of the labels generated by the label generation network;
[0041] Furthermore, training the network according to the accurately labeled cargo images will improve the accuracy of the network. This feature is used to construct a loss function to calculate the loss value. The loss value calculated by the loss function constructed by this feature can effectively evaluate the accuracy of the labels generated by the label generation network, thereby realizing effective training of the label generation network and improving the accuracy of the labels generated by the label generation network. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] By reading the following detailed description with reference to the accompanying drawings, the above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:
[0043] Figure 1 It is a flowchart of the steps of the supply chain intelligent inventory management method based on big data according to an embodiment of the present invention;
[0044] Figure 2 It is a schematic diagram of the structure of a label generation network provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0046] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0047] The embodiment of the present invention discloses supply chain intelligent inventory management based on big data, referring to Figure 1 , comprising steps S1 to S5:
[0048] S1: Obtain a labeled cargo image and an unlabeled cargo image, and record them as a first cargo image and a second cargo image respectively.
[0049] It should be noted that since the training network requires a large number of labeled cargo images, the labeling work is relatively detailed and cumbersome. Therefore, in order to reduce the workload of labeling, only some cargo images are labeled.
[0050] Specifically, N cargo images are obtained, where N represents a preset number.
[0051] Select A cargo image is selected, a represents a preset ratio, and a labeling process is performed on the selected cargo image, wherein pixels corresponding to damaged cargo in the cargo image are labeled as 1, and pixels corresponding to non-damaged cargo are labeled as 0, and the cargo image after labeling is recorded as the first cargo image. This embodiment is described by taking N as 10000 and a as 5 as an example, and other embodiments may take other values, which are not specifically limited in this embodiment.
[0052] The remaining product images are recorded as second product images.
[0053] S2: Obtain a pre-trained first segmentation network, a second segmentation network, and a pre-built label generation network and initialize parameters in the label generation network using random values.
[0054] S20: Obtain a pre-trained first segmentation network and a second segmentation network.
[0055] Preferably, as an example, obtaining a pre-trained first segmentation network and a second segmentation network includes:
[0056] Construct a first segmentation network and a second segmentation network. In this embodiment, the first segmentation network and the second segmentation network are both VGG16 network structures. Other embodiments may use other network structures, and the present invention does not specifically limit them.
[0057] The first cargo images are sequentially input into the first segmentation network to complete the first stage of training of the first segmentation network.
[0058] Inputting the second cargo images into the first segmentation network trained in the first stage in sequence to obtain segmented images of the second cargo images;
[0059] It should be noted that, since there are fewer labeled first cargo images for training the first segmentation network, the segmentation accuracy of the first segmentation network completed in the first stage of training is lower than that of the segmentation network with more training samples, and the segmented image segmented by the first segmentation network completed in the first stage of training with lower segmentation accuracy has lower accuracy, so the label accuracy of the second cargo image set with the segmented image of the second cargo image is lower.
[0060] It should be noted that the value of each pixel in the segmented image is between 0 and 1, and the closer each pixel value is to a certain category label, the greater the probability that it belongs to that category. For example, if one pixel is 0.1, which is closer to 0, the category corresponding to 0 is the category corresponding to damaged goods, so the pixel is likely to be damaged goods. Another pixel is 0.8, which is closer to 1, and the category corresponding to 1 is the category corresponding to no damaged goods, so the pixel is likely to be non-damaged goods.
[0061] Each pixel value in the segmented image is added with 0.5 and then rounded down to obtain a rounded segmented image, and the rounded segmented image is used as the initial label image of the second cargo image.
[0062] It should be noted that the pixel values can be rounded off by adding 0.5 to each pixel value in the segmented image and then rounding down.
[0063] The initial label image of the second cargo image is used as a label, and the second cargo image is input into the second segmentation network to complete the training of the second segmentation network to obtain the second segmentation network completed by the first stage training.
[0064] It should be noted that the initial label image of the second cargo image is obtained based on an inaccurate segmentation image, so the initial label image of the second cargo image is not accurate enough; and the second segmentation network trained in the first stage is trained based on the initial label image, so the segmentation result of the second segmentation network trained in the first stage is not accurate enough. Therefore, the second segmentation network cannot be directly used for cargo image segmentation.
[0065] S21: A pre-built label generation network is used to initialize parameters in the label generation network using random values.
[0066] It should be noted that in order to obtain the label of the second cargo image, a label generation network needs to be constructed.
[0067] Preferably, as an example, obtaining a pre-built label generation network includes:
[0068] Build Figure 2 The network structure shown in the structural diagram of the label generation network is used as a label generation network. The network structure includes 5 convolutional layers, 2 downsampling layers, 2 deconvolution layers, and 7 activation functions. There is an activation function after each convolutional layer. In this embodiment, the activation function is the ReLU activation function, and the loss function of the label generation network is the cross entropy loss function.
[0069] Preferably, as an example, using random values to initialize parameters in the label generation network includes:
[0070] Generate random values between b1 and b2, and use the random values as the initial values of the parameters in the label generation network.
[0071] b1 and b2 represent the upper interval limit value and the lower interval limit value respectively. This embodiment is described by taking b1 as 0 and b2 as 100 as an example. Other embodiments may take other values, and this embodiment does not make any specific restrictions.
[0072] It should be noted that the present invention uses random numbers to initialize network parameter values, which is easy to operate and can also make the network parameter values more diversified, thereby preventing the problem of low network training efficiency caused by network parameters.
[0073] S3: Input the first cargo image and the second cargo image into the label generation network in sequence to obtain respective output results, which are respectively recorded as the first feasible label and the second feasible label; calculate the cross entropy loss value of the first feasible label and the self-contained label, which is recorded as the first loss value; use the second feasible label as the label, input the second cargo image into the second segmentation network to obtain a loss value, which is recorded as the second loss value; input the first cargo image into the second segmentation network and update the parameters in the second segmentation network; use the second feasible label as the label, input the second cargo image into the second segmentation network after the parameters are updated to obtain a loss value, which is recorded as the third loss value.
[0074] It should be noted that since the parameters of the label generation network are randomly generated, the accuracy of the labels fitted based on the randomly generated network parameters is poor, so the label generation network needs to be trained. Training the label generation network requires setting a suitable loss function.
[0075] S30: Inputting the first cargo image and the second cargo image into the label generation network in sequence to obtain respective output results, which are respectively recorded as the first feasible label and the second feasible label; calculating the cross entropy loss value of the first feasible label and the self-contained label, which is recorded as the first loss value.
[0076] It should be noted that since the network parameters of the label generation network are obtained by random initialization, the labels generated using the network parameters in the current label generation network are not accurate, so it needs to be trained. To achieve accurate training, a suitable loss function needs to be set.
[0077] It should be further explained that, since the self-label of the first cargo image is obtained by artificial annotation, the label of the first cargo image is relatively high, so the self-label of the first cargo image can be used to supervise the label generated by the label generation network, and thus the loss function can be constructed to calculate the loss value by analyzing the difference between the label generated by the label generation network and the self-label.
[0078] Preferably, calculating the cross entropy loss value between the first feasible label and the self-contained label, recorded as the first loss value, includes:
[0079] Using the cross entropy loss function, the cross entropy loss value of the first feasible label and the self-label is calculated and recorded as the first loss value.
[0080] S31: Using the second feasible label as the label, inputting the second cargo image into the second segmentation network to obtain a loss value, which is recorded as a second loss value.
[0081] It should be noted that, since the label accuracy of the labeled goods image is high, training the second segmentation network using the labeled goods image will improve the accuracy of the second segmentation network, so this feature can be used to verify the accuracy of the labels generated by the label generation network. In other words, the loss value calculated using the generated labels and the second segmentation network before training should be larger, and the loss value calculated using the generated labels and the second segmentation network after training will be lower, so the loss function of the label generation network can be set by analyzing the change in the loss value of the second segmentation network before and after training calculated based on the generated labels.
[0082] Preferably, as an example, the second feasible label is used as the label, and the second cargo image is input into the second segmentation network to obtain a loss value, which is recorded as the second loss value, including:
[0083] The second cargo image is input into the second segmentation network trained in the first stage to obtain an output result, which is recorded as the second output result. Based on the second output result and the second feasible label, the loss value is calculated using the loss function in the second segmentation network, which is recorded as the second loss value.
[0084] S32: Input the first cargo image into the second segmentation network and update the parameters of the second segmentation network.
[0085] Preferably, as an example, inputting the first cargo image into the second segmentation network and updating the parameters in the second segmentation network include:
[0086] The first cargo image is input into the second segmentation network trained in the first stage to obtain an output result. Based on the label of the first cargo image and the corresponding output result, the loss value is calculated using the loss function of the second segmentation network. The network parameters in the second segmentation network are reversely updated based on the loss value.
[0087] It should be noted that the reverse updating of the network parameters in the second segmentation network based on the loss value is an existing method and will not be described in detail here.
[0088] S33: Using the second feasible label as the label, inputting the second cargo image into the second segmentation network after updating the parameters to obtain a loss value, which is recorded as the third loss value.
[0089] Preferably, as an example, the second feasible label is used as the label, and the second cargo image is input into the second segmentation network after the parameter is updated to obtain a loss value, which is recorded as a third loss value, including:
[0090] The second cargo image is input into the second segmentation network after updating the parameters to obtain an output result, which is recorded as the third output result. Based on the second feasible label and the third output result, the loss value is calculated using the loss function of the second segmentation network, which is recorded as the third loss value.
[0091] S4: Calculate a fourth loss value, where the fourth loss value is positively correlated with the first loss value and negatively correlated with the difference between the third loss value and the second loss value.
[0092] Preferably, as an example, the fourth loss value satisfies the relationship:
[0093] ;
[0094] in, Indicates the first loss value. The smaller the value, the smaller the difference between the label of the first product image and the first feasible label. Since the label of the first product image is manually annotated, the label of the first product image is relatively accurate. Therefore, when the first feasible label generated by the label generation network is relatively accurate, the difference between the first product image and the first feasible label has a smaller impact. represents the third loss value, represents the second loss value, It reflects the change in loss value before and after the second segmentation network parameter update. The larger the value, the greater the loss value reduction caused by the parameter update. Since the second segmentation network uses the parameters updated by the first cargo image, the label of the first cargo image is relatively accurate. Therefore, after the parameters of the second segmentation network are updated using the first cargo image, its segmentation accuracy is higher than before the update. In other words, when the feasible label is more accurate, the third loss value should be smaller than the second loss value. Therefore, in order to make the generated label more accurate, the difference between the second loss value and the third loss value should be larger. Indicates the preset anti-zero coefficient. In this embodiment, 0.0001 is taken as an example for description, and other embodiments may take other values, which are not specifically limited in this embodiment; Represents the fourth loss value.
[0095] It should be noted that when constructing the loss function, the information features of labeled goods images and the information features of unlabeled images are introduced at the same time, so as to prevent the label generation network from being trained using only a few information features of labeled goods images, which will cause the trained label generation network to overfit to the labeled goods images, thereby further improving the accuracy of the label generation network.
[0096] It should be further explained that the calculation formula of the fourth loss value is the loss function of the label generation network.
[0097] S5: Use the fourth loss value to complete the training of the label generation network, and use the trained label generation network to generate labels to assist inventory management.
[0098] S50: Complete the training of the label generation network using the fourth loss value.
[0099] Preferably, as an example, the fourth loss value is used to complete the training of the label generation network, and the trained label generation network label generation label is used to generate labels, including:
[0100] The fourth loss value is used to reversely update the parameters in the label generation network.
[0101] It should be noted that using loss values to reversely update parameters in the network is a prior art and is not specifically limited in this embodiment.
[0102] According to the method in steps S2-S4, each first cargo image and second cargo image is used in turn to complete the update of the parameters in the label generation network until the fourth loss value converges, thereby obtaining a trained label generation network.
[0103] S51: To assist inventory management.
[0104] Preferably, as an example, to assist inventory management, including:
[0105] The second cargo image is sequentially input into the trained label generation network to obtain an output result, and the output result is used as the final label of the second cargo image.
[0106] The final label of the second cargo image is used as the label, and all the second cargo images are used to continue training the first segmentation network trained in the first stage, and the trained first segmentation network is recorded as the final trained first segmentation network.
[0107] The newly collected cargo image is input into the first segmentation network that has been finally trained to obtain the segmentation result. The data in the segmentation result is added with 0.5 and then rounded up to obtain the rounded data. The cargo corresponding to the pixels whose rounded data is equal to 1 is picked out.
[0108] An embodiment of the present invention also discloses a supply chain intelligent inventory management system based on big data, including a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the supply chain intelligent inventory management method based on big data according to the present invention is implemented.
[0109] The above system also includes other components well known to those skilled in the art, such as a communication bus and a communication interface, and their configuration and functions are known in the art, so they will not be described in detail here.
[0110] In the present invention, the aforementioned memory may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, a computer-readable storage medium may be any suitable magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory, a dynamic random access memory, a static random access memory, an enhanced dynamic random access memory, a high bandwidth memory, a hybrid storage cube, etc., or any other medium that can be used to store the required information and can be accessed by an application, a module, or both. Any such computer storage medium may be part of the device or accessible or connectable to the device.
[0111] Although this specification has shown and described a number of embodiments of the present invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will conceive of many modifications, changes and alternatives without departing from the ideas and spirit of the present invention. It should be understood that in the practice of the present invention, various alternatives to the embodiments of the present invention described herein may be employed.
[0112] The above are all preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Therefore, any equivalent changes made based on the structure, shape, and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A supply chain intelligent inventory management method based on big data, characterized in that: include: Acquire a labeled cargo image and an unlabeled cargo image, and record them as a first cargo image and a second cargo image respectively; Acquiring a pre-trained first segmentation network, including: constructing a first segmentation network; inputting the first cargo image into the first segmentation network in sequence to complete the first stage of training of the first segmentation network, and a second segmentation network, including: inputting the second cargo image into the first segmentation network trained in the first stage in sequence to obtain a segmentation image of the second cargo image, adding 0.5 to each pixel value in the segmentation image and then rounding it down to obtain a rounded segmentation image, and using the rounded segmentation image as an initial label image of the second cargo image; using the initial label image of the second cargo image as a label, inputting the second cargo image into the second segmentation network to complete the training of the second segmentation network to obtain the second segmentation network trained in the first stage, and a pre-constructed label generation network and initializing the parameters in the label generation network using random values; Inputting the first product image and the second product image into the label generation network in sequence to obtain respective output results, which are respectively recorded as the first feasible label and the second feasible label; calculating the cross entropy loss value between the first feasible label and the self-contained label, which is recorded as the first loss value; using the second feasible label as the label, inputting the second product image into the second segmentation network to obtain a loss value, which is recorded as the second loss value, including: inputting the second product image into the second segmentation network trained in the first stage to obtain an output result, which is recorded as the second output result; based on the second output result and the second feasible label, using the loss function in the second segmentation network to calculate the loss value, which is recorded as the second loss value; inputting the first product image into the second segmentation network and updating the parameters in the second segmentation network; using the second feasible label as the label, inputting the second product image into the second segmentation network after the parameters are updated to obtain a loss value, which is recorded as the third loss value, including: inputting the second product image into the second segmentation network after the parameters are updated to obtain an output result, which is recorded as the third output result; based on the second feasible label and the third output result, using the loss function of the second segmentation network to calculate the loss value, which is recorded as the third loss value; A fourth loss value is calculated, where the fourth loss value is positively correlated with the first loss value and negatively correlated with a difference between the third loss value and the second loss value; the fourth loss value is used to complete the training of the label generation network; and labels are generated using the trained label generation network labels to assist inventory management.
2. The supply chain intelligent inventory management method based on big data according to claim 1 is characterized in that: The fourth loss value is calculated, include: ; in, represents the first loss value, represents the third loss value, represents the second loss value, Indicates the preset anti-zero coefficient. Represents the fourth loss value.
3. The supply chain intelligent inventory management method based on big data according to claim 1 is characterized in that: The method for obtaining the pre-built label generation network includes: Construct a label generation network containing 5 convolutional layers, 2 downsampling layers, 2 deconvolution layers, and 7 activation functions, and use the cross entropy loss function as the loss function of the label generation network.
4. The supply chain intelligent inventory management method based on big data according to claim 1 is characterized in that: The method of initializing parameters in the label generation network using random values includes: Generate a random value between b1 and b2, and use the random value as the initial value of each parameter in the label generation network. b1 and b2 represent the upper interval limit value and the lower interval limit value respectively.
5. The supply chain intelligent inventory management method based on big data according to claim 1 is characterized in that: Said aiding inventory management includes: Inputting the second cargo image into the trained label generation network in sequence to obtain an output result, and using the output result as the final label of the second cargo image; The final label of the second cargo image is used as the label, and the first segmentation network trained in the first stage is further trained using all the second cargo images, and the trained first segmentation network is recorded as the final trained first segmentation network; The newly collected cargo image is input into the first segmentation network that has been finally trained to obtain the segmentation result. The data in the segmentation result is added with 0.5 and then rounded up to obtain the rounded data. The cargo corresponding to the pixels whose rounded data is equal to 1 is picked out.
6. Supply chain intelligent inventory management system based on big data, characterized by: include: A processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the supply chain intelligent inventory management method based on big data according to any one of claims 1 to 5 is implemented.
