Block chain-based bank melon seed data processing and storage method and device

By adopting blockchain-based data processing and storage methods in Yingua Seed data processing system, combining distributed databases and large language models, the security and integrity of Yingua Seed data in the existing technology are solved, and Yingua is realized Accurate recording and traceability of seed data throughout the process provides fast and accurate data retrieval and question-answer services.

CN119396867AActive Publication Date: 2025-02-07SHANDONG ZUNYUE AGRI DEV CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411403707.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-09
Publication Date
2025-02-07
Estimated Expiration
2044-10-09

AI Technical Summary

Technical Problem

The existing information traceability system cannot guarantee the security and integrity of the silver cucumber seed data, and cannot extract key data based on the characteristics of the silver cucumber seeds for storage, resulting in the inability to accurately record and trace the entire process data of the silver cucumber seeds.

Method used

Using blockchain-based data processing and storage methods, the full-cycle data of Yingua seeds is obtained at each data processing node, authenticity verification and integrity processing are carried out, and the standard data of Yingua seeds is obtained through data mining. Seed key data. Combine distributed databases with blockchain to build a reliable distributed database, store standard data and key data of silver seeds, and search data and answer questions through large language models.

Benefits of technology

The authenticity, completeness and security of silver jelly seed data can be accurately recorded and traced the entire process data of silver jelly seeds, and provided fast and accurate data retrieval and question-answer services to help growers improve seed quality and growth forecasts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119396867A_ABST
    Figure CN119396867A_ABST
Patent Text Reader

Abstract

The invention discloses a bank melon seed data processing and storage method and device based on a block chain, belongs to the technical field of computer databases, and is used for solving the problems that an existing information tracing system cannot guarantee the safety and integrity of data, key data cannot be extracted for storage according to the characteristics of bank melon seeds, and the efficiency is high. And the method is not suitable for the storage of the silver melon seed data. The method comprises the following steps: acquiring complete-cycle data of the silver melon seeds from each data processing node, and performing authenticity verification and integrity processing to obtain standard data of the silver melon seeds; carrying out data mining on the standard data of the cucurbita moschata seeds to obtain key data of the cucurbita moschata seeds; combining the distributed database with the block chain to obtain a reliable distributed database; storing the standard data of the silver melon seeds and the key data of the silver melon seeds into a reliable distributed database; and performing intention analysis on the related question of the silver melon seed input by the user, and calling the reliable distributed database to answer the question according to the analysis result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer databases, and in particular to a method and device for processing and storing silver melon seed data based on blockchain. Background Art

[0002] Silver melon belongs to the Cucurbitaceae family, the genus Cucumis, and is a thin-skinned melon species with a cultivation history of more than 380 years. When mature, high-quality silver melons have a sugar content of 12% to 14%, and are fragrant and pleasant, becoming more and more popular among consumers. Therefore, the planting rate of silver melons has also increased significantly in recent years. The quality of silver melon seeds is a key factor in determining the quality and sales of silver melons.

[0003] At present, the information traceability system for silver melon seeds is not perfect. If the production of silver melons is reduced or abnormal, it is impossible to determine the source of the seeds and whether there are problems in the storage and transportation processes. Even if some existing information traceability systems are used to record, there may be data missing or data falsification. In addition, the germplasm requirements, storage conditions, and transportation conditions of silver melon seeds are unique. If the existing information traceability system is directly applied, it is often impossible to accurately extract the data that users want and solve the user's problems. Summary of the invention

[0004] The embodiment of the present invention provides a blockchain-based silver melon seed data processing and storage method and device, which are used to solve the following technical problems: the existing information traceability system cannot guarantee the security and integrity of the data, and cannot extract key data for storage according to the characteristics of the silver melon seeds, and is not suitable for the storage of silver melon seed data.

[0005] The embodiment of the present invention adopts the following technical solution:

[0006] On the one hand, an embodiment of the present invention provides a method for processing and storing silver melon seed data based on blockchain, the method comprising: obtaining full-cycle data of silver melon seeds in each data processing node; wherein the full-cycle data at least includes seed source data, germplasm detection data, seed storage data, and seed transportation trajectory data;

[0007] The authenticity and integrity of the full-cycle data are verified to obtain silver melon seed standard data;

[0008] Performing data mining on the standard data of silver melon seeds to obtain key data of silver melon seeds;

[0009] The distributed database is combined with the blockchain to obtain a reliable distributed database; and the silver melon seed standard data and the silver melon seed key data are stored in the reliable distributed database;

[0010] Intention analysis is performed on silver melon seed-related questions input by the user, and the reliable distributed database is called to perform data retrieval and question answering according to the analysis results.

[0011] In a feasible implementation, the full cycle data of silver melon seeds is obtained in each data processing node, specifically including:

[0012] The seed source data is obtained at the silver melon seed source node; wherein the seed source data at least includes: silver melon seed origin information and silver melon seed output batch information;

[0013] The germplasm detection data is obtained at the silver melon seed quality inspection node; wherein the germplasm detection data at least includes: silver melon seed varieties and seed trait detection parameters and seed trait grades of each variety;

[0014] The seed storage data is obtained at the Yingua seed storage node; wherein the seed storage data at least includes: warehouse environment parameters and warehouse auxiliary storage device parameters;

[0015] The seed transportation trajectory data is obtained at the silver melon seed transportation node; the seed transportation trajectory data at least includes the transportation trajectory data of each bag of seeds, the identification number of each bag of seeds at each transportation node and the transportation condition parameters of each transportation trajectory; wherein, each bag of seeds generates a unique identification number in the information entry system every time it passes through a transportation node, and the identification number of the bag of seeds is sequentially spliced ​​after the existing identification number of the bag of seeds until the seeds arrive at the destination, thereby obtaining the final identification number of the bag of seeds.

[0016] In a feasible implementation manner, the authenticity verification and integrity processing of the full cycle data are performed to obtain the silver melon seed standard data, specifically including:

[0017] In the seed transport trajectory data, verify whether the identification number of the current transport node of each bag of seeds contains all the identification numbers of each previous transport node;

[0018] If not, it is determined that there is an untrue situation in the existing full-cycle data of the current transport node;

[0019] If yes, then based on the pre-trained linear regression model, verify whether there is abnormal data in each type of full-cycle data; if yes, then determine that the existing full-cycle data of the current transport node is untrue;

[0020] If any one or more full-cycle data are found to be untrue, feedback will be given to the uploader of the relevant data, requiring the uploader to re-enter the data until the uploaded data is not untrue;

[0021] The full-cycle data after authenticity verification is processed for integrity to obtain the silver melon seed standard data.

[0022] In a feasible implementation manner, integrity processing is performed on the full-cycle data after authenticity verification to obtain the silver melon seed standard data, specifically including:

[0023] When the original data of the silver melon seed is generated in each data processing node, the hash value of the original data is calculated in advance by a message digest algorithm to obtain the original digital fingerprint; and the original digital fingerprint of each data processing node is directly stored in the blockchain;

[0024] When integrity detection is required for the full-cycle data after authenticity verification, the hash value of the full-cycle data to be detected is calculated by the message digest algorithm to obtain the digital fingerprint to be tested;

[0025] According to the collection node of the full-cycle data to be detected, the corresponding original digital fingerprint is extracted from the blockchain and compared with the digital fingerprint to be tested;

[0026] Filter out data items with inconsistent comparison results and determine them as incomplete data items;

[0027] The corresponding original data is obtained from the collection node of the incomplete data item, and the missing data of the incomplete data item is compensated according to the original data, so as to achieve integrity processing of the incomplete data item and obtain the silver melon seed standard data.

[0028] In a feasible implementation manner, data mining is performed on the standard data of silver melon seeds to obtain key data of silver melon seeds, specifically including:

[0029] Determine the processing quality score and corresponding processing quality grade of each data processing node according to the silver melon seed standard data;

[0030] The processing quality score of each data processing node is weighted and calculated to obtain the comprehensive quality score of each bag of silver melon seeds;

[0031] Inputting the comprehensive quality score into a preset seed growth prediction model to predict seed growth and obtain a growth prediction result;

[0032] The processing quality score, processing quality grade, comprehensive quality score and growth prediction result of each data processing node are summarized as the key data of the silver melon seeds.

[0033] In a feasible implementation manner, according to the silver melon seed standard data, the processing quality score and the corresponding processing quality level of each data processing node are determined, specifically including:

[0034] according to Determine the processing quality score M of the i-th data processing node i ;

[0035] Where n is the total number of data items related to the processing quality of the silver melon seed standard data corresponding to the i-th data processing node; x ij is the value of the jth data item of the silver melon seed standard data corresponding to the i-th data processing node, p ij is the standard threshold value of the jth data item of the silver melon seed standard data corresponding to the i-th data processing node, w ij is the influence weight of the j-th data item of the silver melon seed standard data corresponding to the i-th data processing node;

[0036] The obtained processing quality score of each data processing node is matched with a preset processing quality level interval to determine the processing quality level of each data processing node.

[0037] In a feasible implementation, a distributed database is combined with a blockchain to obtain a reliable distributed database, which specifically includes:

[0038] Associating each distributed sub-node of the distributed database with a block of the blockchain;

[0039] Establishing a data storage list of associated blocks in each distributed sub-node of the distributed database; wherein the data storage list includes: an information table for storing hash and index information about the current block; a block table for storing all blocks in the blockchain; an authorization table for storing database permission information; and a database table for storing a list of existing databases;

[0040] Storing database change SQL statements in each block of the blockchain to obtain the reliable distributed database;

[0041] When the data or structure of the current distributed sub-node changes, a change request is initiated based on the database change SQL statement stored in the associated block and sent to each distributed sub-node of the reliable distributed database, and each distributed sub-node jointly verifies the change request; after all verifications are passed, the data change of the current distributed sub-node is executed according to the database change SQL statement; wherein, the change request includes the block signature information of the sending node.

[0042] In a feasible implementation, associating each distributed sub-node of the distributed database with a block of the blockchain specifically includes:

[0043] When the current distributed child node receives an association request for a valid block, it first temporarily stores it in the association queue;

[0044] When the length of the associated queue exceeds a preset length, the earliest block in the associated queue is retained on the disk, and other blocks in the associated queue are released to clear the associated queue;

[0045] Associate the current distributed child node with the block retained on disk and establish a data storage list for the block.

[0046] In a feasible implementation, the intention analysis is performed on the silver melon seed-related questions input by the user, and the reliable distributed database is called according to the analysis results to perform data retrieval and answer questions, specifically including:

[0047] Obtaining a question input by a user, and performing vectorization processing on the question to obtain a question vector;

[0048] Performing intent analysis on the question vector through a large language model to extract user intent keywords;

[0049] According to the user intention keyword, target silver melon seed data is retrieved in the reliable distributed database; the target silver melon seed data includes silver melon seed key data and / or silver melon seed standard data;

[0050] The target silver melon seed data is input into the large language model for answer analysis, and based on the silver melon seed key data, it is determined whether the current problem of the silver melon seeds is reasonable, as well as the data processing nodes that may cause the current problem of the silver melon seeds, and the silver melon seed problem reference solution is generated.

[0051] On the other hand, an embodiment of the present invention further provides a blockchain-based silver melon seed data processing and storage device, comprising: at least one processor; and,

[0052] a memory communicatively connected to the at least one processor; wherein,

[0053] The memory stores instructions that can be executed by the at least one processor so that the at least one processor can execute the silver melon seed data processing and storage method based on blockchain.

[0054] Compared with the prior art, the method and device for processing and storing silver melon seed data based on blockchain provided by the embodiment of the present invention have the following beneficial effects:

[0055] The present invention creates a system that can process and store data of the entire cycle of silver melon seeds. It can archive and record the data of the entire process of silver melon seeds from production to quality inspection to distribution and transportation until they reach the hands of growers and take root and sprout. If necessary, it can trace the source and rely on a large language model to answer questions related to silver melon seeds. Before data storage, the present invention accurately verifies the authenticity of the collected silver melon seed data to ensure that the collected silver melon seed data is real data. And through the independently designed integrity processing method, the missing and missed data are supplemented to ensure the integrity of the silver melon seed data uploaded to the database.

[0056] In addition, the present invention also conducts targeted data mining based on the full-cycle data of silver melon seeds, calculates the processing quality level of each processing node and the comprehensive score of the whole process according to the parameter performance in the full-cycle processing process, and predicts the final growth of silver melon seeds. And further combining these data with the large language model, the questions raised by the growers can be answered quickly and accurately. This setting can not only provide growers with a reference for seed quality and an expectation of seed growth for the growers, but also help growers quickly locate the links where silver melon seeds may have problems in the full-cycle processing process when planting problems occur, find the crux of the problem in time, provide growers with important reference data, and take remedial measures in time.

[0057] Finally, the present invention also transforms the distributed database, combines the distributed database with the blockchain structure, and constructs a reliable, tamper-proof distributed database, and stores the silver melon seed data that has undergone authenticity verification, integrity processing, and data mining in the reliable distributed database, which can maximize the authenticity, integrity, directionality, and security of the silver melon seed data. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0059] Figure 1 A flowchart of a method for processing and storing silver melon seed data based on blockchain provided in an embodiment of the present invention;

[0060] Figure 2 A schematic diagram of a full-cycle data processing node for silver melon seeds provided by an embodiment of the present invention;

[0061] Figure 3A schematic diagram of the structure of a silver melon seed data processing and storage device based on blockchain provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0062] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0063] The embodiment of the present invention provides a method for processing and storing silver melon seed data based on blockchain, such as Figure 1 As shown, the silver melon seed data processing and storage method based on blockchain specifically includes steps S101-S105:

[0064] S101. Obtaining full-cycle data of silver melon seeds in each data processing node; wherein the full-cycle data at least includes seed source data, germplasm detection data, seed storage data and seed transportation trajectory data.

[0065] Specifically, Figure 2 A schematic diagram of a full-cycle data processing node for silver melon seeds provided by an embodiment of the present invention, such as Figure 2 As shown, the data processing nodes of the whole cycle of silver melon seeds mainly include: silver melon seed source node 201, silver melon seed quality inspection node 202, silver melon seed storage node 203 and silver melon seed transportation node 204.

[0066] The seed source data is obtained in the silver melon seed source node 201; the seed source data at least includes: silver melon seed origin information and silver melon seed output batch information. For example, if the origin of a bag of silver melon seeds is place A, the place name and detailed address of place A are obtained, as well as the batch to which the bag of silver melon seeds belongs when it is output, and the batch number, output time of the batch, output destination and other information are obtained.

[0067] Furthermore, germplasm detection data is obtained in the silver melon seed quality inspection node 202; wherein the germplasm detection data at least includes: silver melon seed varieties and seed trait detection parameters and seed trait grades of each variety.

[0068] As a feasible implementation method, before distributing silver melon seeds, it is necessary to conduct germplasm testing on silver melon seeds of various varieties to eliminate some unqualified seeds. After testing, the trait detection parameters of silver melon seeds can be obtained, and according to the detected trait detection parameters, the germplasm of silver melon seeds can be graded to obtain the seed trait grade.

[0069] In one example, the trait detection parameters for the germplasm detection of silver melon seeds may include parameters such as seed thousand-grain weight, seed length, seed width, seed thickness, and seed shape index.

[0070] Furthermore, the seed storage data is obtained in the Yingua seed storage node 230; wherein the seed storage data at least includes: warehouse environment parameters and warehouse auxiliary storage device parameters.

[0071] As a feasible implementation method, silver melon seeds are stored in a warehouse before distribution and transportation, and it is necessary to collect the environmental parameters of the warehouse, such as temperature, humidity, carbon dioxide concentration, etc. In addition, due to the special storage conditions of seeds, some auxiliary storage devices are needed to adjust the storage environment in the warehouse, such as ventilation fans, cooling devices, etc., so it is also necessary to collect the setting parameters of these auxiliary storage devices, such as fan speed, cooling device working temperature, etc.

[0072] Furthermore, seed transportation trajectory data is obtained in the silver melon seed transportation node 204; wherein the seed transportation trajectory data at least includes the transportation trajectory data of each bag of seeds, the identification number of each bag of seeds at each transportation node, and the transportation condition parameters of each transportation trajectory.

[0073] As a feasible implementation method, after the seeds are shipped out of the warehouse, they need to be distributed and transported to different transportation nodes until they are transported to their respective destinations. The present invention collects the transportation trajectory data of each bag of seeds during transportation. The transportation trajectory includes the starting point, the end point and the intermediate transportation nodes, as well as the transportation condition parameters such as the compartment temperature, humidity, and ground flatness of the transportation vehicle during transportation. Each bag of seeds generates a unique identification number in the information entry system every time it passes through a transportation node, and the identification number of the bag of seeds is spliced ​​in sequence until the seeds arrive at the destination to obtain the final identification number of the bag of seeds. The identification number of the seed is then bound to the transportation trajectory.

[0074] In one embodiment, if the transport track of a bag of seeds is: starting point, transport node 1, transport node 2, and end point, then a unique identification number x1 is randomly generated at the starting point, and a unique identification number x2 is randomly generated after reaching transport node 1, then the unique identification number of this bag of seeds is x1x2. Similarly, if the identification number generated at transport node 2 is x3, and the identification number generated at the end point is x4, then the final identification number of this bag of seeds is x1x2x3x4.

[0075] Based on this mechanism, a bag of seeds has a different identification number at each transport node, and any identification number obtained from any transport node contains the identification numbers of all previous transport nodes. Therefore, the previous transport track of the bag of seeds can be determined based on the identification number at any transport node. And the authenticity of the transport track can be verified by the identification number.

[0076] S102, verify the authenticity and integrity of the full cycle data to obtain the silver melon seed standard data.

[0077] Specifically, in the seed transport trajectory data, it is verified whether the identification number of the current transport node of each bag of seeds contains all the identification numbers of each previous transport node. If not, it is determined that there is an untrue situation in the existing full cycle data of the current transport node.

[0078] If so, based on the pre-trained linear regression model, it is verified whether there is abnormal data in each type of full-cycle data; if so, it is determined that the full-cycle data that already exists in the current transportation node is untrue.

[0079] Furthermore, if any one or more full-cycle data are detected to be untrue, feedback will be given to the uploader of the relevant data, requiring the other party to re-enter the data until the uploaded data is not untrue.

[0080] As a feasible implementation method, if the identification number of a bag of seeds does not match the acquired transport track, then it can be known that the data of this bag of seeds may have been tampered with or an error has occurred. At this time, it needs to be returned to the data uploader for re-upload. If there is no problem with the identification number of a bag of seeds, it does not mean that there is no problem with other data of this bag of seeds. Therefore, a linear regression model is used to detect whether there is obvious abnormal data in each data item. If there is, these data may also be untrue, and they are also returned to the data uploader for re-upload. This ensures that the received data is real data.

[0081] Furthermore, the integrity of the full cycle data after authenticity verification is processed to obtain the standard data of silver melon seeds, including:

[0082] When the original data of the silver melon seed is generated in each data processing node, the hash value of the original data is calculated in advance through the message digest algorithm to obtain the original digital fingerprint; and the original digital fingerprint of each data processing node is directly stored in the blockchain.

[0083] When the integrity of the full-cycle data after authenticity verification needs to be checked, the hash value of the full-cycle data to be checked is calculated through the message digest algorithm to obtain the digital fingerprint to be tested. According to the collection node of the full-cycle data to be tested, the corresponding original digital fingerprint is extracted from the blockchain and compared with the digital fingerprint to be tested.

[0084] Data items with inconsistent comparison results are screened out and determined as incomplete data items. The corresponding original data is obtained from the collection node of the incomplete data item, and the missing data of the incomplete data item is compensated according to the original data to achieve the integrity processing of the incomplete data item and obtain the standard data of silver melon seeds.

[0085] S103, performing data mining on the standard data of silver melon seeds to obtain key data of silver melon seeds.

[0086] Specifically, based on the silver melon seed standard data, the processing quality score and the corresponding processing quality level of each data processing node are determined.

[0087] As a feasible implementation method, according to Determine the processing quality score M of the i-th data processing node i ; Where n is the total number of data items related to the processing quality of the silver melon seed standard data corresponding to the i-th data processing node; x ij is the value of the jth data item of the silver melon seed standard data corresponding to the i-th data processing node, p ij is the standard threshold value of the jth data item of the silver melon seed standard data corresponding to the i-th data processing node, w ij is the influence weight of the j-th data item of the silver melon seed standard data corresponding to the ith data processing node, and the influence weight can be manually specified based on expert experience.

[0088] This formula can analyze the actual processing quality of the seeds during the entire cycle according to the actual data of silver melon seeds, analyze the links that affect the seed quality, and propose a unique data processing, storage and traceability system specifically for silver melon seeds, which can accurately extract users' demand data on silver melon seeds and solve users' problems from a professional perspective.

[0089] In one embodiment, if the processing quality related data items in the silver melon seed storage node 203 include: temperature, humidity, carbon dioxide concentration, fan speed, cooling device working temperature, a total of 5 items, each of which corresponds to a standard threshold. Then substituting into the above formula is: Substituting the actual value into the formula, the processing quality score of the current bag of seeds in the silver melon seed storage node 203 can be obtained.

[0090] The obtained processing quality score of each data processing node is then matched with a preset processing quality level interval to determine the processing quality level of each data processing node.

[0091] Furthermore, the processing quality score of each data processing node is weighted and calculated to obtain the comprehensive quality score of each bag of silver melon seeds. The comprehensive quality score is input into a preset seed growth prediction model to predict the seed growth and obtain the growth prediction result.

[0092] Furthermore, the processing quality score, processing quality grade, comprehensive quality score and growth prediction results of each data processing node are summarized as the key data of silver melon seeds.

[0093] S104. Combine the distributed database with the blockchain to obtain a reliable distributed database; and store the silver melon seed standard data and the silver melon seed key data in the reliable distributed database.

[0094] Specifically, each distributed sub-node of the distributed database is associated with a block of the blockchain, including:

[0095] When the current distributed child node receives an association request for a valid block, it will first be temporarily stored in the association queue. When the length of the association queue exceeds the preset length, the earliest block in the association queue will be retained on the disk, and the other blocks in the association queue will be released, and the association queue will be cleared; the current distributed child node will be associated with the block retained on the disk, and a data storage list for the block will be established.

[0096] Furthermore, a data storage list of associated blocks is established in each distributed sub-node of the distributed database. The data storage list includes: an information table for storing hash and index information about the current block; a block table for storing all blocks in the blockchain; an authorization table for storing database permission information; and a database table for storing a list of existing databases;

[0097] Furthermore, the database change SQL statements are stored in each block of the blockchain to obtain a reliable distributed database.

[0098] As a feasible implementation method, when the data or structure of the current distributed sub-node changes, a change request is initiated based on the database change SQL statement stored in the associated block and sent to each distributed sub-node of the reliable distributed database, and each distributed sub-node jointly verifies the change request. After all verifications are passed, the data change of the current distributed sub-node is executed according to the database change SQL statement; wherein, the change request includes the block signature information of the sending node. The combination of blockchain and distributed database enables the data change operation in the database to be fully monitored by all distributed sub-nodes and blockchain. No matter what changes are made to the database, they need to be agreed by all distributed sub-nodes and leave traces in the blockchain, realizing SQL transactions in a decentralized manner between distributed sub-nodes that do not trust or cannot trust each other, which can ensure the security of silver melon seed data stored in the database.

[0099] Finally, the silver melon seed standard data and the silver melon seed key data are stored in each distributed sub-node of the reliable distributed database.

[0100] S105, performing intent analysis on the silver melon seed-related questions input by the user, and calling a reliable distributed database for data retrieval and question answering based on the analysis results.

[0101] Specifically, the user input question is obtained and vectorized to obtain the question vector. Then, the question vector is analyzed for intent using a large language model to extract the user's intended keywords.

[0102] Further, according to the user's intended keywords, target silver melon seed data is retrieved in a reliable distributed database; wherein the target silver melon seed data includes silver melon seed key data and / or silver melon seed standard data.

[0103] Furthermore, the target silver melon seed data is input into the large language model for answer analysis, and based on the key data of the silver melon seeds, it is determined whether the current problem of the silver melon seeds is reasonable, as well as the data processing nodes that may cause the current problem of the silver melon seeds, to generate a reference solution for the silver melon seed problem.

[0104] In one embodiment, if the question input by the user is: "Why do the silver melon seeds of No. x1x2x3x4 grow poorly?" After receiving the question, the large language model performs intent analysis on the question vector and extracts the intent keywords: x1x2x3x4, silver melon seeds, and poor growth. Then, based on these keywords, the key data of the seeds No. x1x2x3x4 is retrieved from the reliable distributed database to obtain the processing quality score and processing quality grade of each processing stage of the bag of seeds. If the origin score of this bag of seeds is poor, then there may be a mistake in the selection of the seed origin. After organizing the language, the large language model outputs the answer to the user and recommends that the user buy seeds from a place of origin with better germplasm next year.

[0105] In another embodiment, the information of silver melon seeds can also be traced through a large language model. The user enters the seed identification number and the keyword "traceability" into the large language model, and the large language model can retrieve the full-cycle data of this bag of seeds in a reliable distributed database for the user to view.

[0106] In addition, the embodiment of the present invention also provides a silver melon seed data processing and storage device based on blockchain, such as Figure 3 As shown, the silver melon seed data processing and storage device based on blockchain specifically includes:

[0107] at least one processor; and a memory in communication with the at least one processor; wherein,

[0108] The memory stores instructions executable by at least one processor to enable the at least one processor to perform:

[0109] Obtaining full-cycle data of silver melon seeds in each data processing node; wherein the full-cycle data at least includes seed source data, germplasm detection data, seed storage data, and seed transportation trajectory data;

[0110] The authenticity and integrity of the full-cycle data are verified to obtain silver melon seed standard data;

[0111] Performing data mining on the standard data of silver melon seeds to obtain key data of silver melon seeds;

[0112] The distributed database is combined with the blockchain to obtain a reliable distributed database; and the silver melon seed standard data and the silver melon seed key data are stored in the reliable distributed database;

[0113] Intention analysis is performed on silver melon seed-related questions input by the user, and the reliable distributed database is called to perform data retrieval and question answering according to the analysis results.

[0114] Each embodiment of the present invention is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0115] The above describes specific embodiments of the present invention. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0116] The above description is only an embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiments of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for processing and storing silver melon seed data based on blockchain, characterized in that: The method comprises: Obtaining full-cycle data of silver melon seeds in each data processing node; wherein the full-cycle data at least includes seed source data, germplasm detection data, seed storage data, and seed transportation trajectory data; The authenticity and integrity of the full-cycle data are verified to obtain silver melon seed standard data; Performing data mining on the standard data of silver melon seeds to obtain key data of silver melon seeds; The distributed database is combined with the blockchain to obtain a reliable distributed database; and the silver melon seed standard data and the silver melon seed key data are stored in the reliable distributed database; Intention analysis is performed on silver melon seed-related questions input by the user, and the reliable distributed database is called to perform data retrieval and question answering according to the analysis results.

2. According to a method for processing and storing silver melon seed data based on blockchain in claim 1, it is characterized in that: The full cycle data of silver melon seeds is obtained in each data processing node, including: The seed source data is obtained at the silver melon seed source node; wherein the seed source data at least includes: silver melon seed origin information and silver melon seed output batch information; The germplasm detection data is obtained at the silver melon seed quality inspection node; wherein the germplasm detection data at least includes: silver melon seed varieties and seed trait detection parameters and seed trait grades of each variety; The seed storage data is obtained at the Yingua seed storage node; wherein the seed storage data at least includes: warehouse environment parameters and warehouse auxiliary storage device parameters; The seed transportation trajectory data is obtained at the silver melon seed transportation node; the seed transportation trajectory data at least includes the transportation trajectory data of each bag of seeds, the identification number of each bag of seeds at each transportation node and the transportation condition parameters of each transportation trajectory; wherein, each bag of seeds generates a unique identification number in the information entry system every time it passes through a transportation node, and the identification number of the bag of seeds is sequentially spliced ​​after the existing identification number of the bag of seeds until the seeds arrive at the destination, thereby obtaining the final identification number of the bag of seeds.

3. A method for processing and storing silver melon seed data based on blockchain according to claim 2, characterized in that: The authenticity and integrity of the full cycle data are verified to obtain the standard data of silver melon seeds, including: In the seed transport trajectory data, verify whether the identification number of the current transport node of each bag of seeds contains all the identification numbers of each previous transport node; If not, it is determined that there is an untrue situation in the existing full-cycle data of the current transport node; If yes, then based on the pre-trained linear regression model, verify whether there is abnormal data in each type of full-cycle data; if yes, then determine that the existing full-cycle data of the current transport node is untrue; If any one or more full-cycle data are found to be untrue, feedback will be given to the uploader of the relevant data, requiring the uploader to re-enter the data until the uploaded data is not untrue; The full-cycle data after authenticity verification is processed for integrity to obtain the silver melon seed standard data.

4. A method for processing and storing silver melon seed data based on blockchain according to claim 3, characterized in that: The integrity of the full cycle data after authenticity verification is processed to obtain the silver melon seed standard data, which specifically includes: When the original data of the silver melon seed is generated in each data processing node, the hash value of the original data is calculated in advance by a message digest algorithm to obtain the original digital fingerprint; and the original digital fingerprint of each data processing node is directly stored in the blockchain; When it is necessary to perform integrity detection on the full-cycle data after authenticity verification, the hash value of the full-cycle data to be detected is calculated by the message digest algorithm to obtain the digital fingerprint to be tested; According to the collection node of the full-cycle data to be detected, the corresponding original digital fingerprint is extracted from the blockchain and compared with the digital fingerprint to be tested; Filter out data items with inconsistent comparison results and determine them as incomplete data items; The corresponding original data is obtained from the collection node of the incomplete data item, and the missing data of the incomplete data item is compensated according to the original data, so as to achieve integrity processing of the incomplete data item and obtain the silver melon seed standard data.

5. According to a method for processing and storing silver melon seed data based on blockchain in claim 4, it is characterized in that: Data mining is performed on the standard data of silver melon seeds to obtain key data of silver melon seeds, including: Determine the processing quality score and corresponding processing quality grade of each data processing node according to the silver melon seed standard data; The processing quality score of each data processing node is weighted and calculated to obtain the comprehensive quality score of each bag of silver melon seeds; Inputting the comprehensive quality score into a preset seed growth prediction model to predict seed growth and obtain a growth prediction result; The processing quality score, processing quality grade, comprehensive quality score and growth prediction result of each data processing node are summarized as the key data of the silver melon seeds.

6. A method for processing and storing silver melon seed data based on blockchain according to claim 5, characterized in that: According to the silver melon seed standard data, the processing quality score and the corresponding processing quality level of each data processing node are determined, specifically including: according to Determine the processing quality score M of the i-th data processing node i ; Where n is the total number of data items related to the processing quality of the silver melon seed standard data corresponding to the i-th data processing node; x ij is the value of the jth data item of the silver melon seed standard data corresponding to the i-th data processing node, p ij is the standard threshold value of the jth data item of the silver melon seed standard data corresponding to the i-th data processing node, w ij is the influence weight of the j-th data item of the silver melon seed standard data corresponding to the i-th data processing node; The obtained processing quality score of each data processing node is matched with a preset processing quality level interval to determine the processing quality level of each data processing node.

7. A method for processing and storing silver melon seed data based on blockchain according to claim 1, characterized in that: Combining the distributed database with the blockchain, a reliable distributed database is obtained, including: Associating each distributed sub-node of the distributed database with a block of the blockchain; Establishing a data storage list of associated blocks in each distributed sub-node of the distributed database; wherein the data storage list includes: an information table for storing hash and index information about the current block; a block table for storing all blocks in the blockchain; an authorization table for storing database permission information; and a database table for storing a list of existing databases; Storing database change SQL statements in each block of the blockchain to obtain the reliable distributed database; When the data or structure of the current distributed sub-node changes, a change request is initiated based on the database change SQL statement stored in the associated block and sent to each distributed sub-node of the reliable distributed database, and each distributed sub-node jointly verifies the change request; after all verifications are passed, the data change of the current distributed sub-node is executed according to the database change SQL statement; wherein, the change request includes the block signature information of the sending node.

8. According to a method for processing and storing silver melon seed data based on blockchain according to claim 7, it is characterized in that: Associating each distributed sub-node of the distributed database with a block of the blockchain, specifically including: When the current distributed child node receives an association request for a valid block, it first temporarily stores it in the association queue; When the length of the associated queue exceeds a preset length, the earliest block in the associated queue is retained on the disk, and other blocks in the associated queue are released to clear the associated queue; Associate the current distributed child node with the block retained on disk and establish a data storage list for the block.

9. The method for processing and storing silver melon seed data based on blockchain according to claim 1, characterized in that: Perform intention analysis on the silver melon seed-related questions input by the user, and call the reliable distributed database for data retrieval and question answering based on the analysis results, specifically including: Obtaining a question input by a user, and performing vectorization processing on the question to obtain a question vector; Performing intent analysis on the question vector through a large language model to extract user intent keywords; According to the user intention keyword, target silver melon seed data is retrieved in the reliable distributed database; the target silver melon seed data includes silver melon seed key data and / or silver melon seed standard data; The target silver melon seed data is input into the large language model for answer analysis, and based on the silver melon seed key data, it is determined whether the current problem of the silver melon seed is reasonable, as well as the data processing nodes that may cause the current problem of the silver melon seed, to generate a reference solution for the silver melon seed problem.

10. A silver melon seed data processing and storage device based on blockchain, characterized in that: The device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, so that the at least one processor can execute the blockchain-based silver melon seed data processing and storage method according to any one of claims 1-9.

Citation Information

Patent Citations

  • Tea credible tracing system based on block chain and use method thereof

    CN111464658A

  • Blockchain-based private transactions and usage method and apparatus therefor

    WO2020088109A1