Quality detection cooperation method and system in transnational agricultural product trade, terminal and medium
By building a cross-border agricultural product trade quality inspection collaboration system, the problem of inconsistent testing standards in different countries has been solved, fast and accurate data conversion and matching has been achieved, the efficiency of mutual recognition of test results has been improved, and data security has been ensured.
Patent Information
- Application Number
- CN202510471944.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-15
- Publication Date
- 2025-08-05
AI Technical Summary
In the cross-border agricultural product trade, due to the inconsistent quality testing standards of various countries, it is difficult to recognize test results. Traditional data sharing methods have security risks and are inefficient.
Build a multinational agricultural product trade quality inspection collaboration system, ensure data on various countries, configure conversion rule tables, generate detection plans, and use secure multi-party computing protocols to judge the compliance of the detection results, ensuring the security of data transmission and storage.
It realizes fast and accurate conversion and matching between data of different standard standards, improves the efficiency of detection collaboration and mutual recognition of results, saves trade time and costs, and protects trade confidentiality and sensitive information.
Smart Images

Figure CN120430804A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of agricultural product quality inspection, and in particular relates to a quality inspection collaboration method, system, terminal and medium in cross-border agricultural product trade. Background Art
[0002] With the acceleration of globalization, cross-border trade in agricultural products is becoming increasingly frequent. Due to differences in agricultural development levels and food safety concepts, different countries have established their own agricultural product quality testing standards. These standards vary in terms of testing items, testing methods, and limit requirements, creating numerous obstacles to cross-border agricultural trade. For example, one country may have more comprehensive testing items for specific pesticide residues in agricultural products than another, or may have stricter limits for the same pesticide residue. Different countries may also adopt different technical approaches and operational specifications for testing methods. This lack of a unified and effective quality testing collaboration mechanism has led to difficulties in mutual recognition of quality testing results between trading partners. Furthermore, traditional data sharing methods, such as file sharing, email sharing, and database sharing, pose risks such as data security and privacy breaches, and are inefficient when integrating data with different standards. Summary of the Invention
[0003] To solve the above problems, the present invention provides a method, system, terminal and medium for quality inspection collaboration in cross-border agricultural product trade, which can quickly and accurately complete the conversion and matching between different standard data, improve the efficiency of quality inspection collaboration and mutual recognition of results, save trade time and costs, and ensure the security of data transmission and storage during the quality inspection collaboration process.
[0004] In a first aspect, the technical solution of the present invention provides a method for collaborative quality inspection in cross-border agricultural product trade, comprising the following steps: Obtain quality inspection standard data from each participating country; According to the quality inspection standard data of each participating country, configure the quality inspection data conversion rule table between any two participating countries; Receive the quality inspection cooperation request sent by the exporter, parse the target importer from the quality inspection cooperation request, and obtain the target quality inspection data of the target importer; Generate a testing plan based on the target quality test data and provide feedback to the exporter; Receive the encrypted quality inspection result data sent by the exporter, and determine whether the exporter's quality inspection result data meets the target quality inspection data requirements of the target importer based on the matched quality inspection data conversion rule table and the secure multi-party computing protocol; Feedback the judgment results to the exporter and target importer.
[0005] In an optional embodiment, obtaining quality inspection standard data of each participating country specifically includes: Use crawler tools to obtain quality inspection standard data from various public data sources of current participating countries, which is recorded as the first type of data; Obtain the quality inspection standard data uploaded by importers in the current participating countries, recorded as the second type of data; Compare the first-category data with the second-category data to filter out identical data items, different data items, and non-overlapping data items; the data items include the test item name, the test item data standard value, the test item data calculation unit, and the test method; For different data items, different data sub-items are processed according to the pre-configured credibility weights of each data source to obtain different fused data items; Construct a quality inspection standard data table for participating countries, and fill the same data items, different data items after fusion, and non-intersecting data items into the quality inspection standard data table.
[0006] In an optional embodiment, a quality inspection data conversion rule table between any two participating countries is configured based on the quality inspection standard data of each participating country, specifically including: Obtain the quality inspection standard data tables of the two participating countries to be processed, which are respectively recorded as the first quality inspection standard data table and the second quality inspection standard data table; Extracting the names of the various detection items from the first quality detection standard data table and the second quality detection standard data table to form a first detection item name set and a second detection item name set; Perform similarity matching on each detection item name in the two detection item name sets to obtain detection item name matching pairs; For each detection name matching pair, formulate mutual conversion rules based on data item information; Construct a quality inspection data conversion rule table from the first participating country to the second participating country, and fill the formulated mutual conversion rules into the quality inspection data conversion rule table.
[0007] In an optional embodiment, the method further comprises the following steps: The quality inspection standard data, quality inspection data conversion rule table, and target quality inspection data of the target importer are homomorphically encrypted and then distributedly stored.
[0008] In an optional embodiment, generating a detection plan based on target quality detection data specifically includes: Parse the names of each test item and the corresponding test methods from the target quality test data; According to the detection name matching pairs, the parsed detection item names are converted into the exporter's detection item names; Build a test item table, add the converted test item names and corresponding test methods to the test item table, and generate a test plan based on the test item table.
[0009] In an optional embodiment, according to the matched quality inspection data conversion rule table, determining whether the exporter's quality inspection result data meets the target quality inspection data requirements of the target importer based on the secure multi-party computing protocol specifically includes: Compare the test item names in the exporter's encrypted quality test result data with the test item name matching pairs in the quality test data conversion rule table to find the corresponding matching relationship; Based on the matching relationship, if the data calculation units of the test items differ between the exporter and importer standards, the encrypted test result data will be converted to the same unit using homomorphic encryption according to the unit conversion rules in the quality inspection data conversion rule table. Determine the equivalence of the test methods used by the exporter and the test methods required by the importer. If they are not equivalent, adjust or revise the test results in accordance with the rules; The exporting country and the target importing country interact and combine the converted encrypted quality inspection result data of the exporter and the homomorphically encrypted target quality inspection data of the target importer in accordance with the method specified in the agreement; Utilizing the computational functionality in the secure multi-party computation protocol, comparison operations are performed on encrypted data. That is, for each inspection item, the encrypted value of the converted exporter's inspection result data is compared with the encrypted standard value of the corresponding inspection item in the target quality inspection data of the target importer to determine whether it meets the target quality inspection data requirements of the target importer.
[0010] In a second aspect, the technical solution of the present invention provides a quality inspection collaboration system for cross-border agricultural product trade, comprising: Quality inspection standard data acquisition module, used to obtain quality inspection standard data of each participating country; A conversion rule table configuration module is used to configure a quality inspection data conversion rule table for any two participating countries based on the quality inspection standard data of each participating country; The quality inspection collaboration request receiving module is used to receive the quality inspection collaboration request sent by the exporter, parse the target importer from the quality inspection collaboration request, and obtain the target quality inspection data of the target importer; The testing plan generation module is used to generate a testing plan based on the target quality test data and feed the testing plan back to the exporter; The test data judgment module is used to receive the encrypted quality test result data sent by the exporter, and judge whether the exporter's quality test result data meets the target quality test data requirements of the target importer based on the matched quality test data conversion rule table and the secure multi-party computing protocol; The judgment result feedback module is used to feed back the judgment results to the exporter and the target importer.
[0011] In an optional embodiment, the method further includes: The data encryption storage module is used to perform homomorphic encryption on the quality inspection standard data, the quality inspection data conversion rule table, and the target quality inspection data of the target importer and then perform distributed storage.
[0012] In a third aspect, the technical solution of the present invention provides a terminal, including: A memory device for storing a quality inspection cooperation program in cross-border agricultural product trade; A processor is used to implement the steps of the cross-border agricultural product trade quality inspection collaboration method as described in any one of the above items when executing the cross-border agricultural product trade quality inspection collaboration program.
[0013] In a fourth aspect, the technical solution of the present invention provides a computer-readable storage medium, on which a quality inspection collaboration program in cross-border agricultural product trade is stored. When the quality inspection collaboration program in cross-border agricultural product trade is executed by a processor, the steps of the quality inspection collaboration method in cross-border agricultural product trade as described in any one of the above items are implemented.
[0014] It can be seen from the above technical solutions that this application has the following advantages: collecting quality inspection standard data of each participating country, configuring a quality inspection data conversion rule table between any two participating countries, and generating an exporter's inspection plan based on the target quality inspection data of the target importer. The exporter generates the inspection results based on the inspection plan, and then based on the quality inspection data conversion rule table, determines whether the exporter's quality inspection result data meets the target quality inspection data requirements of the target importer through a secure multi-party computing protocol. The present invention constructs a unified and effective quality inspection collaboration mechanism, integrates the quality inspection standards of different countries, realizes the docking conversion of inspection items, methods and limit requirements, provides support for the mutual recognition of quality inspection results, and then quickly and accurately completes the conversion and matching between different standard data by configuring a quality inspection data conversion rule table, etc., improves the efficiency of quality inspection collaboration and result mutual recognition, and saves trade time costs. The security technical means of the secure multi-party computing protocol are adopted to ensure the security of data transmission and storage in the quality inspection collaboration process, and protect the commercial secrets and sensitive information of all parties. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for the description. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0016] Figure 1 A flowchart of a collaborative method for quality inspection in cross-border agricultural product trade provided by an embodiment of the present invention.
[0017] Figure 2 This is a schematic block diagram of the structure of a quality inspection collaboration system for cross-border agricultural product trade provided by an embodiment of the present invention.
[0018] Figure 3 A schematic diagram of the structure of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0019] In order to make the application objectives, features, and advantages of this application more obvious and easy to understand, the technical solutions protected by this application will be clearly and completely described below using specific embodiments and drawings. Obviously, the embodiments described below are only part of the embodiments of this application, not all of them. Based on the embodiments in this patent, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this patent.
[0020] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0021] Figure 1 A flow chart of a collaborative method for quality inspection in cross-border agricultural product trade provided by an embodiment of the present invention. Figure 1 The execution entity may be a collaborative system for quality inspection in cross-border agricultural product trade. The collaborative method for quality inspection in cross-border agricultural product trade provided in embodiments of the present invention is executed by a computer device. Accordingly, the collaborative system for quality inspection in cross-border agricultural product trade runs on the computer device. The order of the steps in this flowchart may be varied, and some steps may be omitted, depending on different needs.
[0022] like Figure 1 As shown, the method includes the following steps.
[0023] S1, obtain the quality inspection standard data of each participating country.
[0024] This step collects quality inspection data from participating countries through multiple channels, compares, filters, and weights it to construct a standard data table. This step integrates quality inspection standard data scattered across various channels to form a comprehensive, accurate, and unified dataset. This provides the data foundation for subsequent steps such as configuring conversion rule tables and generating inspection plans, ensuring a reliable basis for the entire inspection collaboration process.
[0025] S2, based on the quality inspection standard data of each participating country, configure the quality inspection data conversion rule table between any two participating countries.
[0026] This step, based on the quality inspection standard data tables of the two countries, matches the test item names and develops and constructs a conversion rule table. This step can address the differences between quality inspection standards in different countries and enable the conversion of test data from different countries. This provides a conversion basis for subsequent judgments on whether the exporter's test results meet the importer's requirements, thereby improving the universality and mutual recognition of test results.
[0027] S3, receiving the quality inspection collaboration request sent by the exporter, parsing the target importer from the quality inspection collaboration request, and obtaining the target quality inspection data of the target importer.
[0028] It should be noted that the detection items of the target quality detection data are included in the detection items of the quality detection standard data of the corresponding participating countries, including the detection items and the corresponding data standard values.
[0029] This step receives the exporter's request, parses the importer's information, and obtains the corresponding quality inspection data. This step clarifies the exporter's trading partners and corresponding quality inspection requirements, providing relevant information for the subsequent generation of targeted inspection plans. This ensures that the inspection work can accurately meet the importer's needs and avoids inspection errors and resource waste caused by unclear information.
[0030] S4, generates a testing plan based on the target quality test data and feeds the testing plan back to the exporter.
[0031] This step parses the target data, converts the test item names, constructs a project table, generates a test plan, and provides feedback. This step provides exporters with a test plan that meets the importer's quality requirements, helps them clarify the test direction and methods, improves the relevance and effectiveness of the test, and reduces testing costs and time.
[0032] S5, receiving the encrypted quality inspection result data sent by the exporter, and judging whether the exporter's quality inspection result data meets the target quality inspection data requirements of the target importer based on the secure multi-party computing protocol according to the matching quality inspection data conversion rule table.
[0033] This step receives the encrypted result data, performs data conversion, determines method equivalence, and then compares and determines compliance using a secure multi-party computation protocol. While ensuring data security and privacy, this step accurately determines whether the exporter's test results meet the importer's standards, providing a reliable basis for both trading parties. This mitigates the risk of data leakage and enhances mutual trust in the test result judgment process.
[0034] S6, feeding back the judgment results to the exporter and target importer.
[0035] This step provides feedback on the quality inspection results to both trading parties, providing them with a basis for decision-making in a timely manner. Exporters can decide whether to adjust their production and inspection strategies based on the results, and importers can decide whether to accept the goods based on the results, thereby improving trade efficiency.
[0036] This approach establishes a unified and effective quality inspection collaboration mechanism, integrating quality inspection standards from different countries. This allows for the conversion and integration of testing items, methods, and quantity limits, supporting mutual recognition of quality inspection results. Furthermore, by configuring a quality inspection data conversion rule table, the conversion and matching of data across different standards can be completed quickly and accurately, improving the efficiency of quality inspection collaboration and mutual recognition of results, while saving time and costs in trade. The secure technology of the secure multi-party computing protocol ensures the security of data transmission and storage during the quality inspection collaboration process, protecting the commercial secrets and sensitive information of all parties.
[0037] Furthermore, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process in this embodiment, another quality inspection collaboration method in cross-border agricultural product trade is provided, which includes the following steps.
[0038] SS1, obtains quality inspection standard data of each participating country.
[0039] Crawler tools are used to obtain data from publicly available data sources in participating countries, while also collecting data uploaded by importers. These two data types are then compared to identify identical, different, and non-overlapping data items. For each data item, the sub-items are processed based on pre-configured data source credibility weights, ultimately constructing a quality inspection standard data table. This process involves the following steps.
[0040] SS1.1, using crawler tools to obtain quality inspection standard data from various public data sources of current participating countries, recorded as the first category of data.
[0041] It should be noted that the data obtained from a public data source is a set of first-category data, and the first-category data may include multiple sets of data.
[0042] For example, the public data sources are official standards, industry standards, or corporate standards issued by agricultural departments of various countries. If the official website provides data services, standard documents can be crawled from the official website through a web crawler, and standardized data can be obtained through the API interface.
[0043] SS1.2, obtain the quality inspection standard data uploaded by importers in the current participating countries, recorded as the second type of data.
[0044] In addition to official standards, importers may require specific quality inspection standards. As needed, importers upload their specific quality inspection standard data to the platform, and the platform backend will subsequently process these data.
[0045] SS1.3, compare each first-category data and second-category data, and filter out the same data items, different data items, and non-overlapping data items; data items include the test item name, test item data standard value, test item data calculation unit, and test method.
[0046] It should be noted that identical data items refer to data items with identical elements, different data items refer to data items with only some elements in common, and non-overlapping data items refer to completely different data items. Generally, each Category 1 data item includes both identical and different data items, as well as non-overlapping data items. Since Category 2 data generally refers to importer-specific testing items, non-overlapping data items are generally present between Category 2 data and each Category 1 data item.
[0047] SS1.4: For different data items, different data sub-items are processed according to the pre-configured credibility weights of each data source to obtain different fused data items.
[0048] Preconfigure the credibility weights of each data source to handle different data items. For example, if the detection item names are different, select the name of the data source with the highest weight. If the detection item data standard values are different, take the weighted sum. Note that if the calculation units are also different, convert them before weighted summing. If the data calculation units are different, select the calculation unit of the data source with the highest weight. If the detection methods are different, select the detection method of the data source with the highest weight.
[0049] SS1.5, construct the quality inspection standard data table of participating countries, and fill the same data items, different data items after fusion, and non-intersecting data items into the quality inspection standard data table.
[0050] By building a unified quality testing standard data sheet and integrating data from different sources, a unified standard reference is provided for all parties involved in cross-border agricultural product trade. This allows exporters, importers, and testing agencies to reach a consensus on quality testing requirements, reducing communication barriers and misunderstandings caused by inconsistent standards, and lowering communication and time costs during the trade process. When all parties conduct testing and judgment based on unified standards, the test results are more comparable and credible, improving the efficiency of mutual recognition of results.
[0051] SS2, based on the quality inspection standard data of each participating country, configures the quality inspection data conversion rule table between any two participating countries.
[0052] Obtain the quality inspection standards data tables for the two participating countries to be processed, extract the test item names into a set, and perform similarity matching to obtain matching pairs. For these matching pairs, formulate conversion rules based on the data item information, including unit conversion and test method equivalence determination, and then construct a conversion rule table. This involves the following steps.
[0053] SS2.1, obtain the quality inspection standard data tables of the two participating countries to be processed, which are recorded as the first quality inspection standard data table and the second quality inspection standard data table respectively.
[0054] Using a data interface, read the quality inspection standards data for the two participating countries from the distributed storage system. As described above, this data may come from official agencies or industry associations in different countries. After reading, organize it into structured data tables, labeled as the first quality inspection standards data table and the second quality inspection standards data table, respectively, to facilitate subsequent processing.
[0055] SS2.2, extract the names of the various detection items in the first quality detection standard data table and the second quality detection standard data table to form a first detection item name set and a second detection item name set.
[0056] For the first quality inspection standard data table, programmatically traverse the column headers or specific identification fields of the data table to extract the names of all inspection items. These names are then aggregated into a set, named the first inspection item name set. Using the same method, the inspection item names are extracted from the second quality inspection standard data table to construct the second inspection item name set.
[0057] SS2.3, perform similarity matching on each detection item name in the two detection item name sets to obtain detection item name matching pairs.
[0058] Using a string matching algorithm, such as Levenshtein distance or cosine similarity, each item name in the first and second item names is compared one by one. A similarity threshold (e.g., 0.8) is set. When the similarity between two item names exceeds this threshold, they are considered a matching pair. For example, "pesticide residue detection" and "pesticide residue detection" form a matching pair if their similarity exceeds the threshold.
[0059] SS2.4, for each detection name matching pair, formulate mutual conversion rules based on the data item information.
[0060] It should be noted that this includes the conversion of test item data calculation units and the equivalence of test methods. For each matching pair of test item names, their data calculation units are checked. If the units are different, a conversion formula is developed based on international unit conversion rules or industry-wide conversion methods. In terms of test methods, industry experts are organized to evaluate the two test methods to determine whether they are equivalent. If they are equivalent, the equivalence relationship is recorded; if not, the differences are analyzed and adjustment or correction rules are developed to ensure that the results of different test methods are comparable.
[0061] SS2.5, construct a quality inspection data conversion rule table from the first participating country to the second participating country, and fill the formulated mutual conversion rules into the quality inspection data conversion rule table.
[0062] Create a new table with header fields such as Test Item Name Pairs, Unit Conversion Rules, and Test Method Equivalence. Complete the table by adding the previously obtained test item name pairs and the corresponding unit conversion rules and test method equivalence rules to the table, creating a complete table of quality inspection data conversion rules from the first participating country to the second participating country.
[0063] Agricultural product quality testing standards vary across countries in terms of testing items, units, and methods. This process addresses these discrepancies by establishing a conversion rule table. Exporters can use this rule table to convert their domestic test results to conform to the importing country's standards, reducing trade barriers caused by differing standards and improving trade efficiency. The rule table also provides a clear basis for mutual recognition of test results. Importers can use this rule table to determine whether the exporter's test results meet their own standards, enhancing mutual trust in the results. Furthermore, this process avoids duplicate testing due to differing standards, saving testing costs and time. Exporters no longer need to conduct multiple tests to meet different national standards, improving the efficiency of testing resources.
[0064] In some optional implementations, the quality inspection standard data, the quality inspection data conversion rule table, and the target quality inspection data of the target importer are respectively homomorphically encrypted and then distributedly stored to ensure data security and improve storage efficiency.
[0065] SS3 receives the quality inspection collaboration request sent by the exporter, parses the target importer from the quality inspection collaboration request, and obtains the target quality inspection data of the target importer.
[0066] Receive the request from the exporter, parse the target importer information, and then obtain the target quality inspection data corresponding to the importer. It should be noted that the importer formulates the target quality inspection data according to needs, and the inspection items and standard values of this data are derived from the quality inspection standard data of the corresponding participating countries.
[0067] SS4, generates a testing plan based on the target quality test data and feeds the testing plan back to the exporter.
[0068] The target quality inspection data is parsed to extract the inspection item names and methods. Based on the inspection name matching, the names are converted into the exporter's inspection item names. A inspection item table is constructed and a test plan is generated based on this. Finally, the plan is fed back to the exporter. The specific steps include the following.
[0069] SS4.1, parse the name of each test item and the corresponding test method from the target quality test data.
[0070] Target quality inspection data is typically stored in a specific format. Depending on the data storage format, appropriate parsing tools or data processing libraries in programming languages are used to extract the data. For example, if the data is XML or JSON, a parsing library (such as Python's ElementTree or json module) can be used to locate and extract relevant information based on the hierarchical structure of the data. The extracted inspection item names and inspection methods are organized into lists or other convenient data structures to prepare for subsequent steps.
[0071] SS4.2, based on the detection name matching pairs, convert the parsed detection item names into the exporter's detection item names.
[0072] This step requires conversion based on the previously established test name matching pairs. These matching pairs record the correspondence between the names of test items in different countries. Traverse the list of test item names parsed from the target quality test data, and for each test item name, find the corresponding exporter test item name in the test name matching pair. If a match is found, directly replace the target test item name with the exporter's test item name; if no match is found, further verification of the data or reference to relevant standards for manual matching and conversion is required. For example, the "lead content test (standard name of the importing country)" in the target quality test data is found through the test name matching pair to find the corresponding exporter test item name "lead element content determination (standard name of the exporter)" to complete the conversion.
[0073] SS4.3, build a test item table, add the converted test item names and corresponding test methods to the test item table, and generate a test plan based on the test item table.
[0074] Create a new test item table, which can be in the form of a spreadsheet (such as Excel) or a database table. Set up at least two columns in the table to store the test item name and the test method respectively. Add the converted test item name and its corresponding test method to the test item table row by row. When generating a test plan, you can plan each test item based on the test item table. Determine the number of samples for testing, the sampling method (such as random sampling, stratified sampling, etc.), the time nodes for testing (such as at different stages of the agricultural product production process, before and after transportation, etc.), and the execution entity of the test (such as the exporter's internal testing laboratory, a third-party professional testing agency, etc.).
[0075] This process generates testing plans for exporters based on importers' target quality test data, improving the relevance and effectiveness of testing and increasing the likelihood that agricultural products will meet the quality standards of the importing country. By converting test item names into exporter-specific terms and developing testing plans, exporters can clearly understand importers' quality requirements and proactively identify and resolve potential quality issues.
[0076] SS5 receives the encrypted quality inspection result data sent by the exporter, and determines whether the exporter's quality inspection result data meets the target quality inspection data requirements of the target importer based on the secure multi-party computing protocol according to the matching quality inspection data conversion rule table.
[0077] The exporter's encrypted test results are received, and the names of the test items are compared to find matches. Data with unit differences are converted using homomorphic encryption to determine the equivalence of the test methods and adjust the results. The exporter and importer interact and combine the data according to the agreement, and a secure multi-party computation protocol is used to perform a comparison and judgment on the encrypted data. This involves the following steps.
[0078] SS5.1, compares the inspection item names in the exporter's encrypted quality inspection result data with the inspection item name matching pairs in the quality inspection data conversion rule table to find the corresponding matching relationship.
[0079] First, the system obtains the exporter's encrypted quality inspection result data. Using the decryption key corresponding to the encryption algorithm (but not fully decrypting the data, only extracting a portion of the inspection item name information), the encrypted data is parsed to extract the inspection item names. These inspection item names are then compared one by one with the inspection item name matching pairs in the quality inspection data conversion rule table. A string matching algorithm is used to determine the corresponding matching pair for each inspection item in the rule table, and the matching relationship is recorded.
[0080] SS5.2: Based on the matching relationship, if the data calculation units of the test items differ between the exporter and importer standards, the encrypted test result data is converted to units under homomorphic encryption according to the unit conversion rules in the quality inspection data conversion rule table.
[0081] When it is determined that the data calculation units of the inspection items are different in the exporter and importer standards, the operation is performed according to the unit conversion rules pre-set in the quality inspection data conversion rule table.
[0082] For example, if the exporter's test result data is in milligrams per kilogram, while the importer's standard requires units in parts per million (ppm), a conversion calculation is performed within a homomorphic encryption environment based on the conversion rule (1 mg / kg = 1 ppm). Leveraging the homomorphic encryption algorithm's ability to perform specific calculations on encrypted data, the encrypted test result data is converted to the converted encrypted data.
[0083] SS5.3, determine the equivalence of the test method used by the exporter and the test method required by the importer. If they are not equivalent, adjust or revise the test results in accordance with the rules.
[0084] Information related to the test methods used by the exporter and the test methods required by the importer is extracted from the encrypted test result data and the target importer's target quality test data (this information is stored as part of the data before encryption). It should be noted that equivalence relationships between the various test methods and data conversion rules for inequivalence can be pre-configured. Equivalence is tested based on the pre-configured equivalence relationships. If inequivalence is not achieved, the test results are adjusted or corrected according to the pre-configured data conversion rules.
[0085] SS5.4, the exporting country and the target importing country interact and combine the converted exporter's encrypted quality inspection result data and the homomorphically encrypted target quality inspection data of the target importer in accordance with the provisions of the agreement.
[0086] The exporting country and the target importing country exchange the converted exporter's encrypted quality test results and the homomorphically encrypted target importer's target quality test data over a secure communication network, in accordance with a pre-agreed protocol. At the receiving end, the received data is integrated and combined according to a specific logical sequence (e.g., by test item category and importance) to form a single dataset for subsequent comparison operations. This ensures data integrity and consistency, facilitating encrypted data comparison.
[0087] SS5.5 uses the computational function in the secure multi-party computation protocol to perform comparison operations on encrypted data. That is, for each test item, the encrypted value of the converted exporter's test result data is compared with the encrypted standard value of the corresponding test item in the target importer's target quality test data to determine whether it meets the target importer's target quality test data requirements.
[0088] Using a secure multi-party computation protocol, participants (exporting and importing countries) perform comparison operations on the combined encrypted data without disclosing the original data. For each test item, the protocol, through the exchange and calculation of encrypted data, compares the encrypted value of the converted exporter's test result data with the encrypted standard value of the corresponding test item in the target importer's target quality test data. Based on the comparison results, it determines whether the exporter's test results meet the target importer's target quality test data requirements, ultimately generating an encrypted judgment result.
[0089] The entire process utilizes encryption technology, including homomorphic encryption and secure multi-party computation protocols, to ensure that sensitive data (such as specific test values and details of testing methods) from all parties is not leaked during data processing and comparison. Exporters and importers do not need to worry about the security of data during cross-border transmission and collaborative processing. Through matching test item names, unit conversion, equivalence determination of testing methods, and rigorous data comparison operations, the exporter's test results can be accurately compared with the importer's standards. Even if there are differences in data formats, units, and methods during the testing process, these can be adjusted and corrected through appropriate rules, thereby increasing the credibility of the test results and achieving mutual recognition of test results.
[0090] SS6 feeds back the judgment results to the exporter and target importer.
[0091] The conclusion on whether the exporter's quality inspection results meet the requirements of the target importer will be fed back to the exporter and importer, so that both parties can understand whether the quality of agricultural products meets the trade standards.
[0092] The above describes in detail an embodiment of a method for collaborative quality inspection in cross-border agricultural product trade. Based on the method for collaborative quality inspection in cross-border agricultural product trade described in the above embodiment, an embodiment of the present invention also provides a device for collaborative quality inspection in cross-border agricultural product trade corresponding to the method.
[0093] Figure 2This is a block diagram illustrating the structure of a collaborative system for quality inspection in cross-border agricultural product trade, provided in an embodiment of the present invention. In this embodiment, the collaborative system 200 for quality inspection in cross-border agricultural product trade can be divided into multiple functional modules based on their functions. A module, as used herein, refers to a series of computer program segments that can be executed by at least one processor and perform a fixed function, and is stored in a memory.
[0094] The quality inspection standard data acquisition module 210 is used to obtain the quality inspection standard data of each participating country.
[0095] The conversion rule table configuration module 220 is used to configure a quality inspection data conversion rule table between any two participating countries based on the quality inspection standard data of each participating country.
[0096] The quality inspection cooperation request receiving module 230 is used to receive the quality inspection cooperation request sent by the exporter, parse the target importer from the quality inspection cooperation request, and obtain the target quality inspection data of the target importer.
[0097] The detection plan generation module 240 is used to generate a detection plan based on the target quality detection data and feed the detection plan back to the exporter.
[0098] The inspection data judgment module 250 is used to receive the encrypted quality inspection result data sent by the exporter, and judge whether the exporter's quality inspection result data meets the target quality inspection data requirements of the target importer based on the secure multi-party computing protocol according to the matching quality inspection data conversion rule table.
[0099] The judgment result feedback module 260 is used to feed back the judgment result to the exporter and the target importer.
[0100] In some optional embodiments, the system 200 further includes a data encryption storage module 270 for performing homomorphic encryption on the quality inspection standard data, the quality inspection data conversion rule table, and the target quality inspection data of the target importer and then performing distributed storage.
[0101] The cross-border agricultural product trade quality inspection collaboration device of this embodiment is used to implement the aforementioned cross-border agricultural product trade quality inspection collaboration method. Therefore, the specific implementation method of the device can be seen in the embodiment part of the cross-border agricultural product trade quality inspection collaboration method in the previous text. Therefore, its specific implementation method can refer to the description of the corresponding embodiments of each part and will not be elaborated here.
[0102] In addition, since the cross-border agricultural product trade quality inspection cooperation device of this embodiment is used to implement the aforementioned cross-border agricultural product trade quality inspection cooperation method, its function corresponds to that of the aforementioned method and will not be repeated here.
[0103] Figure 3 The present invention provides a schematic diagram of a terminal 300, including a processor 310, a memory 320, and a communication unit 330. The processor 310 is configured to implement the following steps when implementing the quality inspection collaboration program for cross-border agricultural product trade stored in the memory 320: Obtain quality inspection standard data from each participating country; According to the quality inspection standard data of each participating country, configure the quality inspection data conversion rule table between any two participating countries; Receive the quality inspection cooperation request sent by the exporter, parse the target importer from the quality inspection cooperation request, and obtain the target quality inspection data of the target importer; Generate a testing plan based on the target quality test data and provide feedback to the exporter; Receive the encrypted quality inspection result data sent by the exporter, and determine whether the exporter's quality inspection result data meets the target quality inspection data requirements of the target importer based on the matched quality inspection data conversion rule table and the secure multi-party computing protocol; Feedback the judgment results to the exporter and target importer.
[0104] The present invention also provides a computer storage medium, wherein the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).
[0105] The computer storage medium stores a quality inspection cooperation program for cross-border agricultural product trade. When the quality inspection cooperation program for cross-border agricultural product trade is executed by a processor, the following steps are implemented: Obtain quality inspection standard data from each participating country; According to the quality inspection standard data of each participating country, configure the quality inspection data conversion rule table between any two participating countries; Receive the quality inspection cooperation request sent by the exporter, parse the target importer from the quality inspection cooperation request, and obtain the target quality inspection data of the target importer; Generate a testing plan based on the target quality test data and provide feedback to the exporter; Receive the encrypted quality inspection result data sent by the exporter, and determine whether the exporter's quality inspection result data meets the target quality inspection data requirements of the target importer based on the matched quality inspection data conversion rule table and the secure multi-party computing protocol; Feedback the judgment results to the exporter and target importer.
[0106] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention is not limited to the embodiments shown herein but is intended to conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A collaborative method for quality inspection in cross-border agricultural product trade, characterized by: The following steps are involved: Obtain quality inspection standard data from each participating country; According to the quality inspection standard data of each participating country, configure the quality inspection data conversion rule table of any two participating countries; Receive the quality inspection cooperation request sent by the exporter, parse the target importer from the quality inspection cooperation request, and obtain the target quality inspection data of the target importer; Generate a testing plan based on the target quality test data and provide feedback to the exporter; Receive the encrypted quality inspection result data sent by the exporter, and determine whether the exporter's quality inspection result data meets the target quality inspection data requirements of the target importer based on the matched quality inspection data conversion rule table and the secure multi-party computing protocol; Feedback the judgment results to the exporter and target importer.
2. The method for collaborative quality inspection in cross-border agricultural product trade according to claim 1, characterized in that: Obtain quality inspection standard data from participating countries, including: Use crawler tools to obtain quality inspection standard data from various public data sources of current participating countries, which is recorded as the first type of data; Obtain the quality inspection standard data uploaded by importers in the current participating countries, recorded as the second type of data; Compare the first-category data with the second-category data to filter out identical data items, different data items, and non-overlapping data items; the data items include the test item name, the test item data standard value, the test item data calculation unit, and the test method; For different data items, different data sub-items are processed according to the pre-configured credibility weights of each data source to obtain different fused data items; Construct a quality inspection standard data table for participating countries, and fill the same data items, different data items after fusion, and non-intersecting data items into the quality inspection standard data table.
3. The method for collaborative quality inspection in cross-border agricultural product trade according to claim 2, characterized in that: According to the quality inspection standard data of each participating country, configure the quality inspection data conversion rule table of any two participating countries, including: Obtain the quality inspection standard data tables of the two participating countries to be processed, which are respectively recorded as the first quality inspection standard data table and the second quality inspection standard data table; Extracting the names of the various detection items from the first quality detection standard data table and the second quality detection standard data table to form a first detection item name set and a second detection item name set; Perform similarity matching on each detection item name in the two detection item name sets to obtain detection item name matching pairs; For each detection name matching pair, formulate mutual conversion rules based on data item information; Construct a quality inspection data conversion rule table from the first participating country to the second participating country, and fill the formulated mutual conversion rules into the quality inspection data conversion rule table.
4. The method for collaborative quality inspection in cross-border agricultural product trade according to claim 3, characterized in that: The method further comprises the following steps: The quality inspection standard data, quality inspection data conversion rule table, and target quality inspection data of the target importer are homomorphically encrypted and then distributedly stored.
5. The method for collaborative quality inspection in cross-border agricultural product trade according to claim 4, characterized in that: Generate a test plan based on the target quality test data, including: Parse the names of each test item and the corresponding test methods from the target quality test data; According to the detection name matching pairs, the parsed detection item names are converted into the exporter's detection item names; Build a test item table, add the converted test item names and corresponding test methods to the test item table, and generate a test plan based on the test item table.
6. The method for collaborative quality inspection in cross-border agricultural product trade according to claim 5, characterized in that: According to the matched quality inspection data conversion rule table, based on the secure multi-party computing protocol, it is determined whether the exporter's quality inspection result data meets the target quality inspection data requirements of the target importer, including: Compare the test item names in the exporter's encrypted quality test result data with the test item name matching pairs in the quality test data conversion rule table to find the corresponding matching relationship; Based on the matching relationship, if the data calculation units of the test items differ between the exporter and importer standards, the encrypted test result data will be converted to the same unit using homomorphic encryption according to the unit conversion rules in the quality inspection data conversion rule table. Determine the equivalence of the test methods used by the exporter and the test methods required by the importer. If they are not equivalent, adjust or revise the test results in accordance with the rules; The exporting country and the target importing country interact and combine the converted encrypted quality inspection result data of the exporter and the homomorphically encrypted target quality inspection data of the target importer in accordance with the method specified in the agreement; Utilizing the computational functionality in the secure multi-party computation protocol, comparison operations are performed on encrypted data. That is, for each inspection item, the encrypted value of the converted exporter's inspection result data is compared with the encrypted standard value of the corresponding inspection item in the target quality inspection data of the target importer to determine whether it meets the target quality inspection data requirements of the target importer.
7. A quality inspection collaboration system for cross-border agricultural product trade, characterized by: include: Quality inspection standard data acquisition module, used to obtain quality inspection standard data of each participating country; A conversion rule table configuration module is used to configure a quality inspection data conversion rule table for any two participating countries based on the quality inspection standard data of each participating country; The quality inspection collaboration request receiving module is used to receive the quality inspection collaboration request sent by the exporter, parse the target importer from the quality inspection collaboration request, and obtain the target quality inspection data of the target importer; The testing plan generation module is used to generate a testing plan based on the target quality test data and feed the testing plan back to the exporter; The test data judgment module is used to receive the encrypted quality test result data sent by the exporter, and judge whether the exporter's quality test result data meets the target quality test data requirements of the target importer based on the matched quality test data conversion rule table and the secure multi-party computing protocol; The judgment result feedback module is used to feed back the judgment results to the exporter and the target importer.
8. The cross-border agricultural product trade quality inspection collaboration system according to claim 7 is characterized in that: Also includes: The data encryption storage module is used to perform homomorphic encryption on the quality inspection standard data, the quality inspection data conversion rule table, and the target quality inspection data of the target importer and then perform distributed storage.
9. A terminal, characterized in that: include: A memory device for storing a quality inspection cooperation program in cross-border agricultural product trade; A processor is used to implement the steps of the cross-border agricultural product trade quality inspection collaboration method as described in any one of claims 1 to 6 when executing the cross-border agricultural product trade quality inspection collaboration program.
10. A computer-readable storage medium, characterized in that The readable storage medium stores a quality inspection cooperation program in cross-border agricultural product trade, and when the quality inspection cooperation program in cross-border agricultural product trade is executed by the processor, the steps of the quality inspection cooperation method in cross-border agricultural product trade as described in any one of claims 1 to 6 are implemented.