A Method and Device for Processing and Storing Silver Melon Seed Data Based on Blockchain
By introducing blockchain technology and large language models into the Yingua Seed data processing system, a reliable distributed database was built, and the problem that existing systems could not guarantee data security and integrity was solved, and the full process recording and traceability of Yingua Seed data was realized, providing fast and accurate data retrieval and question-answering services.
Patent Information
- Application Number
- CN202411403707.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-09
- Publication Date
- 2025-06-17
- Estimated Expiration
- 2044-10-09
AI Technical Summary
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.
The blockchain-based data processing and storage method is adopted, and the full-cycle data of Yingua Seed is obtained at each data processing node, authenticity verification and integrity processing are carried out, standard data of Yingua Seed is generated, and key data of Yingua Seed is obtained through data mining. 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.
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.
Smart Images

Figure CN119396867B_ABST
Abstract
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] The silver melon belongs to the Cucurbitaceae family, the melon genus, and the thin-skinned melon species, and has a cultivation history of more than 380 years. After high-quality silver melons are mature, the sugar content can reach 12% - 14%, with a strong fragrance and a pleasant smell, and are increasingly favored by consumers. Therefore, in recent years, the planting rate of silver melons has also increased significantly. And the quality of silver melon seeds is the key factor determining the quality and sales volume of silver melons.
[0003] Currently, the information traceability system for silver melon seeds is not perfect. If the planted silver melons show a reduction in production or abnormal conditions, it is impossible to determine whether there are problems in the source of the seeds and the intermediate storage and transportation processes. Even if some existing information traceability systems are used for recording, there may be cases of data loss or data fraud. Moreover, the germplasm requirements, storage conditions, and transportation conditions of silver melon seeds are all unique. If the existing information traceability systems are directly applied, it is often impossible to accurately extract the data that users want and solve the problems of users. Summary of the Invention
[0004] Embodiments of the present invention provide a method and device for processing and storing silver melon seed data based on blockchain, which are used to solve the following technical problems: The existing information traceability system cannot ensure the security and integrity of data, and cannot extract key data for storage according to the characteristics of silver melon seeds, and is not suitable for storing silver melon seed data.
[0005] Embodiments of the present invention adopt the following technical solutions:
[0006] On the one hand, embodiments of the present invention provide a method for processing and storing silver melon seed data based on blockchain, and the method includes: obtaining the 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 track data;
[0007] Performing authenticity verification and integrity processing on the full-cycle data to obtain standard silver melon seed data;
[0008] Performing data mining on the standard silver melon seed data to obtain key silver melon seed data;
[0009] Combining a distributed database with blockchain to obtain a reliable distributed database; and storing the standard silver melon seed data and the key silver melon seed data into the reliable distributed database;
[0010] Perform intent analysis on the questions related to the silver melon seeds input by the user, and call the reliable distributed database for data retrieval and question answering according to the analysis results.
[0011] In a feasible implementation manner, obtain the full-cycle data of the silver melon seeds in each data processing node, specifically including:
[0012] Obtain the seed source data at the silver melon seed source node; wherein, the seed source data at least includes: the production area information of the silver melon seeds and the output batch information of the silver melon seeds;
[0013] Obtain the germplasm detection data at the silver melon seed quality inspection node; wherein, the germplasm detection data at least includes: the variety of the silver melon seeds and the seed trait detection parameters and seed trait grades of each variety;
[0014] Obtain the seed storage data at the silver melon seed storage node; wherein, the seed storage data at least includes: the warehouse environment parameters and the parameters of the warehouse auxiliary storage devices;
[0015] Obtain the seed transportation trajectory data 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, a unique identification number is generated in the information entry system every time each bag of seeds passes through a transportation node, and it is sequentially concatenated after the existing identification number of this bag of seeds until the seeds reach the destination to obtain the final identification number of this bag of seeds.
[0016] In a feasible implementation manner, perform authenticity verification and integrity processing on the full-cycle data to obtain the standard data of the silver melon seeds, specifically including:
[0017] In the seed transportation trajectory data, verify whether the identification number of the current transportation node of each bag of seeds contains all the identification numbers of each previous transportation node;
[0018] If not, it is determined that there is an untrue situation in the existing full-cycle data of the current transportation node;
[0019] If so, based on the pre-trained linear regression model, verify whether there is abnormal data in each category of full-cycle data; if so, it is determined that there is an untrue situation in the existing full-cycle data of the current transportation node;
[0020] If it is detected that there is an untrue situation in any one or more items of the full-cycle data, feedback to the uploader of the relevant data and require the other party to re-enter the data until there is no untrue situation in the uploaded data;
[0021] Perform integrity processing on the full-cycle data after authenticity verification to obtain the standard data of the silver melon seeds.
[0022] In a feasible implementation, integrity processing is performed on the full-cycle data after authenticity verification to obtain the standard data of the silver melon seeds, specifically including:
[0023] When generating the original data of the silver melon seeds at 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 fingerprints of each data processing node are directly stored in the blockchain;
[0024] 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 through 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] The data items with inconsistent comparison results are screened out and determined as incomplete data items;
[0027] The original data corresponding to the incomplete data items is obtained from the collection nodes of the incomplete data items, and the missing data of the incomplete data items is compensated according to the original data, so as to realize the integrity processing of the incomplete data items and obtain the standard data of the silver melon seeds.
[0028] In a feasible implementation, data mining is performed on the standard data of the silver melon seeds to obtain the key data of the silver melon seeds, specifically including:
[0029] According to the standard data of the silver melon seeds, the processing quality score and the corresponding processing quality level of each data processing node are determined;
[0030] The processing quality scores of each data processing node are weighted and calculated to obtain the comprehensive quality score of each bag of silver melon seeds;
[0031] The comprehensive quality score is input into a preset seed growth prediction model to predict the growth situation of the seeds, and the growth situation prediction result is obtained;
[0032] The processing quality score, processing quality level of each data processing node, the comprehensive quality score, and the growth situation prediction result are summarized as the key data of the silver melon seeds.
[0033] In a feasible implementation, according to the standard data of the silver melon seeds, 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 standard data of the silver melon seeds corresponding to the i-th data processing node; x ij is the value of the j-th data item of the standard data of the silver melon seeds corresponding to the i-th data processing node, p ij is the standard threshold of the j-th data item of the standard data of the silver melon seeds corresponding to the i-th data processing node, w ij is the influence weight of the j-th data item of the standard data of the silver melon seeds corresponding to the i-th data processing node;
[0036] Match the processing quality scores of each obtained data processing node with a preset processing quality level interval to determine the processing quality level of each data processing node.
[0037] In a feasible implementation, combine the distributed database with the blockchain to obtain a reliable distributed database, specifically including:
[0038] Associate each distributed sub-node of the distributed database with a block of the blockchain;
[0039] Establish 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 saving information about the current block hash and index; a block table for saving all blocks in the blockchain; an authorization table for saving database permission information; a database table for saving the existing database list;
[0040] Store 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, initiate a change request based on the database change SQL statements stored in the associated block and send it to each distributed sub-node of the reliable distributed database, and jointly verify the change request by each distributed sub-node; after all verifications pass, execute the data change of the current distributed sub-node according to the database change SQL statements; 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 sub-node receives an association request for a valid block, first temporarily store it in the association queue;
[0044] When the length of the associated queue exceeds the preset length, retain the earliest block in the associated queue on the disk, release other blocks in the associated queue, and empty the associated queue;
[0045] Associate the current distributed sub-node with the block retained on the disk and establish a data storage list for this block.
[0046] In a feasible implementation manner, perform intent analysis on the questions related to the silver melon seeds input by the user, and call the reliable distributed database for data retrieval and question answering according to the analysis results, specifically including:
[0047] Obtain the question input by the user and perform vectorization processing on the question to obtain a question vector;
[0048] Perform intent analysis on the question vector through a large language model and extract the user intent keywords;
[0049] According to the user intent keywords, retrieve the target silver melon seed data 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] Input the target silver melon seed data into the large language model for answer analysis, and based on the silver melon seed key data, determine whether it is reasonable for the silver melon seeds to have the current problem, and the data processing nodes that may cause the silver melon seeds to have the current problem, and generate a reference solution for the silver melon seed problem.
[0051] On the other hand, the embodiment of the present invention also provides a silver melon seed data processing and storage device based on a blockchain, including: 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 above-mentioned silver melon seed data processing and storage method based on a blockchain.
[0054] Compared with the prior art, the silver melon seed data processing and storage method and device based on a blockchain provided by the embodiment of the present invention have the following beneficial effects:
[0055] The present invention creates a system capable of processing and storing the full-cycle data of silver melon seeds, which can record the whole process data of silver melon seeds from generation to quality inspection, distribution and transportation until they germinate in the hands of growers. When necessary, it can trace the origin and rely on large language models to answer questions related to silver melon seeds. Before data storage, the present invention conducts accurate authenticity verification on 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 unfilled data is completed, ensuring 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. According to the parameter performance in the full-cycle processing process, it calculates the processing quality level of each processing node and the comprehensive score of the whole process, and predicts the final growth situation of silver melon seeds. Further combining these data with large language models can quickly and accurately answer the questions raised by growers. This setting can not only provide growers with a reference for seed quality and a growth trend expectation for the seeds, but also help growers quickly locate the possible problem links of silver melon seeds in the full-cycle processing process when planting problems occur, timely find the crux of the problem, provide important reference data for growers, and take remedial measures in time.
[0057] Finally, the present invention also transforms the distributed database, combines the distributed database with the blockchain structure, constructs a reliable and tamper-proof reliable distributed database, and stores the above-mentioned silver melon seed data that has passed authenticity verification, integrity processing and data mining in the reliable distributed database, which can maximize the protection of the authenticity, integrity, directivity and security of silver melon seed data. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments described in the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained according to these drawings. In the drawings:
[0059] Figure 1 is a flowchart of a method for processing and storing silver melon seed data based on blockchain provided by an embodiment of the present invention;
[0060] Figure 2 is a schematic diagram of a full-cycle data processing node of silver melon seeds provided by an embodiment of the present invention;
[0061] Figure 3Schematic diagram of the structure of a blockchain-based silver melon seed data processing and storage device provided by an embodiment of the present invention. Detailed implementation manners
[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 accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of this specification, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0063] The embodiment of the present invention provides a blockchain-based silver melon seed data processing and storage method. As Figure 1 shown, the blockchain-based silver melon seed data processing and storage method specifically includes steps S101 - S105:
[0064] S101. Obtain the full-cycle data of silver melon seeds at each data processing node; wherein, the full-cycle data at least includes seed source data, germplasm detection data, seed storage data, and seed transportation track data.
[0065] Specifically, Figure 2 Schematic diagram of a silver melon seed full-cycle data processing node provided by an embodiment of the present invention. As Figure 2 shown, the silver melon seed full-cycle data processing node mainly includes: 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] Among them, obtain the seed source data at the silver melon seed source node 201; wherein, the seed source data at least includes: silver melon seed production area information and silver melon seed output batch information. For example, if the production area of a bag of silver melon seeds is Area A, then obtain the place name and detailed address of Area A, as well as which batch this bag of silver melon seeds belongs to during output, obtain the batch number and the output time and output destination of this batch, etc.
[0067] Furthermore, obtain the germplasm detection data at the silver melon seed quality inspection node 202; wherein, the germplasm detection data at least includes: silver melon seed variety and the seed trait detection parameters and seed trait grades of each variety.
[0068] As a feasible implementation manner, before the distribution of silver melon seeds, it is necessary to conduct germplasm detection on silver melon seeds of each variety to eliminate some unqualified seeds. After detection, the seed trait detection parameters of silver melon seeds can be obtained, and according to the detected seed trait detection parameters, the germplasm of silver melon seeds can be graded to obtain the seed trait grades.
[0069] In one example, the trait detection parameters for germplasm detection of silver melon seeds may include: parameters such as 1000-seed weight, seed length, seed width, seed thickness, and seed shape index.
[0070] Further, obtain seed storage data in the silver melon 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 manner, the silver melon seeds are stored in a warehouse before distribution and transportation. At this time, it is necessary to collect the environment parameters of the warehouse, such as temperature, humidity, carbon dioxide concentration and other parameters. In addition, due to the special preservation conditions of the seeds, some auxiliary storage devices are required to adjust the storage environment in the warehouse, such as ventilation fans, cooling devices, etc. Therefore, it is also necessary to collect the setting parameters of these auxiliary storage devices, such as fan speed, cooling device operating temperature, etc.
[0072] Further, obtain seed transportation trajectory data 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 manner, after the seeds are out of the warehouse, they need to be distributed and transported to different transportation nodes until they reach their respective destinations. The present invention collects the transportation trajectory data of each bag of seeds during the transportation process. The transportation trajectory includes the starting point, the ending point, and the intermediate transportation nodes, and also includes transportation condition parameters such as the temperature and humidity in the carriage of the transportation vehicle and the ground flatness 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 numbers are sequentially concatenated after the existing identification number of this bag of seeds until the seeds reach the destination, obtaining the final identification number of this bag of seeds. Then bind the identification number of the seeds to the transportation trajectory.
[0074] In one embodiment, if the transportation trajectory of a bag of seeds is: starting point, transportation node 1, transportation node 2, ending point. Then a unique identification number x1 is randomly generated at the starting point, and a unique identification number x2 is randomly generated again after reaching transportation node 1. At this time, the unique identification number of this bag of seeds is x1x2. And so on, if the identification number generated at transportation node 2 is x3 and the identification number generated at the ending point is x4, then the final identification number of this bag of seeds is x1x2x3x4.
[0075] Based on this mechanism, the identification numbers of a bag of seeds are different at each transportation node. And if we randomly select an identification number at a transportation node, it contains the identification numbers of all previous transportation nodes. Therefore, based on the identification number at any transportation node, the previous transportation trajectory of this bag of seeds can be determined. Moreover, the authenticity of the transportation trajectory can be verified through the identification number.
[0076] S102. Conduct authenticity verification and integrity processing on the full-cycle data to obtain the standard data of the silver melon seeds.
[0077] Specifically, in the seed transportation trajectory data, verify whether the identification number of the current transportation node of each bag of seeds contains all the identification numbers of each previous transportation node. If not, it is determined that there is an untrue situation in the existing full-cycle data of the current transportation node.
[0078] If so, based on the pre-trained linear regression model, verify whether there is abnormal data in each type of full-cycle data; if so, it is determined that there is an untrue situation in the existing full-cycle data of the current transportation node.
[0079] Furthermore, if it is detected that there is an untrue situation in any one or more items of the full-cycle data, it is fed back to the uploader of the relevant data, and the other party is required to re-enter the data until there is no untrue situation in the uploaded data.
[0080] As a feasible implementation method, if the identification number of a bag of seeds does not match the obtained transportation trajectory, it can be known that the data of this bag of seeds may have been tampered with or there is an error. At this time, it needs to be returned to the data uploader for re-uploading. If the identification number of a bag of seeds is okay, it does not mean that other data of this bag of seeds is also okay. Therefore, through the linear regression model, detect whether there is obvious abnormal data in each data item. If there is, these data may also have an untrue situation and are also returned to the data uploader for re-uploading. Thus, it is ensured that the received data are all true data.
[0081] Furthermore, conduct integrity processing on the full-cycle data after authenticity verification to obtain the standard data of the silver melon seeds, which specifically includes:
[0082] When generating the original data of the silver melon seeds at each data processing node, calculate the hash value of the original data in advance through the message digest algorithm to obtain the original digital fingerprint; and directly store the original digital fingerprints of each data processing node into the blockchain.
[0083] When it is necessary to conduct integrity detection on the full-cycle data after authenticity verification, calculate the hash value of the full-cycle data to be detected 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 detected, extract the corresponding original digital fingerprint from the blockchain and compare it with the digital fingerprint to be tested.
[0084] Screen out the data items with inconsistent comparison results and determine them as incomplete data items. Obtain the corresponding original data from the collection nodes of the incomplete data items, and perform missing data compensation on the incomplete data items according to the original data to achieve the integrity processing of the incomplete data items and obtain the standard data of the silver melon seeds.
[0085] S103. Perform data mining on the standard data of the silver melon seeds to obtain the key data of the silver melon seeds.
[0086] Specifically, according to the standard data of the silver melon seeds, determine the processing quality score and the corresponding processing quality level of each data processing node.
[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 standard data of the silver melon seeds corresponding to the i-th data processing node; x ij is the value of the j-th data item of the standard data of the silver melon seeds corresponding to the i-th data processing node, p ij is the standard threshold of the j-th data item of the standard data of the silver melon seeds corresponding to the i-th data processing node, and w ij is the influence weight of the j-th data item of the standard data of the silver melon seeds corresponding to the i-th data processing node, and this influence weight can be artificially specified according to expert experience.
[0088] This formula can analyze the actual processing quality in the whole life cycle of the seeds according to the actual data of the silver melon seeds, analyze the links affecting the seed quality, and specifically propose a unique data processing, storage and traceability system for the silver melon seeds, which can accurately extract the demand data of users about the silver melon seeds and solve the problems of users from a professional perspective.
[0089] In one embodiment, if the data items related to the processing quality in the silver melon seed storage node 203 include: temperature, humidity, carbon dioxide concentration, fan speed, and working temperature of the cooling device, a total of 5 items, and each item corresponds to a standard threshold. Then substituting into the above formula is: Substitute the actual values into the formula to obtain the processing quality score of this bag of seeds at the silver melon seed storage node 203.
[0090] Then match the obtained processing quality score of each data processing node with the preset processing quality level interval to determine the processing quality level of each data processing node.
[0091] Further, the processing quality scores of each data processing node are 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 situation and obtain the growth situation prediction result.
[0092] Further, the processing quality scores, processing quality levels, comprehensive quality scores, and growth situation 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 key data of silver melon seeds in the reliable distributed database.
[0094] Specifically, associate each distributed sub-node of the distributed database with the blocks of the blockchain, which specifically includes:
[0095] When the current distributed sub-node receives an association request for a valid block, first temporarily store it in the association queue. When the length of the association queue exceeds the preset length, retain the earliest block in the association queue on the disk, release the other blocks in the association queue, and empty the association queue; associate the current distributed sub-node with the block retained on the disk and establish a data storage list for this block.
[0096] Further, establish a data storage list for the associated blocks in each distributed sub-node of the distributed database. Among them, the data storage list includes: an information table for storing information about the current block hash and index; a block table for storing all blocks in the blockchain; an authorization table for storing database permission information; a database table for storing the existing database list;
[0097] Further, store the database change SQL statements in each block of the blockchain to obtain a reliable distributed database.
[0098] As a feasible implementation, when the data or structure of the current distributed sub-node changes, a change request is initiated based on the database change SQL statements 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 pass, the data change of the current distributed sub-node is executed according to the database change SQL statements; among them, the change request includes the block signature information of the sending node. The combination of the blockchain and the distributed database enables the data change operations in the database to be monitored throughout the process by all distributed sub-nodes and the blockchain. No matter what changes are made to the database, they need to be agreed upon by all distributed sub-nodes and leave a record in the blockchain, realizing SQL transactions in a decentralized manner among distributed sub-nodes that do not trust or cannot trust each other, and can ensure the security of the watermelon seed data stored in the database.
[0099] Finally, the watermelon seed standard data and the watermelon seed key data are stored in each distributed sub-node of the reliable distributed database.
[0100] S105. Perform intent analysis on the watermelon seed-related questions input by the user, and call the reliable distributed database for data retrieval and question answering according to the analysis results.
[0101] Specifically, obtain the question input by the user, and perform vectorization processing on the question to obtain a question vector. Then, perform intent analysis on the question vector through a large language model to extract the user intent keywords.
[0102] Furthermore, according to the user intent keywords, retrieve the target watermelon seed data in the reliable distributed database; among them, the target watermelon seed data includes the watermelon seed key data and / or the watermelon seed standard data.
[0103] Furthermore, input the target watermelon seed data into the large language model for answer analysis, and based on the watermelon seed key data, determine whether it is reasonable for the watermelon seeds to have the current problem, and the data processing nodes that may cause the watermelon seeds to have the current problem, and generate a reference solution for the watermelon seed problem.
[0104] In one embodiment, if the question input by the user is: "Why is the growth of the silver melon seeds numbered x1x2x3x4 poor?" After receiving this question, the large language model analyzes the intention of the question vector and extracts the intention keywords: x1x2x3x4, silver melon seeds, poor growth. Then, based on these keywords, it retrieves the key data of the x1x2x3x4 seeds from the reliable distributed database, and obtains the processing quality score and processing quality level at each processing stage of this bag of seeds. If the origin score of this bag of seeds is poor, then there may be a situation of incorrect selection of the seed origin. The large language model organizes the language and outputs the answer to the user, and recommends that the user buy seeds from a better germplasm origin next year.
[0105] In another embodiment, the information traceability of silver melon seeds can also be performed through the large language model. When the user inputs the identification number of the seeds and the keyword "traceability" in the large language model, the large language model can retrieve the full-cycle data of this bag of seeds from the 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, as Figure 3 shown. The silver melon seed data processing and storage device based on blockchain specifically includes:
[0107] At least one processor; and a memory communicatively connected to the at least one processor; wherein,
[0108] The memory stores instructions that can be executed by the at least one processor, so that the at least one processor can execute:
[0109] Obtain the 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] Perform authenticity verification and integrity processing on the full-cycle data to obtain silver melon seed standard data;
[0111] Perform data mining on the silver melon seed standard data to obtain key data of silver melon seeds;
[0112] Combine the distributed database with the blockchain to obtain a reliable distributed database; and store the silver melon seed standard data and the key data of silver melon seeds in the reliable distributed database;
[0113] Analyze the intention of the silver melon seed-related questions input by the user, and call the reliable distributed database for data retrieval and question answering according to the analysis results.
[0114] Each embodiment in the present invention is described in a progressive manner. For the same or similar parts among the embodiments, reference can be made to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the embodiments of the apparatus, device, and non-volatile computer storage medium, since they are basically similar to the method embodiments, the description is relatively simple. For the relevant parts, reference can be made to the partial description of the method embodiments.
[0115] The above describes specific embodiments of the present invention. Additionally, the processes depicted in the drawings do not necessarily require the specific order or consecutive order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0116] The above are only the embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, various modifications and changes can be made to the embodiments of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the embodiments of the present invention shall be included within 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; 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; Summarize the processing quality score, processing quality grade, comprehensive quality score and growth prediction result of each data processing node as the 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. According to a method for processing and storing silver melon seed data based on blockchain in claim 3, it is 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 1, it is 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 of the i-th data processing node ; 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; is the value of the jth data item of the silver melon seed standard data corresponding to the i-th data processing node, 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, 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.
6. 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.
7. A method for processing and storing silver melon seed data based on blockchain according to claim 6, 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.
8. 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 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.
9. 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-8.
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