An artificial intelligence-based supply chain management method
By deploying blockchain and building image recognition and classification models in cloud data centers, combined with asymmetric encryption and digital identity authentication technology, the problems of difficulty, low efficiency and poor security in supply chain data management are solved, and an efficient and safe Supply chain data management and storage.
Patent Information
- Application Number
- CN202410684899.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-05-30
AI Technical Summary
In the existing technology, supply chain data management is difficult, inefficient, has poor transmission security, high labor costs, and poor storage reliability. Especially when the scale of the enterprise expands, the data volume increases exponentially, the multi-source data structure is complex, and image data and Text data is difficult to manage and is easily leaked during transmission. Databases based on local storage may crash, resulting in data loss.
Adopt an artificial intelligence-based method to deploy blockchain in the cloud data center, build an image recognition model and a supply chain classification model, use asymmetric encryption and digital identity authentication technology for data encryption and signature, and convert the image data into Text data is automatically classified using supply chain classification models and distributed storage using blockchain.
It reduces labor cost investment, improves management efficiency and data transmission security, and avoids data loss. It is suitable for large-scale and large-volume supply chain multi-source data management, enhances data interaction and storage reliability, and avoids the loss of supply chain information. Island.
Smart Images

Figure CN118260788B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of supply chain management, and in particular relates to a supply chain management method based on artificial intelligence. Background Art
[0002] The importance of supply chain management to enterprises cannot be underestimated. It directly affects the cost control, customer satisfaction, market analysis and long-term profitability of enterprises, and plays a vital role in improving the overall operational efficiency and market competitiveness of enterprises. With the development of globalization and technology, the importance of supply chain management will continue to grow. Supply chain management is a complex process involving multiple links, including procurement, production, inventory management, logistics and sales. In this process, the management of various supply chain data is crucial to ensure the smooth operation of the supply chain. These supply chain data may include orders, invoices, logistics documents, inventory records, quality control reports, etc. Effective supply chain data management helps to improve transparency, reduce error rates, speed up the decision-making process and improve overall supply chain efficiency. The management of supply chain data mainly involves collection, transmission, analysis and storage. In the existing technology, as the scale of enterprises expands, the volume of supply chain data grows exponentially, and it is a multi-source data structure, including image data and text data, which makes it difficult to manage and inefficient; supply chain data involves the business secrets of enterprises, which are easy to leak during transmission and have poor transmission security; analysis of supply chain data is often carried out manually, with high labor costs; the local storage method is prone to database crashes, resulting in data loss, and poor storage reliability. Summary of the invention
[0003] In order to solve the problems of difficult management, low efficiency, poor transmission security, high manpower cost and poor storage reliability in the prior art, the present invention aims to provide a supply chain management method based on artificial intelligence.
[0004] The technical solution adopted by the present invention is:
[0005] A supply chain management method based on artificial intelligence includes the following steps:
[0006] Deploy blockchain in the cloud data center and build image recognition models and supply chain classification models based on the collected historical supply chain multi-source data;
[0007] Use the cloud data center to call a trusted institution to generate keys and perform real-name authentication on all supply chain data servers connected to the cloud data center, and obtain the corresponding public-private key pair and registration information; the public-private key pair includes a public key and a private key;
[0008] Use the supply chain data server to collect the supplier's real-time supply chain multi-source data, encrypt and sign the real-time supply chain multi-source data according to the private key and registration information, and upload the encrypted real-time supply chain multi-source data and signed data to the cloud data center;
[0009] Based on the cloud data center, the encrypted real-time supply chain multi-source data and signature data are signed and authenticated and decrypted according to the public key and registration information. Based on the decrypted real-time supply chain multi-source data, the image recognition model and supply chain classification model are used to generate standardized real-time supply chain text data with real-time prediction classification labels, and the blockchain is used to store the standardized real-time supply chain text data on the chain.
[0010] Further, the historical supply chain multi-source data includes historical supply chain image data and historical supply chain text data;
[0011] Real-time supply chain multi-source data includes real-time supply chain image data and real-time supply chain text data.
[0012] Furthermore, in the cloud data center, blockchain is deployed, and an image recognition model and a supply chain classification model are constructed based on the collected historical supply chain multi-source data, including the following steps:
[0013] Based on the cloud data center, a blockchain is constructed according to a number of storage data servers, and a number of nodes in the blockchain are grouped to obtain a leading node group of the blockchain and a number of corresponding sub-consensus groups;
[0014] Collecting a number of historical supply chain multi-source data, and preprocessing the a number of historical supply chain multi-source data to obtain a number of preprocessed historical supply chain multi-source data;
[0015] According to the pre-processed historical supply chain image data in the pre-processed historical supply chain multi-source data, an image recognition model is constructed by using an image recognition algorithm;
[0016] A supply chain classification model is constructed using a deep learning algorithm based on the preprocessed historical supply chain text data in several preprocessed historical supply chain multi-source data.
[0017] Furthermore, the IAP clustering algorithm is used to group several nodes in the blockchain to obtain the blockchain's leading node group and several corresponding sub-consensus groups.
[0018] Further, based on the preprocessed historical supply chain image data in the preprocessed historical supply chain multi-source data, an image recognition model is constructed using an image recognition algorithm, including the following steps:
[0019] Perform data analysis on a number of pre-processed historical supply chain multi-source data to obtain a number of pre-processed historical supply chain image data;
[0020] Using a pre-trained image style transfer model, image style transfer is performed on a number of pre-processed historical supply chain image data according to different handwritten text styles, thereby obtaining a number of style-transferred historical supply chain image data with different handwritten text styles;
[0021] Use the image edge detection algorithm to obtain the horizontal lines, vertical lines, and intersections of the horizontal and vertical lines in the style migration history supply chain image data;
[0022] According to the horizontal lines, vertical lines and intersections, historical cell information data of the style migration history supply chain image data is obtained;
[0023] According to the historical cell information data, the style migration historical supply chain image data is cropped to obtain a number of historical supply chain cell image data;
[0024] Based on several historical supply chain cell image data, an image recognition model is constructed using an image recognition algorithm.
[0025] Furthermore, the image recognition model is built based on the CNN-BiLSTM-CTC algorithm.
[0026] Furthermore, the supply chain classification model is constructed based on the ICPO-BiLSTM algorithm.
[0027] Furthermore, based on the cloud data center, the encrypted real-time supply chain multi-source data and signature data are signed and authenticated and decrypted according to the public key and registration information, and the image recognition model and the supply chain classification model are used to generate standardized real-time supply chain text data with real-time prediction classification labels according to the obtained decrypted real-time supply chain multi-source data, and the blockchain is used to store the standardized real-time supply chain text data on the chain, including the following steps:
[0028] Based on the cloud data center, a trusted institution is called to perform signature authentication on the signature data according to the registration information of the supply chain data server. If the signature authentication is passed, the next step is entered. Otherwise, the corresponding encrypted real-time supply chain multi-source data is blocked, an intrusion alarm signal is issued, and the supply chain management method is terminated.
[0029] After the signature authentication is passed, the encrypted real-time supply chain multi-source data uploaded by the supply chain data server is received, and the encrypted real-time supply chain multi-source data is decrypted according to the public key in the public-private key pair to obtain the decrypted real-time supply chain multi-source data;
[0030] Perform data parsing and preprocessing on a number of decrypted real-time supply chain multi-source data to obtain preprocessed real-time supply chain image data and preprocessed real-time supply chain text data;
[0031] Acquire real-time cell information data of the preprocessed real-time supply chain image data, and perform image recognition using an image recognition model based on the preprocessed real-time supply chain image data and the corresponding cell information data to obtain real-time supply chain recognition text data;
[0032] Integrate the real-time supply chain identification text data and the pre-processed real-time supply chain text data to obtain corresponding standardized real-time supply chain text data;
[0033] Based on the standardized real-time supply chain text data, the supply chain classification model is used to classify the supply chain and obtain the corresponding real-time prediction classification labels;
[0034] Use blockchain to store standardized real-time supply chain text data with real-time predictive classification labels.
[0035] Furthermore, the standardized real-time supply chain text data with real-time prediction classification labels is stored on the blockchain using the blockchain, including the following steps:
[0036] Based on blockchain, smart contracts are called to convert standardized real-time supply chain text data with real-time prediction classification labels into data blocks, generate corresponding data storage requests, and publish the data storage requests and data blocks to the blockchain;
[0037] The leader node that receives the data storage request is used as the master node. Based on the master node, the leader node group and the corresponding sub-consensus group, the PBFT consensus algorithm is used to reach an intra-group consensus on the data storage request, and the intra-group consensus result is obtained. The sub-consensus group is used to store the data block on the chain;
[0038] Based on the master node and the leader node group, the PBFT consensus algorithm is used to conduct inter-group consensus on the intra-group consensus results, generate a successful chain message, and use the leader node group to broadcast the successful chain message to the corresponding sub-consensus groups.
[0039] The beneficial effects of the present invention are:
[0040] The present invention discloses a supply chain management method and system based on artificial intelligence, which adopts an image recognition model to convert image data into text data, and uses a supply chain classification model to perform automatic and accurate classification, thereby reducing human cost investment, reducing management difficulty, and improving management efficiency. The method and system are suitable for large-scale and large-volume supply chain multi-source data management; in data transmission, asymmetric encryption technology and digital identity authentication are combined to transmit in ciphertext, thereby improving the security of data transmission; blockchain is used to perform distributed storage of supply chain multi-source data, thereby avoiding the problem of data loss caused by local database crash and improving storage reliability; a cloud data center is used to uniformly manage data, thereby strengthening data interaction, avoiding the defect of supply chain information islands, and improving practicality.
[0041] Other beneficial effects of the present invention will be further described in the specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a flowchart of the supply chain management method based on artificial intelligence in the present invention.
[0043] Figure 2 It is a structural block diagram of the supply chain management system based on artificial intelligence in the present invention. DETAILED DESCRIPTION
[0044] The present invention will be further explained below in conjunction with the accompanying drawings and specific embodiments.
[0045] Embodiment 1:
[0046] like Figure 1 As shown, this embodiment provides a supply chain management method based on artificial intelligence, comprising the following steps:
[0047] S1: Deploy blockchain in the cloud data center and build an image recognition model and a supply chain classification model based on the collected historical supply chain multi-source data, including the following steps:
[0048] S1-1: Based on the cloud data center, a blockchain is constructed according to several storage data servers, and the Improved Affinity-Propagation (IAP) clustering algorithm is used to group several nodes in the blockchain to obtain the blockchain's leader node group and several corresponding sub-consensus groups, including the following steps:
[0049] S1-1-1: Based on the cloud data center, several storage data servers are connected as nodes for distributed connection, and smart contracts are set up to obtain a blockchain;
[0050] S1-1-2: Based on the blockchain, a reward and punishment mechanism is introduced to obtain the reputation values of several nodes in the blockchain, and the nodes are sorted in descending order according to the reputation values to obtain K initial clustering centers;
[0051] The formula for the reward and punishment mechanism is:
[0052]
[0053] In the formula, is the single reward value of the node; The number of times the node successfully generates and verifies blocks; e is a natural constant;
[0054]
[0055] In the formula, is the single penalty value of the node; The number of times a node fails or has other malicious behaviors; The threshold for the number of penalty triggers. When the node generates invalid blocks multiple times, the system will automatically determine that the node is a Byzantine node and will not be allowed to participate in the consensus process. This will quickly eliminate malicious master nodes from the network, prevent malicious master nodes from affecting the reliability and security of the blockchain, and effectively ensure the honesty of the consensus nodes.
[0056] The formula for reputation is:
[0057]
[0058] In the formula, The current reputation value of each node; is the node indicator; is the initial reputation value of each node; is the weight of the reward mechanism; is the single reward value of the node; is the weight of the penalty mechanism; is the single penalty value of the node;
[0059] S1-1-3: Obtain the initial attraction information and initial belonging information of all nodes, and update K initial cluster centers according to the initial attraction information and initial belonging information to obtain K updated cluster centers;
[0060] The formula for attractiveness information is:
[0061]
[0062] In the formula, is the number of iterations t +1 hour node k Suitable as a nodei The degree of cluster center, that is, the node k For Node i The initial attractiveness information; is the number of iterations t Time Node i Select Node j As the fitness of its cluster center, that is, the node j For Node i Initial attribution information; is the number of iterations t Time Node j Suitable as a node i The degree of cluster center; For Node k As a node i The similarity of the cluster centers; i , j as well as k All are node indicators;
[0063] The formula for attribution information is:
[0064]
[0065] In the formula, is the number of iterations t +1 hour node k The overall suitability for being a cluster center; is the number of iterations t +1 hour node k Suitable for nodes i The degree of other cluster centers; is the number of iterations t +1 hour node i Select Node k As the fitness of its cluster center, that is, the node k For Node i Initial attribution information;
[0066] S1-1-4: Group the nodes according to the similarity between the updated cluster center and the nodes to obtain K initial sub-consensus groups;
[0067] S1-1-5: Use the updated cluster centers corresponding to the K initial sub-consensus groups as leader nodes to obtain a leader node group, and use the other nodes in the initial sub-consensus groups as consensus nodes;
[0068] S1-1-6: Introduce an iterative attenuation coefficient to iteratively update the attraction information and belonging information of all nodes to obtain updated attraction information and updated belonging information;
[0069] The iterative update formula of attractiveness information and belonging information is:
[0070]
[0071]
[0072] In the formula, , The number of iterations t +1 hour node k For Node i updated attractiveness information and updated belonging information; is the iterative attenuation coefficient; The number of iterations t , t +1 hour node k For Node i Information about attractiveness; The number of iterations t , t +1 hour node k For Node i attribution information;
[0073] S1-1-6: updating the K updated cluster centers according to the updated attraction information and the updated belonging information to obtain K final cluster centers;
[0074] The formula for determining the cluster center is:
[0075]
[0076] In the formula, are nodes at any iteration number. k For Node i belonging information and attractiveness information; The function for obtaining the node indicator corresponding to the maximum value; i , k are all node indicators; if , then the node i Is a node k The final cluster center of , then the node k Not a node i The final cluster center;
[0077] S1-1-7: Update the initial sub-consensus groups according to the K final cluster centers to obtain K updated sub-consensus groups;
[0078] S1-1-8: If the number of iterations exceeds the iteration threshold or the cluster center does not change, output the final leader node group and the corresponding final sub-consensus groups;
[0079] S1-2: Collect some historical supply chain multi-source data, and pre-process some historical supply chain multi-source data to obtain some pre-processed historical supply chain multi-source data;
[0080] The historical supply chain multi-source data includes historical supply chain image data and historical supply chain text data;
[0081] S1-3: Based on the preprocessed historical supply chain image data in the preprocessed historical supply chain multi-source data, an image recognition model is constructed using an image recognition algorithm, including the following steps:
[0082] S1-3-1: Perform data analysis on a number of pre-processed historical supply chain multi-source data to obtain a number of pre-processed historical supply chain image data;
[0083] S1-3-2: Use the pre-trained image style transfer model to perform image style transfer on a number of pre-processed historical supply chain image data according to different handwritten text styles, and obtain a number of style-transferred historical supply chain image data with different handwritten text styles;
[0084] Image style transfer technology is a technology of computer vision and graphics, which applies the style of one image to another image while retaining the content of the original image. The image style transfer model of the present application is constructed based on a generative adversarial network (GAN), which learns the high-level features of the image data of the preset handwritten text style. In the migration process, priority is given to retaining the low-level features of the pre-processed historical supply chain image data, and at the same time, the high-level features of the image data of the preset handwritten text style are applied to the pre-processed historical supply chain image data to generate the corresponding handwritten text style style transfer historical supply chain image data, thereby realizing the expansion of training samples of different handwritten text styles and improving the accuracy of image recognition of handwritten text image data by subsequent models;
[0085] S1-3-3: Use the image edge detection algorithm to obtain the horizontal lines, vertical lines, and intersections of the horizontal and vertical lines of the style migration history supply chain image data;
[0086] S1-3-4: Obtain historical cell information data of the style migration historical supply chain image data according to the horizontal lines, vertical lines and intersections; the historical cell information data includes historical contour position information of the horizontal lines, vertical lines and intersections, and historical cell position information of cells formed by the horizontal lines, vertical lines and intersections;
[0087] S1-3-5: Perform image cropping on the style migration historical supply chain image data according to the historical cell information data to obtain a number of historical supply chain cell image data;
[0088] S1-3-6: Based on several historical supply chain cell image data, an image recognition model is constructed using an image recognition algorithm, including the following steps:
[0089] S1-3-6-1: Add real text labels to several historical supply chain cell image data to obtain a historical image recognition sample set;
[0090] S1-3-6-2: Divide the historical image recognition sample set into a first model training sample set and a first model test sample set in a ratio of 7:3;
[0091] S1-3-6-3: Use the Convolutional Neural Networks (CNN)-Bi-directional Long Short-Term Memory (BiLSTM)-Connectionist Temporal Classification (CTC) algorithm to build an initial image recognition model, and input the first model training sample set for optimization training to obtain an optimized image recognition model;
[0092] CNN network is used to extract local features of the image to reduce the size of the feature map. BiLSTM network learns associated sequences and predicts label distribution. It is suitable for processing sequence data problems and can learn long-term dependency information. Using BiLSTM network to solve the string recognition problem of handwritten text images is to treat handwritten text image data as a time-series event. CTC module performs sequence alignment. The main purpose is to directly predict a continuous label sequence from the sequence data, rather than predicting the label at each time point and then generating the final label sequence through a decoder. The prediction result of each character image is converted into the final label sequence. Finally, CTCLoss is used to output the recognition result without sequence alignment.
[0093] S1-3-6-4: input the first model test sample set to perform model testing on the optimized image recognition model to obtain a number of corresponding historical prediction text labels;
[0094] S1-3-6-5: Compare and count several historical predicted text labels with corresponding real text labels to obtain the corresponding first prediction accuracy;
[0095] S1-3-6-6: If the first prediction accuracy is greater than the first prediction accuracy threshold, output the optimal image recognition model, otherwise, continue training optimization;
[0096] S1-4: Based on the preprocessed historical supply chain text data in the preprocessed historical supply chain multi-source data, a supply chain classification model is constructed using a deep learning algorithm, including the following steps:
[0097] S1-4-1: Perform data analysis on some pre-processed historical supply chain multi-source data to obtain some pre-processed historical supply chain text data;
[0098] S1-4-2: Add real classification labels to some pre-processed historical supply chain text data to obtain a historical supply chain classification sample set;
[0099] S1-4-3: Divide the historical supply chain classification sample set into the second model training sample set and the second model test sample set in a ratio of 7:3;
[0100] S1-4-4: Use the Improved Crested Porcupine Optimizer (ICPO)-BiLSTM algorithm to build an initial supply chain classification model, and input the second model training sample set for optimization training to obtain an optimized supply chain classification model, including the following steps:
[0101] S1-4-4-1: Encode the candidate initial network parameters of the BiLSTM network as the positions of the ICPO individuals of the ICPO optimization algorithm; the initial network parameters include the number of hidden layers of the BiLSTM network, the number of neurons in the hidden layer, the initial connection weights of the neurons, and the initial connection thresholds of the neurons;
[0102] S1-4-4-2: Set the ICPO population parameters, maximum number of iterations and fitness function of the ICPO optimization algorithm;
[0103] S1-4-4-3: According to the number of individuals in the ICPO population parameters, the Circle chaotic mapping sequence is used for initialization to obtain the initial ICPO population;
[0104] The formula is:
[0105]
[0106] In the formula, It is the initial ICPO individual of Circle chaos mapping; is the randomly generated initial ICPO individual; It is the ICPO individual indicator;
[0107] S1-4-4-4: Introduce a cyclic population reduction mechanism to limit the number of individuals in the ICPO population parameters and obtain updated ICPO population parameters for the next iteration;
[0108] The formula is:
[0109]
[0110] In the formula, For the The number of individuals in the ICPO population parameter of the iteration; For the The number of individuals in the ICPO population parameter of the iteration; is the minimum number of individuals in the ICPO population parameter; Evaluate arguments for functions; Evaluate loop parameters for a function; Evaluate loop parameters for the maximum function;
[0111] S1-4-4-5: Calculate the initial fitness value of the initial ICPO individuals in the initial ICPO population according to the fitness function;
[0112] The formula is:
[0113]
[0114] In the formula, For ICPO individuals The fitness value of is the prediction mean square error function; ICPO individuals The corresponding predicted value and true value; is the number of individuals in the ICPO population parameter;
[0115] S1-4-4-6: According to the initial fitness value and the updated ICPO population parameters, the first defense strategy, the second defense strategy, the third defense strategy and the fourth defense strategy are used to update the initial ICPO population to obtain an updated ICPO population;
[0116] The formula for the first defense strategy is:
[0117]
[0118] In the formula, For the updated ICPO individuals within the first defense range; The initial ICPO individual within the first defense range; is a random number based on normal distribution; is a random value in the interval [0,1]; It is the optimal solution within the first defense range; is the vector generated between the true optimal solution within the first defense range and the optimal solution randomly selected from the ICPO population; It is the ICPO individual indicator; is the iteration indicator;
[0119] The formula for the second defense strategy is:
[0120]
[0121] In the formula, For the updated ICPO individuals within the second defense range; The initial ICPO individual within the second defense range; is the search upper limit vector of the second defense range; is a random value in the interval [0,1]; Respectively Initial ICPO individuals; All are [1, ]; is the vector generated between the true optimal solution within the second defense range and the optimal solution randomly selected from the ICPO population;
[0122] The formula for the third defense strategy is:
[0123]
[0124] In the formula, For the updated ICPO individuals within the third defense range; The initial ICPO individual within the third defense range; is the search upper limit vector of the third defense range; Respectively Initial ICPO individuals; is [1, ]; The odor diffusion factor defined for the fitness function; It is a defense factor; Control parameters for search direction;
[0125] The formula for the fourth defense strategy is:
[0126]
[0127] In the formula, For the updated ICPO individuals within the fourth defense range; The initial ICPO individual within the fourth defense range; It is the optimal solution within the fourth defense range; All are random values in the interval [0,1]; It is a defense factor; Control parameters for search direction; is the average force affecting the search direction; is the convergence speed factor;
[0128] S1-4-4-7: Use the dynamic reverse learning algorithm to perform dynamic reverse learning on the updated ICPO population to generate a dynamic reverse ICPO population;
[0129] The formula is:
[0130]
[0131] In the formula, It is a dynamically reversed ICPO individual; γ is the decreasing inertia coefficient; are the maximum and minimum values of the vector space respectively; For the updated ICPO individual;
[0132] S1-4-4-8: According to the fitness function, calculate the fitness values of all ICPO individuals in the updated ICPO population and the dynamically reversed ICPO population, and take the ICPO individual with the minimum fitness value as the optimal individual;
[0133] S1-4-4-9: If the number of iterations reaches the maximum number of iterations or the fitness value of the optimal individual meets the requirements, the optimal solution corresponding to the current optimal individual is output to obtain the optimal initial network parameters of the BiLSTM network;
[0134] S1-4-4-10: Build the initial supply chain classification model based on the optimal initial network parameters of BiLSTM;
[0135] S1-4-5: Input the second model test sample set to perform model testing on the optimized supply chain classification model to obtain several corresponding historical prediction classification labels;
[0136] S1-4-6: Compare and count several historical prediction classification labels with corresponding real classification labels to obtain the corresponding second prediction accuracy;
[0137] S1-4-7: If the second prediction accuracy is greater than the second prediction accuracy threshold, the optimal supply chain classification model is output, otherwise, training optimization is continued;
[0138] S2: Use the cloud data center to call the trusted institution to generate keys and perform real-name authentication on all supply chain data servers connected to the cloud data center to obtain the corresponding public-private key pair and registration information, including the following steps:
[0139] S2-1: Collect attribute information and entity IDs of all supply chain data servers connected to the cloud data center, and send some attribute information and corresponding entity IDs to the trusted institution;
[0140] S2-2: Initialize the key and generate public parameters , Master Key and the initial key , the formula is:
[0141]
[0142] In the formula, is a public parameter; is the master key; is the initial key; is a random number in the integer domain; Both are target hash functions; They are all random numbers generated by cyclic groups; is a random number Bilinear mapping of ;
[0143] S2-3: Based on public parameters , Master Key , initial key and the attribute information of the supply chain data server , generate the corresponding supply chain data server's public-private key pair, which includes the private key and the public key , the formula is:
[0144]
[0145] In the formula, Supply Chain Data Server The private key of Integer domain A random number; All are private key parameters; Public parameters The target hash hash function; Indicates quantity for supply chain data server; is the master key; is the initial key; Supply Chain Data Server 's public key; Cyclic group The random number of the generator; Supply Chain Data Server Attribute information of is a random number generated by a cyclic group and supply chain data servers The public key Obtained random parameters;
[0146] S2-4: Perform real-name authentication based on the private key in the public-private key pair and the corresponding entity ID to obtain the registration information of the corresponding supply chain data server. The formula is:
[0147]
[0148] In the formula, is a random number; Supply Chain Data Server Registration parameters; Supply Chain Data Server Registration ID; and the corresponding Forming registration information ; Hash function for target hash; Supply Chain Data Server The entity ID of Supply Chain Data Server The private key of It is the base point of the prime domain; is a prime number order;
[0149] S2-5: Return the private key and registration information in the public-private key pair to the supply chain data server, and publish the public key in the public-private key pair to the cloud data center;
[0150] S3: Use the supply chain data server to collect the supplier's real-time supply chain multi-source data, encrypt and sign the real-time supply chain multi-source data according to the private key and registration information, and upload the encrypted real-time supply chain multi-source data and signed data to the cloud data center;
[0151] Real-time supply chain multi-source data includes real-time supply chain image data and real-time supply chain text data;
[0152] The steps include:
[0153] S3-1: Based on the supply chain data server, according to the private key in the public-private key pair sent by the trusted institution, use the asymmetric encryption algorithm to encrypt the real-time supply chain multi-source data to obtain the corresponding encrypted real-time supply chain multi-source data. The formula is:
[0154]
[0155] In the formula, Supply Chain Data Server Encrypted real-time supply chain multi-source data; is an asymmetric encryption function; Supply Chain Data Server Real-time supply chain multi-source data; Supply Chain Data Server The private key of Indicates quantity for supply chain data server;
[0156] S3-2: According to the registration information sent by the trusted institution, the corresponding encrypted real-time supply chain multi-source data is signed to obtain the signature data of the corresponding encrypted real-time supply chain multi-source data. The formula is:
[0157]
[0158] In the formula, is a random number; It is the base point of the prime domain; is a prime number order; Hash function for target hash; Supply Chain Data Server Registration parameters; Supply Chain Data Server Registration ID; Supply Chain Data Server Encrypted real-time supply chain multi-source data; Supply Chain Data Server The entity ID of ; All are supply chain data servers The signature parameters of
[0159] S3-3: Encrypted real-time supply chain multi-source data And signature data Upload to cloud data center;
[0160] S4: Based on the cloud data center, the encrypted real-time supply chain multi-source data and signature data are signed and authenticated and decrypted according to the public key and registration information. Based on the obtained decrypted real-time supply chain multi-source data, the image recognition model and the supply chain classification model are used to generate standardized real-time supply chain text data with real-time prediction classification labels, and the standardized real-time supply chain text data is stored on the blockchain using the blockchain, including the following steps:
[0161] S4-1: Based on the cloud data center, the trusted institution is called to perform signature authentication on the signature data according to the registration information of the supply chain data server. If the signature authentication is passed, the next step is entered. Otherwise, the corresponding encrypted real-time supply chain multi-source data is blocked, an intrusion alarm signal is issued, and the supply chain management method is terminated;
[0162] The formula for signature authentication is:
[0163]
[0164] In the formula, Supply Chain Data Server Signature authentication parameters; Supply Chain Data Server 's public key; if the left formula is equal to the right formula, the signature authentication is successful;
[0165] S4-2: After the signature authentication is passed, the encrypted real-time supply chain multi-source data uploaded by the supply chain data server is received, and the encrypted real-time supply chain multi-source data is decrypted according to the public key in the public-private key pair to obtain the decrypted real-time supply chain multi-source data;
[0166] The formula is:
[0167]
[0168] In the formula, Supply Chain Data Server Decrypted real-time supply chain multi-source data; is an asymmetric decryption function; Supply Chain Data Server 's public key; Supply Chain Data Server Encrypted real-time supply chain multi-source data;
[0169] S4-3: performing data analysis and preprocessing on a number of decrypted real-time supply chain multi-source data to obtain preprocessed real-time supply chain image data and preprocessed real-time supply chain text data;
[0170] S4-4: obtaining real-time cell information data of the preprocessed real-time supply chain image data, and performing image recognition using an image recognition model based on the preprocessed real-time supply chain image data and the corresponding cell information data to obtain real-time supply chain recognition text data;
[0171] S4-5: Integrate the real-time supply chain identification text data and the pre-processed real-time supply chain text data to obtain corresponding standardized real-time supply chain text data;
[0172] S4-6: Based on the standardized real-time supply chain text data, use the supply chain classification model to classify the supply chain and obtain the corresponding real-time prediction classification label;
[0173] S4-7: Using blockchain to store standardized real-time supply chain text data with real-time prediction classification labels on the blockchain, including the following steps:
[0174] S4-7-1: Based on the blockchain, call the smart contract to convert the standardized real-time supply chain text data with real-time prediction classification labels into data blocks, generate corresponding data storage requests, and publish the data storage requests and data blocks to the blockchain;
[0175] S4-7-2: The leader node that receives the data storage request is used as the master node. Based on the master node, the leader node group and the corresponding sub-consensus group, the Practical Byzantine Fault Tolerance (PBFT) consensus algorithm is used to conduct an intra-group consensus on the data storage request, obtain the intra-group consensus result, and use the sub-consensus group to store the data block on the chain, including the following steps:
[0176] S4-7-2-1: The leader node that receives the data storage request is used as the master node, and the master node is used to send the data storage request to all leader nodes of the leader node group;
[0177] S4-7-2-2: Based on the PBFT consensus algorithm, use the leader node to broadcast the pre-prepared message to the corresponding sub-consensus group and verify the legitimacy of the data storage request;
[0178] S4-7-2-3: If the legitimacy verification passes, the leader node is used to broadcast a preparation message containing the leader node’s voting information to the corresponding sub-consensus group, and the preparation message is written into the message log;
[0179] S4-7-2-4: Based on the consensus nodes in the sub-consensus group, confirmation messages are exchanged. If the consensus node receives confirmation messages exceeding the number threshold, the data block is stored on the chain and the storage result is returned to the corresponding leader node;
[0180] S4-7-3: Based on the master node and the leader node group, use the PBFT consensus algorithm to conduct inter-group consensus on the intra-group consensus result, generate a successful chain message, and use the leader node group to broadcast the successful chain message to the corresponding sub-consensus groups, including the following steps:
[0181] S4-7-3-1: Based on the PBFT consensus algorithm, the leader node receives the consensus results returned by the corresponding sub-consensus group and sends the voting results to the master node;
[0182] S4-7-3-2: Use the master node to receive the voting results sent by the leader node in the leader node group, and generate a successful on-chain message based on the voting results;
[0183] S4-7-3-3: Broadcast the successful chain-up message to the leadership node group, and use the leadership node group to broadcast the successful chain-up message to the corresponding sub-consensus groups.
[0184] Embodiment 2:
[0185] like Figure 2 As shown, this embodiment provides an artificial intelligence-based supply chain management system for implementing a supply chain management method. The system includes a cloud data center, a feasible organization, and several supply chain data servers. The cloud data center and the feasible organization are respectively connected to the several supply chain data servers in communication. The cloud data center is connected to the feasible organization in communication, and the cloud data center is provided with a blockchain, an image recognition model, and a supply chain classification model.
[0186] A cloud data center is used to deploy blockchain and build an image recognition model and a supply chain classification model based on a number of historical supply chain multi-source data; perform signature authentication and decryption on the encrypted real-time supply chain multi-source data and signature data based on the public key and registration information; generate standardized real-time supply chain text data with real-time prediction classification labels using the image recognition model and the supply chain classification model based on the obtained decrypted real-time supply chain multi-source data, and use the blockchain to store the standardized real-time supply chain text data on the chain;
[0187] A feasible organization is used to generate keys and perform real-name authentication on all supply chain data servers to obtain the corresponding public-private key pairs and registration information;
[0188] The supply chain data server is used to collect real-time supply chain multi-source data, encrypt and sign the real-time supply chain multi-source data according to the private key and registration information, and upload the encrypted real-time supply chain multi-source data and signed data to the cloud data center.
[0189] The present invention discloses a supply chain management method and system based on artificial intelligence, which adopts an image recognition model to convert image data into text data, and uses a supply chain classification model to perform automatic and accurate classification, thereby reducing human cost investment, reducing management difficulty, and improving management efficiency. The method and system are suitable for large-scale and large-volume supply chain multi-source data management; in data transmission, asymmetric encryption technology and digital identity authentication are combined to transmit in ciphertext, thereby improving the security of data transmission; blockchain is used to perform distributed storage of supply chain multi-source data, thereby avoiding the problem of data loss caused by local database crash and improving storage reliability; a cloud data center is used to uniformly manage data, thereby strengthening data interaction, avoiding the defect of supply chain information islands, and improving practicality.
[0190] The present invention is not limited to the above optional implementations, and anyone can derive other various forms of products under the enlightenment of the present invention. The above specific implementations should not be understood as limiting the scope of protection of the present invention. The scope of protection of the present invention should be based on the definition in the claims, and the description can be used to interpret the claims.
Claims
1. A supply chain management method based on artificial intelligence, characterized by: The steps include: In the cloud data center, blockchain is deployed, and image recognition models and supply chain classification models are built based on the collected historical supply chain multi-source data, including the following steps: Based on the cloud data center, a blockchain is constructed according to a number of storage data servers, and a number of nodes in the blockchain are grouped to obtain a leading node group of the blockchain and a number of corresponding sub-consensus groups; Collecting a number of historical supply chain multi-source data, and preprocessing the a number of historical supply chain multi-source data to obtain a number of preprocessed historical supply chain multi-source data; The historical supply chain multi-source data includes historical supply chain image data and historical supply chain text data; According to the preprocessed historical supply chain image data in the preprocessed historical supply chain multi-source data, an image recognition model is constructed using an image recognition algorithm, including the following steps: Perform data analysis on a number of pre-processed historical supply chain multi-source data to obtain a number of pre-processed historical supply chain image data; Using a pre-trained image style transfer model, image style transfer is performed on a number of pre-processed historical supply chain image data according to different handwritten text styles, thereby obtaining a number of style-transferred historical supply chain image data with different handwritten text styles; Use the image edge detection algorithm to obtain the horizontal lines, vertical lines, and intersections of the horizontal and vertical lines in the style migration history supply chain image data; According to the horizontal lines, vertical lines and intersections, historical cell information data of the style migration history supply chain image data is obtained; According to the historical cell information data, the style migration historical supply chain image data is cropped to obtain a number of historical supply chain cell image data; Based on some historical supply chain cell image data, the CNN-BiLSTM-CTC algorithm is used to build an image recognition model, which includes the following steps: Add real text labels to several historical supply chain cell image data to obtain a historical image recognition sample set; The historical image recognition sample set is divided into a first model training sample set and a first model test sample set in a ratio of 7:3; Use the CNN-BiLSTM-CTC algorithm to build an initial image recognition model, and input the first model training sample set for optimization training to obtain an optimized image recognition model; Input the first model test sample set to perform model testing on the optimized image recognition model, and obtain a number of corresponding historical prediction text labels; Compare and count several historical predicted text labels with corresponding real text labels to obtain corresponding first prediction accuracy rates; If the first prediction accuracy is greater than the first prediction accuracy threshold, the optimal image recognition model is output, otherwise, training optimization is continued; Based on the pre-processed historical supply chain text data in several pre-processed historical supply chain multi-source data, a supply chain classification model is constructed using a deep learning algorithm; Using the cloud data center to call a trusted institution to perform key generation and real-name authentication on all supply chain data servers connected to the cloud data center, and obtain corresponding public-private key pairs and registration information; the public-private key pairs include a public key and a private key; Use the supply chain data server to collect the supplier's real-time supply chain multi-source data, encrypt and sign the real-time supply chain multi-source data according to the private key and registration information, and upload the encrypted real-time supply chain multi-source data and signed data to the cloud data center; The real-time supply chain multi-source data includes real-time supply chain image data and real-time supply chain text data; Based on the cloud data center, the encrypted real-time supply chain multi-source data and signature data are signed and authenticated and decrypted according to the public key and registration information. Based on the decrypted real-time supply chain multi-source data, the image recognition model and supply chain classification model are used to generate standardized real-time supply chain text data with real-time prediction classification labels, and the blockchain is used to store the standardized real-time supply chain text data on the chain.
2. The supply chain management method based on artificial intelligence according to claim 1, characterized in that: Using the IAP clustering algorithm, several nodes in the blockchain are grouped to obtain the blockchain's leading node group and several corresponding sub-consensus groups.
3. The supply chain management method based on artificial intelligence according to claim 1, characterized in that: The supply chain classification model is built based on the ICPO-BiLSTM algorithm.
4. The supply chain management method based on artificial intelligence according to claim 2, characterized in that: Based on the cloud data center, the encrypted real-time supply chain multi-source data and signature data are signed and authenticated and decrypted according to the public key and registration information. Based on the obtained decrypted real-time supply chain multi-source data, the image recognition model and the supply chain classification model are used to generate standardized real-time supply chain text data with real-time prediction classification labels, and the blockchain is used to store the standardized real-time supply chain text data on the chain, including the following steps: Based on the cloud data center, a trusted institution is called to perform signature authentication on the signature data according to the registration information of the supply chain data server. If the signature authentication is passed, the next step is entered. Otherwise, the corresponding encrypted real-time supply chain multi-source data is blocked, an intrusion alarm signal is issued, and the supply chain management method is terminated. After the signature authentication is passed, the encrypted real-time supply chain multi-source data uploaded by the supply chain data server is received, and the encrypted real-time supply chain multi-source data is decrypted according to the public key in the public-private key pair to obtain the decrypted real-time supply chain multi-source data; Perform data parsing and preprocessing on a number of decrypted real-time supply chain multi-source data to obtain preprocessed real-time supply chain image data and preprocessed real-time supply chain text data; Acquire real-time cell information data of the preprocessed real-time supply chain image data, and perform image recognition using an image recognition model based on the preprocessed real-time supply chain image data and the corresponding cell information data to obtain real-time supply chain recognition text data; Integrate the real-time supply chain identification text data and the pre-processed real-time supply chain text data to obtain corresponding standardized real-time supply chain text data; Based on the standardized real-time supply chain text data, the supply chain classification model is used to classify the supply chain and obtain the corresponding real-time prediction classification labels; Use blockchain to store standardized real-time supply chain text data with real-time predictive classification labels.
5. The supply chain management method based on artificial intelligence according to claim 4, characterized in that: Using blockchain to store standardized real-time supply chain text data with real-time prediction classification labels on the chain includes the following steps: Based on blockchain, smart contracts are called to convert standardized real-time supply chain text data with real-time prediction classification labels into data blocks, generate corresponding data storage requests, and publish the data storage requests and data blocks to the blockchain; The leader node that receives the data storage request is used as the master node. Based on the master node, the leader node group and the corresponding sub-consensus group, the PBFT consensus algorithm is used to reach an intra-group consensus on the data storage request, and the intra-group consensus result is obtained. The sub-consensus group is used to store the data block on the chain; Based on the master node and the leader node group, the PBFT consensus algorithm is used to conduct inter-group consensus on the intra-group consensus results, generate a successful chain message, and use the leader node group to broadcast the successful chain message to the corresponding sub-consensus groups.
Citation Information
Patent Citations
Blockchain-based electronic warehouse receipt transaction system with incentive mechanism
CN110570308A
Blockchain endorsement verification
CN111414413A
Method and equipment for acquiring and recording tracking information on block chain
CN118069741A
Secure messaging in a machine learning blockchain network
US11081219B1
Systems and methods with integrated gaming engines and smart contracts
US20230191263A1
