Block chain-based cross-border logistics intelligent tracking and anti-counterfeiting system

Through blockchain technology and segmented encrypted digital anti-counterfeiting codes, combined with package feature recognition and environmental monitoring, the problems of poor information interoperability and low anti-counterfeiting efficiency in cross-border logistics are solved, the trusted sharing and risk assessment of logistics information are realized, and the security and reliability of cross-border logistics are improved.

CN120806802AActive Publication Date: 2025-10-17SHENZHEN HONGTAIXIN INTELLIGENT LOGISTICS TECHNOLOGY CO LTD

Patent Information

Application Number
CN202511266299.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-05
Publication Date
2025-10-17
Estimated Expiration
2045-09-05

AI Technical Summary

Technical Problem

There are data silos in cross-border logistics tracking systems, poor information interoperability, low efficiency and prone to omissions in traditional anti-counterfeiting technologies, and the inability to dynamically adjust environmental monitoring strategies, making it difficult to meet the security needs of cross-border logistics.

Method used

Blockchain technology is used to achieve reliable recording and sharing of logistics information, combined with package feature recognition and environmental monitoring. Through segmented encrypted digital anti-counterfeiting codes and real-time feature comparison, the environmental monitoring threshold is dynamically adjusted, the anti-counterfeiting verification results and environmental adjustment results are integrated, the optimal logistics path is planned and node proof is generated.

Benefits of technology

It improves the tracking and anti-counterfeiting capabilities of cross-border logistics, ensures the authenticity and continuity of information, realizes comprehensive assessment of logistics risks and route optimization, and enhances logistics security and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120806802A_ABST
    Figure CN120806802A_ABST
Patent Text Reader

Abstract

The invention discloses a cross-border logistics intelligent tracking and anti-counterfeiting system based on a block chain, and relates to the field of cross-border logistics intelligent tracking and anti-counterfeiting, and the method comprises the steps: collecting logistics package feature information, generating a feature identifier, submitting the feature identifier to a block chain network, obtaining a digital anti-counterfeiting code through segmented encryption processing, and transmitting the digital anti-counterfeiting code to the block chain network; and in the transportation process, parcel feature information is collected for comparison and verification. Meanwhile, in-transit environment data are collected, an environment monitoring threshold value is determined according to the parcel feature identifier, and an adjustment strategy is executed. And carrying out fusion analysis on the anti-counterfeiting verification result and the environment regulation result to obtain a logistics risk level, and determining an optimal logistics path according to the logistics risk level. And planning a node verification strategy according to the optimal logistics path, collecting verification data to generate node proof, and updating the logistics track in the smart contract after block chain network verification. According to the invention, credible tracking and intelligent anti-counterfeiting of cross-border logistics are realized, and the logistics safety is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of cross-border logistics intelligent tracking and anti-counterfeiting, in particular to a cross-border logistics intelligent tracking and anti-counterfeiting system based on a blockchain. BACKGROUND

[0002] With the rapid development of cross-border e-commerce, the tracking and anti-counterfeiting demand of cross-border logistics is increasingly prominent. The existing cross-border logistics tracking scheme mainly relies on the code scanning records of logistics nodes, which is prone to information lag, track disconnection and other problems. At the same time, the traditional anti-counterfeiting technology mainly relies on manual inspection, which is low in efficiency and prone to omissions, and is difficult to meet the security demand in the cross-border logistics scenario.

[0003] The current logistics tracking system generally has the problem of data island, and the information collected by each logistics node is difficult to realize interconnection and sharing, resulting in insufficient completeness and credibility of the tracking information. In addition, due to the lack of unified verification standards and credible record mechanism, the logistics package is prone to security risks such as package switching and information tampering during cross-border transportation.

[0004] The existing logistics environment monitoring scheme mainly uses fixed threshold for judgment, which cannot dynamically adjust the monitoring strategy according to the characteristics of different packages, resulting in unsatisfactory environmental protection effect. At the same time, there is a lack of correlation analysis between environmental abnormal conditions and anti-counterfeiting verification results, making it difficult to comprehensively evaluate the logistics risk and timely adjust the transportation scheme. SUMMARY

[0005] The purpose of the present application is to provide a cross-border logistics intelligent tracking and anti-counterfeiting system based on a blockchain, which realizes the credible record and sharing of logistics information through blockchain technology, combines package feature recognition and environment monitoring technology, and establishes an intelligent tracking and anti-counterfeiting mechanism to solve the technical problems of poor information credibility, low tracking efficiency and weak anti-counterfeiting capability in cross-border logistics.

[0006] In the first aspect, the cross-border logistics intelligent tracking and anti-counterfeiting method based on a blockchain provided in the embodiments of the present application comprises the following steps: Collecting feature information of a logistics package to obtain a package feature identifier, submitting the package feature identifier to a blockchain network and generating a smart contract; Segmenting and encrypting the package feature identifier to obtain a digital anti-counterfeiting code, re-collecting the feature information of the package during the logistics transportation process and generating a verification identifier, comparing the verification identifier with the decrypted feature identifier of the digital anti-counterfeiting code, and generating an anti-counterfeiting verification result; Collecting in-transit environment data of the logistics package, determining an environment monitoring threshold according to the package feature identifier, executing an environment adjustment strategy when the in-transit environment data exceeds the environment monitoring threshold and recording the adjustment result, and updating the environment monitoring threshold based on the adjustment result; Determine the logistics risk level according to the anti-counterfeiting verification result and the environmental regulation result, and determine the optimal logistics path from the preset path library according to the logistics risk level; According to the optimal logistics path, the verification strategy of the logistics node is planned, and the node certificate is generated. According to the node certificate, the logistics track in the smart contract is updated, the tracking verification of the package characteristic mark is carried out, and the tracking verification of the package characteristic mark is carried out based on the logistics track.

[0007] Further, Collecting the feature information of the logistics package to obtain the package characteristic mark, and submitting the package characteristic mark to the blockchain network and generating a smart contract include: Collecting the surface image of the logistics package to obtain the appearance feature information, extracting the weight distribution of the logistics package to obtain the structure feature information, and segmenting and encoding the appearance feature information and the structure feature information to obtain the package characteristic mark; Based on the package characteristic mark, the package level is divided, and the differential detection time interval is determined according to the package level. The package features are re-collected at each detection time point to generate detection feature marks; Compare the detection feature mark with the original package characteristic mark. When the comparison result is within the preset error range, confirm the package integrity. When the preset error range is exceeded, trigger an abnormal mark. The abnormal mark contains abnormal feature position information. According to the abnormal mark, the package damage risk level is determined, the subsequent detection time interval is adjusted based on the risk level, and the adjusted detection strategy and the package characteristic mark are submitted to the blockchain network. The blockchain network generates a smart contract according to the package characteristic mark and the detection strategy.

[0008] Further, Segmented encryption processing is performed on the package characteristic mark to obtain a digital anti-counterfeiting code. The package feature information is re-collected during the logistics transportation process to generate a verification mark. The verification mark and the feature mark after decryption of the digital anti-counterfeiting code are compared to generate an anti-counterfeiting verification result, including: Segment the package characteristic mark, divide the appearance feature information into color segments and texture segments, and divide the structure feature information into gravity segments and quality segments. The association mapping between each segment is established through feature indexing; According to the feature type of the segmented segment, the color segment and the texture segment are reversibly encrypted, and the gravity segment and the quality segment are homomorphically encrypted. The encrypted segments are combined according to the association relationship of the feature index to obtain the digital anti-counterfeiting code; During the logistics transportation process, the package feature information is re-collected, the collected package feature information is segmented according to the association mapping of the feature index, and a verification mark with the same segmented structure as the digital anti-counterfeiting code is generated; The digital anti-counterfeit code is decrypted by using the correlation mapping of the feature index, and the original feature identifier obtained by decryption is matched with the verification identifier in segments to generate an anti-counterfeit verification result.

[0009] Further, The in-transit environment data of the logistics package is collected, the environment monitoring threshold is determined according to the package feature identifier, the environment adjustment strategy is executed when the in-transit environment data exceeds the environment monitoring threshold, and the adjustment result is recorded, and the environment monitoring threshold is updated based on the adjustment result, comprising: The initial environment sensitive value is determined from the appearance feature information and the structure feature information in the package feature identifier, the environment sensitive value is accumulated and superimposed according to the logistics transportation time length, and the superimposed environment sensitive value is converted into the environment monitoring threshold; The in-transit environment data of the logistics package is collected, the real-time change amount and the cumulative change amount of the in-transit environment data are calculated, and the environment is determined to be abnormal when any change amount exceeds the environment monitoring threshold; The parameter combination with the best adjustment effect is selected from the historical adjustment record to execute the environment adjustment strategy, and the change trend of the in-transit environment data in the strategy execution process is recorded to obtain the adjustment result; The environment sensitive value is recalculated according to the change trend of the environment data in the adjustment result, the environment monitoring threshold is updated based on the new environment sensitive value, and the updated threshold and the adjustment effect are recorded in the historical adjustment record.

[0010] Further, The logistics risk level is determined according to the anti-counterfeit verification result and the environment adjustment result, and the optimal logistics path is determined from the preset path library according to the logistics risk level, comprising: The anti-counterfeit identifier state in the anti-counterfeit verification result is obtained, the identifier integrity coefficient is calculated, the time decay coefficient is obtained based on the verification time interval, and the product of the integrity coefficient and the time decay coefficient is taken as the anti-counterfeit risk score; The environment parameter data in the environment adjustment result is obtained, the anti-counterfeit risk score is taken as the reference value, the reference value is adjusted according to the continuous change amount of the environment parameter, and the comprehensive risk score is obtained; The comprehensive risk score is compared with the preset risk interval to obtain the logistics risk level, the change direction of the logistics risk level is predicted based on the historical change sequence of the comprehensive risk score, and the logistics risk prediction result is obtained; The candidate logistics path is extracted from the preset path library, the matching degree of the candidate logistics path is calculated according to the logistics risk prediction result, and the candidate logistics path with the highest matching degree is determined as the optimal logistics path.

[0011] Further, The comprehensive risk score is compared with a preset risk interval to obtain a logistics risk level, the change direction of the logistics risk level is predicted based on a historical change sequence of the comprehensive risk score, and a logistics risk prediction result is obtained, including: A historical change sequence of the comprehensive risk score is obtained, a difference between comprehensive risk scores at adjacent time points is calculated to obtain a fluctuation sequence, and a risk turning point is identified based on the fluctuation sequence to obtain a fluctuation feature of the comprehensive risk score; The fluctuation feature is analyzed, a periodic change feature is calculated based on a frequency domain, and a trend change feature is calculated based on a time domain, and the periodic change feature and the trend change feature are combined to obtain a risk evolution feature; The distribution rule of the comprehensive risk score is analyzed based on the risk evolution feature, a boundary value of the preset risk interval is determined, and the comprehensive risk score is mapped to the logistics risk level according to the boundary value; The logistics risk level is analyzed, a stability feature is calculated by calculating the residence time of the logistics risk level, and a conversion feature is calculated by calculating the conversion relationship between adjacent levels, and the stability feature and the conversion feature are combined to obtain a risk prediction basis; The deviation degree of the comprehensive risk score from the boundary value is compared with a preset deviation threshold, and when the early warning condition is met, the change direction of the logistics risk level is determined based on the risk prediction basis to obtain a logistics risk prediction result.

[0012] Further, A verification strategy of a logistics node is planned according to an optimal logistics path, and a node proof is generated, and the logistics track in the smart contract is updated according to the node proof, and the tracking verification of the package feature identifier includes: Obtain the logistics node information in the optimal logistics path, determine the verification time interval based on the distance between adjacent logistics nodes, calculate the verification weight according to the risk level of the logistics node, and generate the verification strategy of the logistics node; Determine the collection dimension of the verification data according to the verification weight, collect the verification data at the logistics node according to the verification time interval, and generate the logistics node data that meets the verification strategy; The logistics node data is processed in layers, the data integrity feature and the verification judgment result are combined to generate a basic proof, the device signature and the timestamp are added to the basic proof, and the logistics node proof is constructed; The logistics node proof is submitted to the blockchain network, and the consensus node verifies the logistics node proof according to the verification strategy to generate a verification result; The verification result is submitted to the smart contract, and when the verification is passed, the logistics node proof is written into the block, the logistics track in the smart contract is updated according to the time sequence of the logistics node proof, and the tracking verification of the package feature identifier is based on the updated logistics track.

[0013] In a second aspect, the application provides a blockchain-based intelligent tracking and anti-counterfeiting system for cross-border logistics, which comprises: a feature collection module configured to collect feature information of a logistics package to obtain a package feature identifier, and submit the package feature identifier to a blockchain network and generate a smart contract; an anti-counterfeiting verification module configured to perform segmented encryption processing on the package feature identifier to obtain a digital anti-counterfeiting code, re-collect feature information of the package during the logistics transportation process and generate a verification identifier, compare the verification identifier with the decrypted feature identifier of the digital anti-counterfeiting code, and generate an anti-counterfeiting verification result; an environment monitoring module configured to collect in-transit environment data of the logistics package, determine an environment monitoring threshold according to the package feature identifier, execute an environment adjustment strategy when the in-transit environment data exceeds the environment monitoring threshold and record an adjustment result, and update the environment monitoring threshold based on the adjustment result; a path planning module configured to determine a logistics risk level according to the anti-counterfeiting verification result and the environment adjustment result, and determine an optimal logistics path from a preset path library according to the logistics risk level; a trajectory verification module configured to plan a verification strategy for a logistics node according to the optimal logistics path, generate a node proof, update a logistics trajectory in the smart contract according to the node proof, and perform tracking verification on the package feature identifier.

[0014] In a third aspect, the application provides an electronic device, which comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of any of the above methods.

[0015] In a fourth aspect, the application provides a computer-readable storage medium, which stores a computer program, wherein the processor executes the computer program to implement the steps of any of the above methods.

[0016] The application has the following advantages: The application realizes tamper-proof storage and trusted sharing of logistics information by submitting the package feature identifier to the blockchain network and generating a smart contract. The accuracy and timeliness of the anti-counterfeiting verification are improved by using a segmented encrypted digital anti-counterfeiting code combined with real-time feature comparison. The environmental monitoring threshold is dynamically adjusted based on the package feature identifier, so that the environmental protection strategy is more targeted. The anti-counterfeiting verification result and the environmental regulation result are fused and analyzed to realize comprehensive evaluation of the logistics risk and provide a reliable basis for path optimization. By collecting multi-dimensional verification data at the logistics node and generating a node proof, a complete logistics track tracking chain is established. The node proof is updated in the logistics track of the smart contract after being verified by the blockchain network, ensuring the authenticity and continuity of the tracking information. The application solves the technical problems of low information credibility, broken tracking chain and poor anti-counterfeiting verification efficiency in cross-border logistics, and improves the tracking and anti-counterfeiting capability of cross-border logistics.

[0017] The above summary of the application is only a summary of the technical solutions of the application. In order to more clearly understand the technical means of the application, the application can be implemented according to the content of the specification, and in order to make the above and other purposes, features and advantages of the application more obvious and easy to understand, the specific embodiments of the application are described below. BRIEF DESCRIPTION OF DRAWINGS

[0018] Other features, objects and advantages of the application will become more apparent from the following detailed description of non-limiting embodiments made with reference to the accompanying drawings. The drawings are only for the purpose of illustrating preferred embodiments and are not considered limiting the application. Moreover, in the entire drawings, the same reference signs represent the same parts.

[0019] Figure 1 A flowchart of a cross-border logistics intelligent tracking and anti-counterfeiting method based on a blockchain provided by an embodiment of the application is shown in the figure. Figure 2 A structure schematic diagram of a cross-border logistics intelligent tracking and anti-counterfeiting system based on a blockchain provided by an embodiment of the application is shown in the figure. Figure 3 A structure schematic diagram of an electronic device provided by an embodiment of the application is shown in the figure. DETAILED DESCRIPTION

[0020] In order to make the purposes, technical solutions and advantages of the application more clear and obvious, the application is further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only the best mode of the application, which are used to explain the application and do not limit the protection scope of the application. All other embodiments obtained by those skilled in the art without creative labor are within the protection scope of the application.

[0021] Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the operations (or steps) as sequential processes, many of the operations (or steps) therein can be performed in parallel, concurrently, or simultaneously. In addition, the order of the operations can be rearranged. The process can be terminated when its operations are completed, but can also have additional steps not included in the figures; the process can correspond to a method, function, procedure, subroutine, subprogram, etc.

[0022] The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. It should also be understood that in various embodiments of the present invention, the size of the sequence number of each process does not mean the order of execution. The order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0023] It should be understood that, in the present invention, "multiple" refers to two or more. "And / or" is merely a variable relationship that describes the associated objects, indicating that three relationships may exist. For example, and / or B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated with each other are in an "or" relationship. "Contains A, B and C", "Contains A, B, C" means that A, B, and C are all included, "Contains A, B or C" means that one of A, B, and C is included, and "Contains A, B and / or C" means that any one, any two, or any three of A, B, and C are included.

[0024] It should be understood that, in the present invention, "B corresponding to A," "B corresponding to A," "A corresponds to B," or "B corresponds to A" means that B is associated with A and B can be determined based on A. Determining B based on A does not mean determining B based solely on A; B can also be determined based on A and / or other information. A and B match when the similarity between A and B is greater than or equal to a preset threshold.

[0025] Example 1 like Figure 1 As shown, Figure 1 A flowchart of a blockchain-based cross-border logistics intelligent tracking and anti-counterfeiting method provided in an embodiment of the present invention. The method includes the following steps: Collecting feature information of a logistics package to obtain a package feature identifier, submitting the package feature identifier to a blockchain network and generating a smart contract; Segmented encryption processing of the package feature identifier to obtain a digital anti-counterfeit code, re-collecting package feature information during the logistics transportation process and generating a verification identifier, comparing the verification identifier with the decrypted feature identifier of the digital anti-counterfeit code to generate an anti-counterfeit verification result; Collecting in-transit environmental data of the logistics package, determining an environmental monitoring threshold according to the package feature identifier, executing an environmental adjustment strategy when the in-transit environmental data exceeds the environmental monitoring threshold and recording the adjustment result, and updating the environmental monitoring threshold based on the adjustment result; Determining a logistics risk level according to the anti-counterfeit verification result and the environmental adjustment result, and determining an optimal logistics path from a preset path library according to the logistics risk level; Planning a verification strategy for a logistics node according to the optimal logistics path, generating a node proof, updating a logistics track in the smart contract according to the node proof, tracking and verifying the package feature identifier based on the logistics track.

[0026] Further, The step of collecting feature information of a logistics package to obtain a package feature identifier, submitting the package feature identifier to a blockchain network and generating a smart contract includes: Collecting surface images of the logistics package to obtain appearance feature information, extracting weight distribution of the logistics package to obtain structural feature information, and segmenting and encoding the appearance feature information and the structural feature information to obtain the package feature identifier; Based on the package feature identifier, the package level is divided, and the differentiated detection time interval is determined according to the package level, and the package feature is re-collected at each detection time point to generate a detection feature identifier; The detection feature identifier is compared with the original package feature identifier, when the comparison result is within a preset error range, the package integrity is confirmed, and when the preset error range is exceeded, an abnormal mark is triggered, and the abnormal mark contains abnormal feature position information; According to the abnormal mark, the package damage risk level is determined, the subsequent detection time interval is adjusted based on the risk level, the adjusted detection strategy is submitted to the blockchain network together with the package feature identifier, and the blockchain network generates a smart contract according to the package feature identifier and the detection strategy.

[0027] In this embodiment, the feature information of the logistics package is first collected to generate a package feature identifier. The feature collection process uses high-definition camera equipment to take pictures of the package surface from multiple angles, obtaining the appearance feature information of the package, including the texture features, color distribution, label position, and possible special marks on the package surface. The resolution of the collection equipment is not less than 12 million pixels, ensuring the capture of small details on the package surface. Image enhancement techniques are applied to the collected images to improve contrast and clarity, and then key visual feature points are extracted using a feature extraction algorithm. This algorithm is based on edge detection and texture analysis techniques and can identify unique texture patterns on the package surface, with the number of extracted feature points typically between 300-500.

[0028] At the same time, the package is weighed and analyzed using a weight sensor array to obtain the weight distribution data of the package as structural feature information. The sensor array consists of 16x16 high-precision pressure sensors with an accuracy of ±0.5 grams, which can capture the spatial distribution of items inside the package. By analyzing the pressure distribution of the package at different positions, a three-dimensional weight distribution map of the package is generated, which can reflect the internal structural characteristics of the package.

[0029] The collected appearance feature information and structural feature information are segmented and encoded to obtain the package feature identifier. In the encoding process, the appearance feature information is encoded using 64 bits, with the first 32 bits representing the main visual features and the last 32 bits representing the secondary visual features; the structural feature information is encoded using 32 bits, representing the weight distribution features. Finally, a 96-bit package feature identifier code is formed, which has uniqueness and tamper resistance.

[0030] Based on the package feature identifier, the package is divided into three levels: A, B, and C, according to the value of the package, the risk level, and the logistics requirements. A-level packages are high-value or fragile items, B-level packages are medium-value items, and C-level packages are regular items. Different levels of packages have different detection time intervals: A-level packages are detected every 4 hours, B-level packages are detected every 8 hours, and C-level packages are detected every 24 hours. At each detection time point, the package features are re-collected and a detection feature identifier is generated.

[0031] During the detection process, the detection feature identifier is compared and analyzed with the original package feature identifier. The comparison uses a feature similarity calculation method to calculate the Hamming distance between the two feature identifiers. When the Hamming distance is less than the preset threshold (usually set to 5% of the total number of bits, i.e. 5 bits), the package integrity is confirmed; when the Hamming distance is greater than the preset threshold, an abnormality flag is triggered. The abnormality flag contains abnormal feature position information, accurately locating which part of the package has an abnormality. For example, in one detection, it was found that the appearance feature of a certain B-level package from 25-28 did not match the original feature, generating an abnormality flag "B-V-25-28", indicating that the visual feature of the B-level package from 25-28 has an abnormality.

[0032] According to the abnormality flag, the risk level of the package damage is determined, which is divided into three levels: low risk, medium risk and high risk. Low risk means that the package has a slight change but does not affect the safety of the contents; medium risk means that the package may be slightly damaged; high risk means that the package may have been severely damaged or tampered with. Based on the risk level, the subsequent detection time interval is adjusted: in the case of low risk, the original detection frequency is maintained; in the case of medium risk, the detection frequency is doubled; in the case of high risk, the detection frequency is increased four times and a warning notice is sent.

[0033] The adjusted detection strategy and package feature identifier are submitted to the blockchain network. The blockchain network uses a consortium chain structure, which is maintained by logistics enterprises, customs departments and trade parties. The submitted data includes package feature identifier, detection strategy, timestamp and location information. After receiving the data, the blockchain network automatically generates a smart contract containing the following clauses: package feature identifier verification rules, detection time arrangement, abnormality handling process and responsibility division clauses.

[0034] After the smart contract is deployed to the blockchain network, it will automatically trigger a detection request at the preset detection time point. After receiving the request, the logistics node performs package feature collection and submits the results to the smart contract for verification. After verification, the smart contract automatically records the package status information; when verification fails, the smart contract records abnormal information and triggers the warning mechanism.

[0035] Exemplarily, a batch of cross-border electronic products is monitored during transportation. The initial feature identification is "0101...1010" (96-bit complete code), and the detection is set to be performed once every 8 hours. At the third detection, it is found that the weight distribution feature of the package changes in the 5th-8th bit, the Hamming distance is 4, which is within the preset error range, and it is determined as a low-risk anomaly. The anomaly is recorded and the original detection frequency is maintained. At the fifth detection, it is found that the appearance feature and the weight distribution of the package have changed significantly, the Hamming distance reaches 12, which exceeds the preset error range, and it is determined as a high-risk anomaly. The detection frequency is adjusted to be performed once every 2 hours, and a warning notice is sent to the relevant party. In this way, the risk of the content of the package being replaced during the logistics process is successfully prevented.

[0036] The method realizes the whole-process traceability, tamper resistance and anomaly early warning of the logistics package, improves the security and reliability of cross-border logistics, and provides strong technical support for cross-border trade.

[0037] Further, The package feature identification is subjected to segmented encryption processing to obtain a digital anti-counterfeiting code. The feature information of the package is re-acquired during the logistics transportation process, and a verification identification is generated. The verification identification is compared with the feature identification after decryption of the digital anti-counterfeiting code to generate an anti-counterfeiting verification result, which includes: The package feature identification is segmented, the appearance feature information is divided into color segments and texture segments, and the structure feature information is divided into gravity segments and quality segments. The correlation mapping between the segments is established through a feature index; According to the feature types of the segments, the color segments and the texture segments are subjected to reversible encryption processing, and the gravity segments and the quality segments are subjected to homomorphic encryption processing. The encrypted segments are combined according to the correlation relationship of the feature index to obtain a digital anti-counterfeiting code; During the logistics transportation process, the feature information of the package is re-acquired, and the acquired feature information of the package is subjected to segmented processing according to the correlation mapping of the feature index to generate a verification identification having the same segmented structure as the digital anti-counterfeiting code; The digital anti-counterfeiting code is decrypted using the correlation mapping of the feature index, and the original feature identification obtained after decryption is subjected to segmented feature matching with the verification identification to generate an anti-counterfeiting verification result.

[0038] In this embodiment, the package feature identifier is first segmented, which includes appearance feature information and structural feature information. The appearance feature information is collected by a high-definition camera device with a resolution of no less than 4K level, and a multi-angle shooting method is adopted to ensure the capture of complete visual information of the package surface. The appearance feature information is divided into color segmentation and texture segmentation. The color segmentation adopts color histogram technology to divide the package surface into 64 regions, and the main color values of the RGB three channels are extracted in each region to form a 192-bit color feature code. The texture segmentation adopts local binary pattern technology to extract the texture features of the package surface to generate a 256-bit texture feature code. The structural feature information is obtained by a weight sensing array composed of 8x8 pressure sensors with an accuracy of ±0.1 grams. The structural feature information is divided into center of gravity segmentation and mass segmentation. The center of gravity segmentation records the coordinate values of the package center of gravity in three-dimensional space, represented by 64 bits; the mass segmentation records the mass distribution of the package at each measurement point, represented by 128 bits.

[0039] The feature index is a key technology for connecting each segment, and a hash table structure is used to realize the association mapping between segments. The feature index includes four key-value pairs, the key is the segment type identifier (C represents color, T represents texture, G represents center of gravity, and M represents mass), and the value is the position and length information of the corresponding segment. For example, C:[0-191] indicates that the color segment is located at 0-191 bits of the feature identifier. Through the feature index, the position of each segment in the feature identifier can be accurately located, and efficient segment processing and feature matching can be realized.

[0040] According to the feature type of the segment, differential encryption processing is performed. The color segment and the texture segment are reversibly encrypted, an improved AES encryption algorithm is adopted, the key length is 256 bits, the encryption process is divided into 16 rounds of iteration, and each round includes byte substitution, row shift, column mixing and round key addition four operations. The encrypted data retains the original length, ensuring that the original feature information can be completely restored after decryption. The center of gravity segment and the mass segment are homomorphically encrypted, and a lattice-based homomorphic encryption technology is adopted. This technology allows specific mathematical operations to be performed in an encrypted state without decrypting the original data. Homomorphic encryption uses a 2048-bit key and supports additive homomorphism and finite multiplicative homomorphism operations. The length of the encrypted data is expanded to twice the original length.

[0041] The encrypted segments are combined according to the association of the feature indexes to form a digital anti-counterfeit code. In the combination process, first, the anti-counterfeit code header is constructed, including version number, timestamp, feature index and other metadata, with a length of 64 bits; then the encrypted color segment, texture segment, barycenter segment and quality segment are added in turn to form a complete digital anti-counterfeit code. The total length of the anti-counterfeit code is 192+256+128+256+64=896 bits, represented in hexadecimal form for easy storage and transmission. The digital anti-counterfeit code is uploaded to the blockchain network together with the basic information of the package. The blockchain uses a consortium chain structure, which is maintained by logistics enterprises, regulatory agencies and trading parties, and uses the PBFT consensus mechanism. Each block can contain 100-200 transaction records, and the block generation time is controlled within 5 seconds.

[0042] At key nodes in the logistics transportation process, such as transfer centers and customs inspection points, the package feature information is re-collected. The collection device is consistent with the initial collection to ensure data comparability. The collected feature information is segmented according to the association mapping of the feature index to generate a verification identifier with the same segmented structure as the digital anti-counterfeit code. For example, color features and texture features are extracted from the collected images to form color segments and texture segments, respectively; the package is weighed and analyzed to extract the barycenter position and quality distribution to form barycenter segments and quality segments.

[0043] The digital anti-counterfeit code is decrypted using the association mapping of the feature index. The digital anti-counterfeit code is obtained from the blockchain network, and each encrypted segment is separated according to the feature index. The color segment and the texture segment are decrypted using the AES decryption algorithm to restore the original color features and texture features; the barycenter segment and the quality segment use the homomorphic encryption feature to directly compare the features in the encrypted domain without full decryption. The original feature identifier obtained by decryption is matched with the verification identifier in segments to calculate the feature similarity. The color segment and the texture segment use the Euclidean distance to calculate the similarity, and the barycenter segment and the quality segment use the weighted Hamming distance to calculate the similarity.

[0044] The anti-counterfeit verification result is generated according to the feature matching result. The similarity threshold is set: the color segment threshold is 0.85, the texture segment threshold is 0.80, the barycenter segment threshold is 0.90, and the quality segment threshold is 0.85. When the similarity of each segment is higher than the corresponding threshold, it is determined to be verified; when the similarity of any segment is lower than the corresponding threshold but higher than the warning threshold (which is 90% of the corresponding threshold), it is determined to be suspicious; when the similarity of any segment is lower than the warning threshold, it is determined to be failed. The verification result includes the overall conclusion, the similarity value of each segment, the abnormal segment identifier and the abnormality degree evaluation.

[0045] The application realizes the security protection and efficient verification of the package features by using the segmented encryption processing and homomorphic encryption technology, solves the problems of easy leakage of feature information and complex verification process in traditional anti-counterfeiting technology, and combines the characteristics of the tamper-proof blockchain to build a traceable and verifiable cross-border logistics anti-counterfeiting system, thereby improving the security and reliability of logistics transportation and providing strong anti-counterfeiting protection for cross-border trade.

[0046] Further, The environment data of the logistics package in transit is collected, the environment monitoring threshold is determined according to the package feature identifier, the environment adjustment strategy is executed and the adjustment result is recorded when the in-transit environment data exceeds the environment monitoring threshold, and the environment monitoring threshold is updated based on the adjustment result, comprising: The initial environment sensitive value is determined from the appearance feature information and the structure feature information in the package feature identifier, the environment sensitive value is accumulated and superimposed according to the length of the logistics transportation, and the superimposed environment sensitive value is converted into the environment monitoring threshold; The environment data of the logistics package in transit is collected, the real-time change and the cumulative change of the in-transit environment data are calculated, and the environment is determined to be abnormal when any change exceeds the environment monitoring threshold; The parameter combination with the best adjustment effect is selected from the historical adjustment record to execute the environment adjustment strategy, and the change trend of the in-transit environment data in the strategy execution process is recorded to obtain the adjustment result; The environment sensitive value is recalculated according to the change trend of the environment data in the adjustment result, the environment monitoring threshold is updated based on the new environment sensitive value, and the updated threshold and the adjustment effect are recorded in the historical adjustment record.

[0047] Exemplarily, the appearance feature information and the structure feature information are extracted from the package feature identifier, the appearance feature information includes parameters such as the surface material type, color stability and surface treatment process of the package, which directly affect the sensitivity of the package to temperature, humidity and light. Image recognition technology is used to analyze the surface material of the package. In specific implementation, a convolutional neural network model is used for material identification, which includes 5 convolutional layers and 3 fully connected layers, and the pre-training sample exceeds 100,000 common packaging materials, with an identification accuracy of more than 95%. The identification result is divided into categories such as plastic film, paper, fabric, metal and composite material, and different material categories correspond to different environment sensitive basic values. For example, the temperature sensitive basic value of paper packaging is 7, the humidity sensitive basic value is 9, and the light sensitive basic value is 5; the corresponding values of metal packaging are 3, 2 and 1 respectively.

[0048] The structural feature information is obtained through a weight sensing array, reflecting the weight distribution and structural characteristics of the items inside the package. The sensing array is composed of 10x10 pressure sensors with an accuracy of ±0.05 grams, which real-time collects the stress conditions of the package. By analyzing the pressure distribution data, the fragility and stability of the items inside the package can be determined, and the environmental sensitivity value is further corrected. For example, a package with uniform pressure distribution has high stability, and the sensitivity correction coefficient is 0.8; a package with uneven pressure distribution has low stability, and the sensitivity correction coefficient is 1.2. Through comprehensive evaluation of appearance features and structural features, the initial environmental sensitivity value of the package is obtained, including temperature sensitivity, humidity sensitivity, light sensitivity, and vibration sensitivity.

[0049] The environmental sensitivity value is accumulated and superimposed according to the length of the logistics transportation. The length of the logistics transportation is calculated from the time of package delivery, and the processing time of each node is recorded through the blockchain network. The accumulation and superposition adopts a non-linear growth model, with a growth rate of 5% / hour within the first 24 hours, a growth rate of 3% / hour within 24-72 hours, and a growth rate of 1% / hour after 72 hours. For example, the initial temperature sensitivity value of a certain paper package is 7, and the cumulative superimposed value after 48 hours of transportation is 7x(1+5%×24+3%×24)=11.76. The superimposed environmental sensitivity value is converted into environmental monitoring thresholds, and the conversion process considers the package type and transportation method. For ordinary packages, the temperature monitoring threshold is ±(sensitivity value x 0.5)℃, the humidity monitoring threshold is ±(sensitivity value x 2)%RH, the light monitoring threshold is sensitivity value x 100 lux, and the vibration monitoring threshold is sensitivity value x 0.3g. For special items such as medicines and precision instruments, stricter conversion coefficients can be set.

[0050] The in-transit environmental data collection of logistics packages is achieved through a sensor network built into the transportation container or vehicle. The sensor network includes temperature sensors (accuracy ±0.1℃), humidity sensors (accuracy ±1%RH), light sensors (accuracy ±10 lux), and vibration sensors (accuracy ±0.05g) with a sampling frequency of 1 time / minute. Sensor data is transmitted to edge computing nodes through a low-power wide-area network and uploaded to the blockchain network after preliminary processing. The real-time change and cumulative change of in-transit environmental data are calculated, with the real-time change being the difference between adjacent two sampling data and the cumulative change being the standard deviation of data within a certain time window (usually 1 hour). When any change exceeds the environmental monitoring threshold, it is determined as an environmental anomaly. For example, the temperature monitoring threshold of a certain package is ±3.5℃, and when the temperature real-time change exceeds 3.5℃ or the temperature standard deviation within 1 hour exceeds 3.5℃, the environmental anomaly processing is triggered.

[0051] The environmental anomaly handling adopts the optimal parameter combination in the historical adjustment record to execute the environmental adjustment strategy. The historical adjustment record is stored in the blockchain network, containing information such as anomaly type, adjustment parameter combination, and execution effect score. The adjustment effect score is calculated based on the environmental parameter recovery speed, energy consumption, and stability, with a score range of 1-10. From the historical record, the parameter combination with the highest score under the same anomaly type is selected. If there is no historical record of the same type, the preset basic parameter combination is used. The environmental adjustment strategy includes temperature adjustment (cooling / heating), humidity adjustment (humidification / dehumidification), light adjustment (shading / light supplement), and vibration adjustment (damping / fixed), etc. During the execution of the strategy, the change trend of environmental data is recorded in real time, including the change rate, stability time, and fluctuation amplitude, forming the adjustment result data.

[0052] Taking temperature anomaly as an example, when detecting that the temperature is too high, the adjustment strategy may include starting the cooling device, adjusting the direction of the air vent, optimizing the space layout, etc. From the historical record, the best parameter combination under similar circumstances is selected, such as cooling device power 75%, air vent opening 60%, and running time 20 minutes, etc. After executing this parameter combination, the temperature change trend is monitored: temperature drop rate 0.2℃ / min, stable after 10 minutes, fluctuation amplitude ±0.3℃, energy consumption 0.4kWh. According to these data, the adjustment effect score is calculated and recorded in the historical adjustment record.

[0053] The environmental sensitivity value is recalculated according to the change trend of environmental data in the adjustment result. The change trend reflects the actual sensitivity of the package to environmental changes. The faster the change rate and the larger the fluctuation amplitude, the higher the environmental sensitivity of the package. The original environmental sensitivity value is corrected using the weighted average of the change rate and the fluctuation amplitude, with the weighting coefficients dynamically adjusted according to the anomaly type and degree. Generally, the change rate weight is 0.6 and the fluctuation amplitude weight is 0.4. Based on the new environmental sensitivity value, the environmental monitoring threshold is updated, and the updated threshold and adjustment effect are recorded in the historical adjustment record of the blockchain network. The blockchain uses a consortium chain structure, which is maintained by logistics enterprise nodes, regulatory agency nodes, and technical service nodes, and uses a practical Byzantine fault tolerance algorithm to ensure data consistency. Each block contains environmental data, adjustment record, and threshold update information.

[0054] In this embodiment, through real-time environmental monitoring and intelligent adjustment, the transportation safety of cross-border logistics packages is effectively guaranteed. Combined with the blockchain technology to record environmental data and adjustment process, full traceability and clear responsibility are achieved. The adaptive threshold updating mechanism makes the environmental monitoring more accurate, improves the anomaly recognition rate and processing efficiency, and reduces the risk of package damage, providing strong support for the cross-border transportation of high-value and environmentally sensitive goods.

[0055] Further, The method comprises the following steps: The anti-counterfeiting identification state in the anti-counterfeiting verification result is obtained, an identification integrity coefficient is calculated, a time decay coefficient is obtained based on a verification time interval, and the product of the integrity coefficient and the time decay coefficient is taken as an anti-counterfeiting risk score; The environmental parameter data in the environmental regulation result is obtained, the anti-counterfeiting risk score is taken as a reference value, the reference value is adjusted according to the continuous change of the environmental parameter, and a comprehensive risk score is obtained; The comprehensive risk score is compared with a preset risk interval to obtain a logistics risk level, the change direction of the logistics risk level is predicted based on a historical change sequence of the comprehensive risk score, and a logistics risk prediction result is obtained; A candidate logistics path is extracted from a preset path library, a matching degree of the candidate logistics path is calculated according to the logistics risk prediction result, and the candidate logistics path with the highest matching degree is determined as the optimal logistics path.

[0056] The anti-counterfeiting identification state in the anti-counterfeiting verification result is calculated. The anti-counterfeiting identification state contains feature point matching data, which is obtained by scanning the features of the package. The scanning device uses a high-precision image acquisition system with a resolution of not less than 32 million pixels, and is equipped with multi-angle light sources to ensure the capture of micro features on the surface of the package. The anti-counterfeiting identification contains 300-500 feature points, each feature point has a unique position coordinate and a feature value. The identification integrity coefficient is calculated by comparing the current feature points with the initial feature points, and the calculation method is to divide the number of effective feature points by the total number of initial feature points. The effective feature points refer to the feature points with a feature value deviation within a preset threshold range, and the preset threshold is usually set to twice the standard deviation of the feature value. For example, if the initial feature points of a package are 450 and the current scanning detects 420 effective feature points, the identification integrity coefficient is 420 / 450=0.933.

[0057] The time decay coefficient is obtained based on the verification time interval, which reflects the natural decay of the anti-counterfeiting identification over time. The verification time interval refers to the time difference from the generation of the initial anti-counterfeiting identification to the current verification, in hours. The time decay coefficient is calculated using an exponential decay model, and the baseline decay rate varies depending on the type of package: 0.0005 / hour for ordinary packages, 0.001 / hour for environmentally sensitive packages, and 0.0002 / hour for high-value packages. The anti-counterfeiting risk score ranges from 0 to 1, and the higher the value, the higher the integrity of the package anti-counterfeiting identification and the lower the risk.

[0058] The environmental parameter data in the environmental regulation result is the basis for adjusting the anti-counterfeiting risk score. The environmental parameter data includes temperature, humidity, light intensity, and vibration intensity, and the data is derived from the sensor network in the logistics transportation container. The sensor sampling frequency is once per minute, the data is transmitted to the edge computing node through the low-power wide-area network, and after preliminary processing, it is uploaded to the blockchain network. The environmental parameter data is stored in the form of a smart contract on the blockchain, ensuring data authenticity and tamper resistance. The anti-counterfeiting risk score is used as the baseline value, and the baseline value is adjusted according to the continuous change of the environmental parameters to obtain the comprehensive risk score. The continuous change refers to the change amplitude of the environmental parameters within a continuous monitoring period, and the calculation method is the maximum value minus the minimum value divided by the preset safety range. Different parameters have different weight coefficients: temperature weight is 0.4, humidity weight is 0.3, light weight is 0.1, and vibration weight is 0.2.

[0059] The calculation of the comprehensive risk score uses a weighted adjustment method. When the continuous change of the environmental parameters exceeds the threshold value, the baseline value is deducted according to the exceeding degree; when the change is within the threshold range, the baseline value remains unchanged. For example, the anti-counterfeiting risk score of a package is 0.899, and the temperature continuous change is 5°C (1.67 times the preset safety range of 3°C), so the temperature adjustment coefficient is 0.4 multiplied by (1.67-1), which is 0.268; other parameters are within the safety range, and the adjustment coefficient is 0. The comprehensive risk score is 0.899 minus 0.268, which equals 0.631. The comprehensive risk score range is 0-1, and the smaller the value, the higher the logistics risk.

[0060] The comprehensive risk score is compared with the preset risk interval to obtain the logistics risk level. The risk interval is divided into five levels: 0.9-1.0 is low risk (level 1), 0.7-0.9 is lower risk (level 2), 0.5-0.7 is medium risk (level 3), 0.3-0.5 is higher risk (level 4), and 0-0.3 is high risk (level 5). In the above example, the comprehensive risk score 0.631 corresponds to a logistics risk level of level 3, which is a medium risk. Based on the historical change sequence of the comprehensive risk score, the change direction of the logistics risk level is predicted to obtain the logistics risk prediction result. The prediction uses a long short-term memory (LSTM) model, which includes two LSTM layers and one fully connected layer, the input is the comprehensive risk score sequence of the past 24 hours, and the output is the risk level prediction of the next 6 hours.

[0061] Extracting candidate logistics paths from the preset path library is a key step for determining the optimal logistics path. The preset path library is stored in the blockchain network and contains information such as the connection relationship between logistics nodes, transportation time, transportation cost, and historical risk rating. The path library is updated regularly to maintain the timeliness of the data. When extracting candidate logistics paths, first, filter the feasible paths according to the starting point and the ending point, and then perform preliminary screening according to the current time window and transportation requirements. Usually, 5-10 candidate paths are selected for subsequent analysis. According to the logistics risk prediction result, the matching degree of the candidate logistics path is calculated, which considers the path risk adaptability, timeliness, and cost. The risk adaptability refers to whether the path can adapt to the predicted risk change, and the calculation method is the degree of fit between the risk bearing capacity of each segment of the path and the predicted risk. The timeliness refers to whether the path can meet the delivery time requirement. The cost refers to the total transportation cost of the path. The weights of the three factors are 0.5, 0.3, and 0.2, respectively.

[0062] The specific process of matching degree calculation is as follows: for each candidate path, divide it into several segments, each corresponding to a different logistics node. Calculate the risk adaptability score of each segment by subtracting the absolute value of the predicted risk level from the risk bearing level of the segment, and then subtracting 5 from the absolute value. The risk bearing level of the segment comes from historical data statistics and represents the highest risk level that the segment can bear. Calculate the timeliness score by dividing the total path time by the required delivery time, and calculate the cost score by dividing the total path cost by the budget cost. The path matching degree is obtained by weighted average of the three scores, ranging from 0 to 5 points, and the higher the score, the better the matching degree. The candidate logistics path with the highest matching degree is determined as the optimal logistics path.

[0063] The present application realizes accurate assessment and prediction of logistics risk by fusing anti-counterfeiting verification and environmental monitoring data, intelligently selects the optimal logistics path based on the risk prediction result, and effectively improves the safety and reliability of cross-border logistics. Combined with the blockchain technology to record the risk assessment and path selection process, it realizes the whole process traceability and clear responsibility, provides strong technical support for cross-border trade, significantly reduces the risk of logistics loss, and improves the logistics efficiency and user satisfaction.

[0064] Further, The comprehensive risk score is compared with the preset risk interval to obtain the logistics risk level, and the change direction of the logistics risk level is predicted based on the historical change sequence of the comprehensive risk score to obtain the logistics risk prediction result, including: The historical change sequence of the comprehensive risk score is obtained, the difference value of the comprehensive risk score at adjacent time points is calculated to obtain the fluctuation sequence, and the risk turning point is identified based on the fluctuation sequence to obtain the fluctuation characteristics of the comprehensive risk score; The fluctuation characteristics are analyzed, the periodic change characteristics are calculated based on the frequency domain, the trend change characteristics are calculated based on the time domain, and the risk evolution characteristics are obtained by combining the periodic change characteristics and the trend change characteristics; The distribution rule of the comprehensive risk score is analyzed based on the risk evolution characteristics, the demarcation value of the preset risk interval is determined, and the comprehensive risk score is mapped to the logistics risk level according to the demarcation value; The logistics risk level is analyzed, the stability characteristics are calculated by calculating the residence time of the logistics risk level, the conversion characteristics are calculated by calculating the conversion relationship between adjacent levels, and the risk prediction basis is obtained by combining the stability characteristics and the conversion characteristics; The deviation degree of the comprehensive risk score and the demarcation value is compared with the preset deviation threshold, the change direction of the logistics risk level is determined based on the risk prediction basis when the early warning condition is met, and the logistics risk prediction result is obtained.

[0065] The historical change sequence of the comprehensive risk score is the basis for identifying the risk fluctuation characteristics. The risk score data of at least 96 time points is extracted from the blockchain network, and the time interval is 30 minutes. The difference value of the scores of adjacent time points is calculated to obtain the fluctuation sequence, and the positive value represents the risk reduction and the negative value represents the risk increase. The sliding window method is used to identify the risk turning point, and the window size is 5 time points. When the fluctuation value in the window changes in sign and the amplitude exceeds 0.02, it is determined as a turning point. By analyzing the distribution of the turning points in the historical data, the fluctuation characteristics of the comprehensive risk score are obtained, including the fluctuation frequency, the fluctuation amplitude and the fluctuation duration.

[0066] The fluctuation characteristics are analyzed, the periodic change characteristics are calculated based on the frequency domain. The periodic change characteristics reflect the regularity of the risk score change, and the fast Fourier transform algorithm is used for frequency spectrum analysis of the fluctuation sequence. After preprocessing the fluctuation sequence, the fast Fourier transform is applied, the time domain data is converted into frequency domain data, and the main frequency components and their amplitudes are extracted. The trend change characteristics are calculated based on the time domain, and the long-term trend of the fluctuation sequence is extracted by using the polynomial fitting method. The fitting uses a cubic polynomial, and the coefficients are determined by the least squares method. The slope of the fitting curve reflects the long-term trend of the risk change. The risk evolution characteristics are obtained by combining the periodic change characteristics and the trend change characteristics, and the combination method is to multiply the periodic characteristic value by the direction coefficient of the trend characteristic (1 for rising and-1 for falling), to obtain the risk evolution index.

[0067] Based on the risk evolution characteristics, the distribution pattern of the comprehensive risk score is analyzed to determine the cutoff value for the preset risk interval. Optionally, this distribution pattern analysis utilizes a kernel density estimation method, which constructs a probability density function for the risk score based on historical data. A Gaussian kernel is used as the kernel function, and the bandwidth parameter is determined using an adaptive method. By analyzing the peaks and valleys of the probability density function, the cluster center and natural cutoff point of the risk score are determined. The cutoff value is set at the local minimum of the probability density function. The risk interval is typically divided into five levels: very low risk (0.9-1.0), low risk (0.75-0.9), medium risk (0.6-0.75), high risk (0.4-0.6), and very high risk (0-0.4). Logistics risk levels are analyzed, and the dwell time of each logistics risk level is calculated to determine the stability characteristic. Dwell time refers to the length of a continuous period during which the risk level remains constant. It is calculated by summarizing the mean and standard deviation of the durations for each risk level in the historical data. The stability characteristic is represented by the coefficient of variation of the dwell time, which is the standard deviation divided by the mean. A smaller value indicates higher stability. The conversion relationship between adjacent levels is calculated to obtain the conversion characteristics, and the conversion relationship includes conversion probability and conversion condition.

[0068] Transition probabilities are calculated by counting the transition frequencies between adjacent levels in historical data, forming a transition probability matrix. Transition conditions, which represent typical scenarios and thresholds that trigger level transitions, are extracted from historical data using a decision tree algorithm. Stability and transition characteristics are combined to form a basis for risk prediction. This combination is achieved by constructing a Bayesian network model, which takes as input the current risk level, dwell time, and environmental conditions, and outputs a probability distribution for the next risk level.

[0069] The degree of deviation between the comprehensive risk score and the cutoff value is compared with the preset deviation threshold. When the warning conditions are met, the direction of change in the logistics risk level is determined. The deviation degree is calculated by dividing the difference between the score and the nearest cutoff value by the distance between the two adjacent cutoff values. For example, if the score is 0.73, the nearest cutoff value is 0.75, and the distance between adjacent cutoff values ​​is 0.15, the deviation degree is (0.75-0.73) / 0.15 = 0.133. The preset deviation threshold is typically set at 0.2. When the deviation degree exceeds the threshold, the warning condition is triggered.

[0070] Based on the risk prediction basis, the direction of change in the logistics risk level is determined. Optionally, the current risk status is input into the Bayesian network model to calculate the transition probability of each risk level, and the direction with the highest probability is selected as the prediction result. The prediction result and related evidence are recorded in the blockchain network to form the logistics risk prediction result.

[0071] The application realizes accurate classification and prediction of logistics risk levels by in-depth analysis of the historical change sequence of the comprehensive risk score, providing a scientific basis for logistics path optimization. This method combines blockchain technology to record risk data and prediction results, ensuring data authenticity and non-tamperability, and achieving cross-border logistics risk visualization and early warning. By identifying risk evolution patterns and turning points, the direction of risk change is predicted in advance, significantly improving the safety and reliability of logistics transportation, providing strong support for cross-border transportation of high-value goods.

[0072] Further, The verification strategy of the logistics node is planned according to the optimal logistics path, and the node proof is generated. The logistics track in the smart contract is updated according to the node proof, and the tracking verification of the package feature identifier includes: Obtain the logistics node information in the optimal logistics path, determine the verification time interval based on the distance between adjacent logistics nodes, calculate the verification weight according to the risk level of the logistics node, and generate the verification strategy of the logistics node; Determine the collection dimension of the verification data according to the verification weight, collect the verification data at the logistics node according to the verification time interval, and generate the logistics node data that meets the verification strategy; Layered processing is performed on the logistics node data, the data integrity features and verification judgment results are combined to generate a basic proof, a device signature and a timestamp are added to the basic proof, and a logistics node proof is constructed; Submit the logistics node proof to the blockchain network, and the consensus node verifies the logistics node proof according to the verification strategy to generate a verification result; Submit the verification result to the smart contract, and write the logistics node proof to the block when the verification is passed, update the logistics track in the smart contract according to the time sequence of the logistics node proof, and track and verify the package feature identifier based on the updated logistics track.

[0073] Exemplarily, the logistics node information in the optimal logistics path is acquired, and the logistics node information includes node type, geographic position coordinates, function attribute, and historical risk rating, etc. The node type is divided into starting node, transfer node, and terminal node; the function attribute includes storage, loading and unloading, customs clearance, and distribution, etc. The verification time interval is determined based on the distance between adjacent logistics nodes, and the calculation method is that the distance between two nodes is divided by the preset average transportation speed, and then the basic operation time is added. For example, the distance between two nodes is 300 kilometers, the average transportation speed is 60 kilometers / hour, and the basic operation time is 2 hours, then the verification time interval is 7 hours. The fluctuation range allowed by the verification time interval is related to the path risk level, the low-risk path allows ±15% fluctuation, the medium-risk path allows ±10% fluctuation, and the high-risk path allows ±5% fluctuation. The verification weight is calculated according to the risk level of the logistics node, and the risk level is obtained by historical data analysis, which is divided into five levels: extremely low risk (level 1), low risk (level 2), medium risk (level 3), high risk (level 4), and extremely high risk (level 5). The verification weight calculation method is that the risk level is multiplied by the basic coefficient 0.2, for example, the verification weight of the node with the risk level of level 4 is 0.8. The verification strategy of the logistics node is generated, including verification time interval, verification data dimension, data collection frequency, and verification passing standard, etc.

[0074] The collection dimension of the verification data is determined according to the verification weight, and the verification weight is positively correlated with the collection dimension. The collection dimension includes basic dimension (position, time), identification dimension (package characteristic code), environment dimension (temperature and humidity, illumination, vibration), and interaction dimension (operation record, handover voucher). The nodes with verification weight lower than 0.4 collect basic dimension and identification dimension; the nodes with verification weight of 0.4-0.6 increase environment dimension; the nodes with verification weight higher than 0.6 collect all four dimensions. The verification data is collected at the logistics node according to the verification time interval, and the collection equipment includes high-precision positioning module (accuracy ±3 meters), environment sensor group (temperature accuracy ±0.2℃, humidity accuracy ±2%RH), characteristic scanner (resolution not less than 12 million pixels), and electronic operation terminal. For high-risk nodes, monitoring camera equipment is added for video recording. The logistics node data meeting the verification strategy is generated, and the data format adopts JSON structure, including node identification, timestamp, position coordinates, package characteristic code, environment parameters, and operation record, etc.

[0075] The logistics node data is processed in layers, and the layered structure includes a data layer, an integrity layer, and a verification layer. The data layer stores raw collected data; the integrity layer calculates data integrity features through a hash algorithm, and generates a 32-byte hash value using the SHA-256 algorithm; the verification layer includes verification determination results, and the determination method is to compare the collected data with the verification policy requirements, check whether the time is within the verification interval, whether the collection dimension meets the requirements, and whether the data is within the valid range. The data integrity features and the verification determination results are combined to generate a basic proof, and the combination method is to splice the verification determination results (Boolean values) and the integrity hash values. A device signature and a timestamp are added to the basic proof, the device signature uses the elliptic curve digital signature algorithm (ECDSA), and the built-in private key of the device is used to sign the basic proof to ensure the credibility of the data source; the timestamp is obtained from a time service server, and the precision is millisecond level. A logistics node proof is constructed, and the proof structure includes a proof header (version number, proof type), basic proof content, device signature, and timestamp.

[0076] The logistics node proof is submitted to the blockchain network in an asynchronous manner, and a transaction request is first generated and then broadcast to the network. The blockchain network is a consortium chain structure, which is jointly maintained by logistics enterprises, regulatory agencies, and technology service providers, and the total number of nodes is 21. The consensus nodes verify the logistics node proof according to the verification policy, and the verification process includes signature verification, timestamp verification, and data rule verification. The signature verification checks whether the device signature is valid to confirm that the data has not been tampered with; the timestamp verification checks whether the proof generation time is within a reasonable range; and the data rule verification checks whether the node data meets the provisions of the verification policy. At least 14 nodes (2 / 3) need to pass the verification to generate a valid verification result.

[0077] The verification result is submitted to the smart contract, which is deployed on the blockchain network and uses a scalable design pattern to support subsequent function extension. When the verification is passed, the logistics node proof is written into a block, and the block structure includes a previous block hash, a timestamp, a transaction root, and a node proof set. The logistics track in the smart contract is updated according to the time sequence of the logistics node proof, and the update method is to add a new node record to the track array, and the record includes a node identifier, a timestamp, a location coordinate, and a proof hash. Based on the updated logistics track, the package feature identifier is tracked and verified, the tracking verification uses a space-time consistency check to verify whether the time and space changes between adjacent nodes are reasonable, and triggers an early warning mechanism when an anomaly is found.

[0078] The application realizes trusted tracking and anti-fake verification of the whole logistics process by planning the verification strategy of the logistics node, collecting multi-dimensional verification data at the logistics node and generating node proof, and combining the tamper-proof feature of the block chain technology. According to the node risk level, the method dynamically adjusts the verification strength, improves the verification efficiency and reliability, and solves the problem that the data authenticity is difficult to guarantee in the traditional logistics tracking. Through the automatic update of the logistics track by the smart contract, the real-time monitoring and abnormal early warning of cross-border logistics are realized, the logistics risk is effectively reduced, and the security and credibility of cross-border trade are improved.

[0079] Embodiment two As Figure 2 shown, Figure 2 is a structural schematic diagram of a cross-border logistics intelligent tracking and anti-fake system based on a block chain. The cross-border logistics intelligent tracking and anti-fake system based on the block chain comprises: A feature acquisition module is configured to acquire feature information of a logistics package to obtain a package feature identifier. An anti-fake verification module is configured to perform segmented encryption processing on the package feature identifier to obtain a digital anti-fake code. In the logistics transportation process, the feature information of the package is re-acquired and a verification identifier is generated. The verification identifier is compared with the feature identifier decrypted from the digital anti-fake code, and an anti-fake verification result is generated. An environment monitoring module is configured to acquire in-transit environment data of the logistics package, determine an environment monitoring threshold according to the package feature identifier, execute an environment adjustment strategy when the in-transit environment data exceeds the environment monitoring threshold, and record an adjustment result. The environment monitoring threshold is updated based on the adjustment result. A path planning module is configured to determine a logistics risk level according to the anti-fake verification result and the environment adjustment result, and determine an optimal logistics path from a preset path library according to the logistics risk level. A track verification module is configured to plan a verification strategy of a logistics node according to the optimal logistics path, and generate a node proof. The logistics track in the smart contract is updated according to the node proof, and the package feature identifier is tracked and verified.

[0080] Referring to Figure 3 , Figure 3 is a structural schematic diagram of an electronic device provided by an embodiment of the application, as Figure 3 shown, comprising a memory, a processor, and a computer program of a data management method stored on the memory and executable on the processor, wherein: The processor is configured to call the computer program stored in the memory to perform the following steps: Acquire feature information of a logistics package to obtain a package feature identifier. The package feature identifier is submitted to a block chain network and a smart contract is generated. The parcel characteristic mark is subjected to segmented encryption to obtain a digital anti-fake code, the parcel characteristic information is re-acquired in the logistics transportation process to generate a verification mark, the verification mark is compared with the characteristic mark decrypted from the digital anti-fake code to generate an anti-fake verification result; In-transit environment data of the logistics parcel is acquired, the environment monitoring threshold is determined according to the parcel characteristic mark, when the in-transit environment data exceeds the environment monitoring threshold, the environment adjustment strategy is executed and the adjustment result is recorded, and the environment monitoring threshold is updated based on the adjustment result; The logistics risk level is determined according to the anti-fake verification result and the environment adjustment result, and the optimal logistics path is determined from the preset path library according to the logistics risk level; The verification strategy of the logistics node is planned according to the optimal logistics path, the node proof is generated, the logistics track in the smart contract is updated according to the node proof, the parcel characteristic mark is tracked and verified, and the parcel characteristic mark is tracked and verified based on the logistics track.

[0081] The electronic device provided by the embodiment of the application can realize each process of the method in the method embodiment, and the same beneficial effects can be achieved. To avoid repetition, details are not repeated here.

[0082] It should be noted that the electronic device herein is a device capable of automatically performing numerical calculation and / or information processing according to pre-set or stored instructions, and the hardware thereof includes but is not limited to a microprocessor, an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a digital signal processor (DSP), an embedded device, etc. The electronic device can be a desktop computer, a notebook computer, a palm computer, a cloud server, and other computing devices. The electronic device can perform human-computer interaction through a keyboard, a mouse, a remote controller, a touchpad, a voice control device, or the like.

[0083] The embodiment of the application further provides a computer readable storage medium, and the computer readable storage medium stores a computer program, the computer program is executed by a processor to realize each process of the method provided by the embodiment of the application, and the same technical effects can be achieved. To avoid repetition, details are not repeated here.

[0084] It should be noted that the readable storage medium includes a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory can be an internal storage unit of the electronic device, such as a hard disk or a memory of the electronic device. In other embodiments, the memory can also be an external storage device of the electronic device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device. Of course, the memory can also include both the internal storage unit and the external storage device of the electronic device. In the present embodiment, the memory is generally used to store an operating system and various application software installed on the electronic device, such as program codes of the blockchain-based cross-border logistics intelligent tracking and anti-counterfeiting method, etc. In addition, the memory can also be used to temporarily store various data that have been output or will be output.

[0085] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, can include the processes of the above-mentioned embodiments. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM), etc.

[0086] The above-described specific embodiments are preferred embodiments of the present application, and are not intended to limit the specific implementation range of the present application. The scope of the present application includes, but is not limited to, the above-described specific embodiments. Any equivalent changes made in accordance with the shape and structure of the present application are within the scope of protection of the present application.

Claims

1. A cross-border logistics intelligent tracking and anti-counterfeiting method based on blockchain, characterized by: The following steps are involved: Collecting characteristic information of logistics packages to obtain package characteristic identification, submitting the package characteristic identification to the blockchain network and generating a smart contract; The package feature identifier is encrypted in sections to obtain a digital anti-counterfeiting code. During the logistics transportation process, the package feature information is re-collected and a verification identifier is generated. The verification identifier is compared with the feature identifier after decryption of the digital anti-counterfeiting code to generate an anti-counterfeiting verification result. Collecting in-transit environmental data of logistics packages, determining environmental monitoring thresholds based on package feature identifiers, executing environmental adjustment strategies and recording adjustment results when in-transit environmental data exceeds the environmental monitoring thresholds, and updating the environmental monitoring thresholds based on the adjustment results; Determine the logistics risk level based on the anti-counterfeiting verification results and environmental adjustment results, and determine the optimal logistics route from the preset route library based on the logistics risk level; Plan the verification strategy of logistics nodes according to the optimal logistics path, generate node proof, update the logistics track in the smart contract according to the node proof, and track and verify the package feature identification.

2. The method according to claim 1, characterized in that Collecting the characteristic information of the logistics package to obtain the package characteristic identifier, submitting the package characteristic identifier to the blockchain network and generating a smart contract includes: Collecting a surface image of the logistics package to obtain appearance feature information, extracting the weight distribution of the logistics package to obtain structural feature information, and segmentally encoding the appearance feature information and structural feature information to obtain a package feature identifier; Classify the parcels based on the parcel feature identifier, determine differentiated detection time intervals according to the parcel class, re-collect the parcel features at each detection time point and generate a detection feature identifier; Comparing the detected feature identifier with the original package feature identifier, confirming the package integrity when the comparison result is within a preset error range, and triggering an abnormality mark when the comparison result exceeds the preset error range, wherein the abnormality mark includes the abnormal feature location information; The package damage risk level is determined according to the abnormal mark, and the subsequent detection time interval is adjusted based on the risk level. The adjusted detection strategy and the package feature identifier are submitted to the blockchain network together. The blockchain network generates a smart contract based on the package feature identifier and the detection strategy.

3. The method according to claim 1, characterized in that The package feature identifier is encrypted in sections to obtain a digital anti-counterfeiting code. During the logistics transportation process, the package feature information is re-collected and a verification identifier is generated. The verification identifier is compared with the feature identifier after decryption of the digital anti-counterfeiting code to generate the anti-counterfeiting verification results, including: Segment the package feature identifiers, dividing the appearance feature information into color segmentation and texture segmentation, and the structural feature information into center of gravity segmentation and mass segmentation, and establish the association mapping between the segments through feature indexing; According to the feature type of the segment, the color segment and texture segment are reversibly encrypted, and the center of gravity segment and mass segment are homomorphically encrypted. The encrypted segments are combined according to the correlation relationship of the feature index to obtain a digital anti-counterfeiting code; Recollecting package feature information during the logistics transportation process, segmenting the collected package feature information according to the association mapping of the feature index, and generating a verification mark with the same segment structure as the digital anti-counterfeiting code; The digital anti-counterfeiting code is decrypted using the association mapping of the feature index, and the original feature identifier obtained by decryption is matched with the verification identifier by segmented features to generate an anti-counterfeiting verification result.

4. The method according to claim 1, wherein Collecting in-transit environmental data of logistics packages, determining environmental monitoring thresholds based on package feature identifiers, executing environmental adjustment strategies and recording adjustment results when in-transit environmental data exceeds the environmental monitoring thresholds, and updating environmental monitoring thresholds based on the adjustment results include: Determine an initial environmental sensitivity value from the appearance feature information and structural feature information in the package feature identifier, accumulate and superimpose the environmental sensitivity value according to the logistics transportation time, and convert the superimposed environmental sensitivity value into an environmental monitoring threshold; Collecting in-transit environmental data of logistics packages, calculating the real-time and cumulative changes in the in-transit environmental data, and determining an environmental anomaly when any change exceeds the environmental monitoring threshold; Select the parameter combination with the best adjustment effect from the historical adjustment records to execute the environmental adjustment strategy, and record the change trend of the in-transit environmental data during the strategy execution to obtain the adjustment result; The environmental sensitivity value is recalculated according to the change trend of the environmental data in the adjustment result, the environmental monitoring threshold is updated based on the new environmental sensitivity value, and the updated threshold and adjustment effect are recorded in the historical adjustment record.

5. The method according to claim 1, characterized in that The logistics risk level is determined based on the anti-counterfeiting verification results and the environmental adjustment results. The optimal logistics path is determined from the preset path library based on the logistics risk level, including: Obtaining the anti-counterfeiting mark status in the anti-counterfeiting verification result, calculating the mark integrity coefficient, obtaining a time decay coefficient based on the verification time interval, and using the product of the integrity coefficient and the time decay coefficient as the anti-counterfeiting risk score; Obtaining environmental parameter data from the environmental adjustment result, using the anti-counterfeiting risk score as a reference value, and adjusting the reference value according to the continuous change of the environmental parameter to obtain a comprehensive risk score; The comprehensive risk score is compared with the preset risk range to obtain the logistics risk level. The change direction of the logistics risk level is predicted based on the historical change sequence of the comprehensive risk score to obtain the logistics risk prediction result; Candidate logistics paths are extracted from the preset path library, and the matching degree of the candidate logistics paths is calculated according to the logistics risk prediction results. The candidate logistics path with the highest matching degree is determined as the optimal logistics path.

6. The method according to claim 5, characterized in that The comprehensive risk score is compared with the preset risk range to obtain the logistics risk level. The change direction of the logistics risk level is predicted based on the historical change sequence of the comprehensive risk score. The logistics risk prediction results include: Obtain the historical change sequence of the comprehensive risk score, calculate the difference of the comprehensive risk scores at adjacent time points to obtain a fluctuation sequence, identify the risk turning point based on the fluctuation sequence, and obtain the fluctuation characteristics of the comprehensive risk score; Analyze the fluctuation characteristics, obtain the periodic change characteristics based on frequency domain calculation, obtain the trend change characteristics based on time domain calculation, and combine the periodic change characteristics and trend change characteristics to obtain the risk evolution characteristics; Analyzing the distribution pattern of the comprehensive risk score based on the risk evolution characteristics, determining the threshold value of the preset risk interval, and mapping the comprehensive risk score to the logistics risk level according to the threshold value; Analyze the logistics risk levels, calculate the residence time of the logistics risk levels to obtain stability characteristics, calculate the conversion relationship between adjacent levels to obtain conversion characteristics, and combine the stability characteristics and conversion characteristics to obtain a risk prediction basis; The degree of deviation between the comprehensive risk score and the demarcation value is compared with the preset deviation threshold. When the warning conditions are met, the direction of change of the logistics risk level is determined based on the risk prediction basis to obtain the logistics risk prediction result.

7. The method according to claim 1, characterized in that Plan the verification strategy for logistics nodes based on the optimal logistics path, generate node proofs, update the logistics track in the smart contract based on the node proofs, and track and verify the package feature identification, including: Obtain logistics node information in the optimal logistics path, determine the verification time interval based on the distance between adjacent logistics nodes, calculate the verification weight according to the risk level of the logistics node, and generate a verification strategy for the logistics node; Determine the collection dimension of verification data according to the verification weight, collect verification data at the logistics node according to the verification time interval, and generate logistics node data that meets the verification strategy; Performing layered processing on the logistics node data, combining the data integrity characteristics with the verification judgment results to generate a basic certificate, adding a device signature and a timestamp to the basic certificate, and constructing a logistics node certificate; Submit the logistics node certificate to the blockchain network, and the consensus node verifies the logistics node certificate according to the verification strategy and generates a verification result; The verification result is submitted to the smart contract. When the verification passes, the logistics node certificate is written into the block. The logistics track in the smart contract is updated according to the time sequence of the logistics node certificate. The package feature identification is tracked and verified based on the updated logistics track.

8. A blockchain-based cross-border logistics intelligent tracking and anti-counterfeiting system for implementing the method described in any one of claims 1 to 7, characterized in that: The system comprises: A feature collection module is used to collect feature information of logistics packages to obtain package feature identifiers, submit the package feature identifiers to the blockchain network and generate smart contracts; The anti-counterfeiting verification module is used to encrypt the package feature identifier in sections to obtain a digital anti-counterfeiting code, re-collect the package feature information during the logistics transportation process and generate a verification identifier, compare the verification identifier with the feature identifier after decrypting the digital anti-counterfeiting code, and generate an anti-counterfeiting verification result; An environmental monitoring module, which is used to collect environmental data of logistics packages in transit, determine environmental monitoring thresholds based on package characteristics, execute environmental adjustment strategies when the in-transit environmental data exceeds the environmental monitoring thresholds, record the adjustment results, and update the environmental monitoring thresholds based on the adjustment results; The route planning module is used to determine the logistics risk level based on the anti-counterfeiting verification results and environmental adjustment results, and to determine the optimal logistics route from the preset route library based on the logistics risk level; The trajectory verification module is used to plan the verification strategy of logistics nodes based on the optimal logistics path, generate node proofs, update the logistics trajectory in the smart contract based on the node proofs, and track and verify the package feature identification.

9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the processor executes the computer program, the steps in the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Customs warranty logistics tracing system based on block chain

    CN115424213A

  • Electronic equipment intelligent transfer container management system and method based on Internet of Things and AI

    CN120198043A

  • Goods transaction management platform based on goods counting code and intelligent verification technology

    CN120316179A

  • Cross-border logistics order management method and cross-border logistics order management system

    CN120387758A

  • Intelligent anti-counterfeiting authentication system fusing block chain and AI image recognition

    CN120450726A

Cited By

  • Block chain verification method for quality safety tracing of catches

    CN120975658A