Detection method of trace elements in tea based on element spectrum
By establishing the elemental spectrum of tea and using the Wi-Fi data management network to perform targeted element extraction and update, the problem of low efficiency caused by too many elemental attributes in tea detection was solved, and efficient trace element detection was achieved.
Patent Information
- Application Number
- CN202311258358.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-27
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2043-09-27
AI Technical Summary
In the existing technology, when detecting tea leaves, due to excessive element attributes, the detection speed is reduced and the efficiency is low, making it difficult to detect trace elements efficiently.
By establishing the elemental spectrum of tea leaves, real-time collection of growth environment data and element attributes are carried out for similarity matching, targeted element extraction is performed, and a data management network is established through Wi-Fi for data screening and updating to improve detection efficiency.
It improves the scanning efficiency of tea detection, avoids the problem of too many element attributes affecting the detection speed, and significantly improves the efficiency of tea sample detection.
Smart Images

Figure CN116992339B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of tea element detection, in particular to a method for detecting trace elements in tea based on element spectrum. Background Art
[0002] During the growth process, tea leaves easily absorb trace elements dissolved in the soil in the form of ions, chelates or complexes. Trace amounts are good for the body, but too much is harmful. For example, although fluorine is an essential trace element for the human body, excessive intake of fluorine will cause damage to human health. Currently, when testing tea leaves, all elemental properties are scanned for tea samples to obtain the elemental properties contained in the tea samples. Too many elemental properties will affect the speed of completing the scanning of tea samples, resulting in a significant reduction in the efficiency of tea sample testing. Therefore, a method for detecting trace elements in tea samples based on elemental spectrum is proposed. Summary of the invention
[0003] The purpose of the present invention is to provide a method for detecting trace elements in tea leaves based on element spectrum to solve the problems raised in the above background technology.
[0004] To achieve the above object, a method for detecting trace elements in tea based on element spectrum is provided, comprising the following steps:
[0005] S1. Record the test data of the tea element detection equipment, and then select the test data according to different tea samples;
[0006] S2, extracting elemental properties of the test data screened in S1 separately, obtaining elemental properties corresponding to different tea samples, and then collecting growth environment data of different teas, and combining the production environment data with elemental properties to establish a tea element spectrum;
[0007] S3, collecting the growth environment data of the tea leaves to be tested in real time, and performing similarity matching between the collected growth environment data of the tea leaves to be tested and the tea element spectrum, and obtaining the growth environment data with the highest similarity matching value in the tea element spectrum and the corresponding historical element attribute;
[0008] S4, sending the historical element attributes obtained by matching in S3 to the tea element detection device, and controlling the tea element detection device to perform targeted element extraction on the tea to be detected according to the historical element attributes;
[0009] S5. Monitor the element extraction process of S4, compare the new element attributes obtained by extraction with the historical element attributes obtained by S3 matching. If the new element attributes do not belong to the historical element attributes, control the tea element detection equipment to extract all elements, and input the growth environment data of the tea in combination with the new element attributes into the tea element spectrum for learning and updating.
[0010] As a further improvement of the technical solution, S1 establishes a data management network terminal through Wi-Fi and the tea element detection device, and records the detection of the tea element detection device in the data management network terminal.
[0011] As a further improvement of the present technical solution, S1 performs tea sample detection and screening on the detection data of the tea element detection device, and individually identifies each obtained tea sample.
[0012] As a further improvement of the technical solution, the step of S2 combining the production environment data with the element attributes to establish the tea element spectrum is as follows:
[0013] S2.1. Extract the detection process of each individually identified tea sample in the tea element detection device, and obtain the detection result of each tea sample according to the detection process, and obtain the element attribute corresponding to each tea sample according to the detection result;
[0014] S2.2. Collect the growth environment data of each individually identified tea sample to obtain the growth environment data of each tea sample, and then integrate the growth environment data with the element attributes obtained in S2.1 and the corresponding identified tea sample to establish the tea element spectrum.
[0015] As a further improvement of the present technical solution, S3 sends an environment collection network window to the user, and the user sends the data collected by the sensor of the tea growing area to the network window, thereby acquiring the growth environment data of the tea sample.
[0016] As a further improvement of the technical solution, the step of S3 obtaining the growth environment data with the highest similarity matching value in the tea element spectrum and the corresponding historical element attributes is as follows:
[0017] S3.1. Before testing new tea samples, collect the growth environment data uploaded by the user;
[0018] S3.2. Input the growth environment data collected in S3.1 into the tea element spectrum established in S2.2 for similarity matching. The tea element spectrum outputs the historical tea sample with the highest similarity matching value, and extracts the element attributes of the historical tea sample.
[0019] As a further improvement of the present technical solution, S4 sends the element attributes acquired by S3.2 to the tea element detection device through the data management network terminal.
[0020] As a further improvement of the present technical solution, S4 converts the received element properties into detection parameters in the tea element detection device, and performs targeted element detection on the tea samples to be detected through the detection parameters.
[0021] As a further improvement of the technical solution, the step of S5 inputting the growth environment data of the tea leaves in combination with the new element attributes into the tea element spectrum for learning and updating is as follows:
[0022] S5.1. Monitor the process of targeted element detection and extraction in S4;
[0023] S5.2. Compare the new element attributes extracted and the element attributes obtained by matching in S3.2. If unknown elements that do not belong to the historical element attributes appear in the new element attributes, control the tea element detection equipment to extract all elements, replace the unknown elements with the new element attributes, and then input the growth environment data of the tea this time into the tea element spectrum for learning and updating in combination with the new element attributes. Conversely, if the new element attributes do not contain unknown elements that do not belong to the historical element attributes, directly send the growth environment data of the tea this time to the tea element spectrum for learning and updating.
[0024] Compared with the prior art, the present invention has the following beneficial effects:
[0025] In the method for detecting trace elements in tea based on element spectrum, a tea element spectrum is established to perform targeted element scanning on the tea, thereby improving the scanning efficiency of the tea and avoiding too many element attributes affecting the speed of completing the scanning of the tea sample, resulting in a significant reduction in the efficiency of tea sample detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 It is the overall flow chart of the present invention;
[0027] Figure 2 A flowchart of the present invention for combining production environment data with elemental attributes to establish a tea element spectrum;
[0028] Figure 3 A flowchart of obtaining the growth environment data with the highest similarity matching value in the tea element spectrum and the corresponding historical element attributes of the present invention;
[0029] Figure 4 This is a flowchart of the present invention for inputting the growth environment data of the tea leaves into the tea element spectrum for learning and updating in combination with the new element attributes. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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 the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0031] Example: See Figure 1-Figure 4 As shown, the purpose of this embodiment is to provide a method for detecting trace elements in tea leaves based on element spectrum, comprising the following steps:
[0032] S1. Record the test data of the tea element detection equipment, and then select the test data according to different tea samples;
[0033] The S1 establishes a data management network terminal through Wi-Fi and the tea element detection device, and records the detection of the tea element detection device in the data management network terminal. The steps are as follows:
[0034] Determine the network connection method: Determine the use of Wi-Fi network to connect the tea element detection equipment and the data management network end, and ensure that the detection equipment and the data management network end use the same Wi-Fi network;
[0035] Configure network connection: In the settings of the tea element detection device and data management network, configure the Wi-Fi network connection. Enter the correct Wi-Fi name and password to ensure a successful connection;
[0036] Establish network connection: After the device configuration is completed, the detection device will automatically connect to the Wi-Fi network and establish a connection with the data management network terminal;
[0037] Data transmission settings: In the settings of the data management network, configure the data transmission settings of the tea element detection device. Including setting the data receiving port, the IP address of the device and the data format, etc.;
[0038] Detection data transmission: After each detection, the tea element detection equipment transmits the detection results to the data management network via the Wi-Fi network;
[0039] Data analysis and storage: After receiving the data transmitted by the tea element detection equipment, the data management network performs data analysis and processing, and stores the detection results in a database, spreadsheet or other data management system.
[0040] S1 uses the detection data of the tea element detection device to detect and screen the tea samples, and individually identifies each tea sample obtained. The steps are as follows:
[0041] Data reading: Read the detection data of the tea element detection device. This can be read through the data output interface of the device or the data storage medium;
[0042] Data analysis: Analyze the read data and extract relevant information of each tea sample, such as sample number, detection time, element concentration, etc.
[0043] Tea sample screening: Screen tea samples according to relevant information of tea samples. You can screen according to sample number, collection date and other information, and identify the qualified data as a tea sample;
[0044] Data recording and identification: Record and identify the data of the screened tea samples. You can use a table or database to record and ensure that the data of each tea sample is individually identified.
[0045] S2, extracting elemental properties of the test data screened in S1 separately, obtaining elemental properties corresponding to different tea samples, and then collecting growth environment data of different teas, and combining the production environment data with elemental properties to establish a tea element spectrum;
[0046] The steps of S2 combining the production environment data with the element attributes to establish the tea element spectrum are as follows:
[0047] S2.1. Extract the detection process of each individually identified tea sample in the tea element detection device, and obtain the detection result of each tea sample according to the detection process, and obtain the element attribute corresponding to each tea sample according to the detection result; the steps are as follows:
[0048] Sample identification and setup: For each individually identified tea sample, perform sample identification in the tea element detection equipment and make corresponding settings. This may involve entering the sample number or performing sample identification by scanning a QR code, etc.;
[0049] Extraction of the testing process: Start the tea element testing equipment and start testing the sample. During the testing process, the equipment will generate a series of data or logs, including sampling time, test value, report status, etc.
[0050] Data analysis and processing: Obtain the detection process data from the tea element detection equipment, and analyze and process it. According to the data output format and detection method of the equipment, the corresponding algorithm is used for analysis. Based on the detection values in the detection process data, the element concentration or other properties of each tea sample can be calculated;
[0051] Element attribute acquisition: According to the analyzed test results, the element attributes corresponding to each tea sample are obtained. According to the characteristics and needs of the tea, appropriate element attributes can be selected for extraction, such as tea polyphenol content, amino acid content, etc.
[0052] S2.2, collect the growth environment of each individually identified tea sample, obtain the growth environment data of each tea sample, and then integrate the growth environment data with the element attributes obtained in S2.1 and the corresponding identified tea sample to establish the tea element spectrum. The steps are as follows:
[0053] Growth environment data collection: During the growth period of each tea sample, collect the growth environment data of each tea sample according to the steps mentioned above. Ensure accurate recording of the growth environment indicators related to each tea sample, such as soil pH, soil moisture, air temperature, light intensity, precipitation, etc.;
[0054] Element attribute acquisition: Use tea element detection equipment or corresponding detection methods to obtain the element attributes of each tea sample, such as tea polyphenol content, amino acid content, etc. Ensure accurate recording of element attribute data related to each tea sample;
[0055] Data integration: Integrate the collected growth environment data and element attribute data with the corresponding identified tea samples. Data integration can be performed using a database or spreadsheet to ensure that the growth environment data and element attributes are associated with the identification of the tea samples.
[0056] S3, collecting the growth environment data of the tea leaves to be tested in real time, and performing similarity matching between the collected growth environment data of the tea leaves to be tested and the tea element spectrum, and obtaining the growth environment data with the highest similarity matching value in the tea element spectrum and the corresponding historical element attribute;
[0057] S3 sends an environment collection network window to the user, and the user sends the data collected by the sensor of the tea growing area to the network window, thereby obtaining the growth environment data of the tea sample. The steps are as follows:
[0058] Design an environmental collection network window: Design a user-friendly network window to receive data collected by sensors in the tea growing area. This can be done in the form of a web page or a mobile application;
[0059] Send a network window to the user: Send the designed environment collection network window to the user, which can be delivered to the user through email, SMS, scanning QR code, etc.;
[0060] User data transmission: After the user uses the tea growing area sensor to collect data, he / she enters the relevant information on the network window and uploads the data. According to the window design, the user may need to enter information such as the tea sample identification, data upload method (such as file upload, API interface, etc.);
[0061] Data reception and processing: The network window receives the data uploaded by the user, and parses and processes it. Based on the relevant information entered by the user, ensure that the growth environment data of the tea sample is associated with the correct identification;
[0062] Data storage and integration: Store the received tea sample growth environment data in a database or other data management system. Ensure that the data is associated with the tea sample identification for subsequent data analysis and integration.
[0063] The step of S3 obtaining the growth environment data with the highest similarity matching value in the tea element spectrum and the corresponding historical element attributes is as follows:
[0064] S3.1. Before testing new tea samples, collect the growth environment data uploaded by the user;
[0065] S3.2, input the growth environment data collected in S3.1 into the tea element spectrum established in S2.2 for similarity matching, the tea element spectrum outputs the historical tea sample with the highest similarity matching value, and extracts the element attributes of the historical tea sample. The steps are as follows:
[0066] Similarity matching between tea element spectrum and new data: The growth environment data uploaded by the user is matched with the previously established tea element spectrum. Cosine similarity can be used to compare new data with historical data, calculate the similarity between them, and obtain the historical tea sample that is most similar to the new data; the formula is as follows:
[0067] ;
[0068] in, and Represent two vectors (which can be the growth environment data of historical tea samples and the growth environment data uploaded by users), and Represents the cosine of the angle between the two. and The smaller the angle, The closer the value is to 1, the more similar the two are.
[0069] Extract the elemental properties of historical tea samples: extract the elemental properties of the tea sample with the highest similarity match value according to the output of the tea element spectrum. You can use the corresponding data query and extraction methods to obtain the elemental property data of the sample according to the identification of the historical sample or other relevant information;
[0070] Data output and display: Output and display the element attribute data of the historical tea samples for users to view. The extracted element attribute data can be displayed in a table or other form.
[0071] S4, sending the historical element attributes obtained by matching in S3 to the tea element detection device, and controlling the tea element detection device to perform targeted element extraction on the tea to be detected according to the historical element attributes;
[0072] S4 sends the element attributes acquired in S3.2 to the tea element detection device via the data management network terminal.
[0073] The step S4 converts the received element properties into detection parameters in the tea element detection device, and performs targeted element detection on the tea sample to be detected through the detection parameters. The steps are as follows:
[0074] Data transmission: The acquired element properties are sent to the tea element detection device through the data management network. Network transmission protocols such as HTTP, MQTT, etc. can be used to send data to the device;
[0075] Data reception and analysis: After receiving the sent element attribute data, the tea element detection device will perform data analysis and convert the data into recognizable detection parameters. According to the data format and equipment requirements, the corresponding detection parameters are analyzed;
[0076] Targeted element detection: Use tea element detection equipment to perform targeted element detection. According to the analyzed detection parameters, the equipment will perform corresponding element detection on the tea sample;
[0077] Output of test results: After the tea element detection equipment completes the element detection, it will generate the corresponding test results. The results can be sent back to the data management end through the data management network end for further result processing and storage.
[0078] S5. Monitor the element extraction process of S4, compare the new element attributes obtained by extraction with the historical element attributes obtained by S3 matching. If the new element attributes do not belong to the historical element attributes, control the tea element detection equipment to extract all elements, and input the growth environment data of the tea in combination with the new element attributes into the tea element spectrum for learning and updating.
[0079] The step of S5 combining the growth environment data of the tea leaves with the new element attributes and inputting them into the tea element spectrum for learning and updating is as follows:
[0080] S5.1. Monitor the process of targeted element detection and extraction in S4;
[0081] S5.2, compare the new element attributes extracted and the element attributes obtained by matching in S3.2. If there are unknown elements that do not belong to the historical element attributes in the new element attributes, control the tea element detection equipment to extract all elements, replace the unknown elements with the new element attributes, and then input the growth environment data of the tea this time into the tea element spectrum for learning and updating in combination with the new element attributes. Conversely, if there are no unknown elements that do not belong to the historical element attributes in the new element attributes, directly send the growth environment data of the tea this time to the tea element spectrum for learning and updating. The steps are as follows:
[0082] Difference comparison: compare the extracted new element attributes with the matched element attributes. You can check each element attribute one by one to determine whether there are unknown elements in the new element attributes that do not match the historical element attributes or do not belong to the historical element attributes;
[0083] Processing unknown elements: If there are unknown elements in the new element attributes that do not belong to the historical element attributes, control the tea element detection equipment to extract all elements. That is, perform comprehensive element detection on the tea sample including unknown elements, obtain new element attributes, and replace the unknown elements in the new element attributes with the corresponding element values obtained by detection;
[0084] Update tea element spectrum: Input the acquired new element properties and corresponding growth environment data into the tea element spectrum for learning and updating. Update and expand the knowledge of tea element spectrum according to the new element properties and growth environment data. The specific update method and algorithm will be determined according to the structure and characteristics of the tea element spectrum;
[0085] Direct learning and updating: If there are no unknown elements in the new element attributes that do not belong to the historical element attributes, the growth environment data of the tea leaves will be directly sent to the tea element spectrum for learning and updating. That is, the tea element spectrum is updated with the new growth environment data without full element extraction.
[0086] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited by the above embodiments. The above embodiments and descriptions are only preferred examples of the present invention and are not intended to limit the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A method for detecting trace elements in tea leaves based on element spectrum, characterized in that: The following steps are involved: S1. Record the test data of the tea element detection equipment, and then select the test data according to different tea samples; S2, extracting elemental properties of the test data screened in S1 separately, obtaining elemental properties corresponding to different tea samples, and then collecting growth environment data of different teas, and combining the production environment data with elemental properties to establish a tea element spectrum; S3, collecting the growth environment data of the tea leaves to be tested in real time, and performing similarity matching between the collected growth environment data of the tea leaves to be tested and the tea element spectrum, and obtaining the growth environment data with the highest similarity matching value in the tea element spectrum and the corresponding historical element attribute; S4, sending the historical element attributes obtained by matching in S3 to the tea element detection device, and controlling the tea element detection device to perform targeted element extraction on the tea to be detected according to the historical element attributes; S5, monitor the element extraction process of S4, compare the new element attributes obtained by extraction with the historical element attributes obtained by matching in S3, if the new element attributes do not belong to the historical element attributes, control the tea element detection equipment to extract all elements, and input the growth environment data of the tea this time into the tea element spectrum for learning and updating in combination with the new element attributes; The steps of S2 combining the production environment data with the element attributes to establish the tea element spectrum are as follows: S2.
1. Extract the detection process of each individually identified tea sample in the tea element detection device, and obtain the detection result of each tea sample according to the detection process, and obtain the element attribute corresponding to each tea sample according to the detection result; S2.2, collect the growth environment of each individually identified tea sample, obtain the growth environment data of each tea sample, and then integrate the growth environment data with the element attributes obtained in S2.1 and the corresponding identified tea sample to establish the tea element spectrum; S3 sends an environment collection network window to the user, and the user sends the data collected by the sensor of the tea growing area to the network window, thereby obtaining the growth environment data of the tea sample; The step of S3 obtaining the growth environment data with the highest similarity matching value in the tea element spectrum and the corresponding historical element attributes is as follows: S3.
1. Before testing new tea samples, collect the growth environment data uploaded by the user; S3.
2. Input the growth environment data collected in S3.1 into the tea element spectrum established in S2.2 for similarity matching. The tea element spectrum outputs the historical tea sample with the highest similarity matching value, and extracts the element attributes of the historical tea sample.
2. The method for detecting trace elements in tea leaves based on element spectrum according to claim 1, characterized in that: The S1 establishes a data management network terminal through Wi-Fi and the tea element detection device, and records the detection of the tea element detection device in the data management network terminal.
3. The method for detecting trace elements in tea leaves based on element spectrum according to claim 1, characterized in that: The S1 performs tea sample detection and screening based on the detection data of the tea element detection device, and individually identifies each tea sample obtained.
4. The method for detecting trace elements in tea leaves based on element spectrum according to claim 1, characterized in that: S4 sends the element attributes acquired in S3.2 to the tea element detection device via the data management network terminal.
5. The method for detecting trace elements in tea leaves based on element spectrum according to claim 1, characterized in that: The S4 converts the received element properties into detection parameters in the tea element detection device, and performs targeted element detection on the tea samples to be detected through the detection parameters.
6. The method for detecting trace elements in tea leaves based on element spectrum according to claim 1, characterized in that: The step of S5 combining the growth environment data of the tea leaves with the new element attributes and inputting them into the tea element spectrum for learning and updating is as follows: S5.
1. Monitor the process of targeted element detection and extraction in S4; S5.
2. Compare the new element attributes extracted and the element attributes obtained by matching in S3.
2. If unknown elements that do not belong to the historical element attributes appear in the new element attributes, control the tea element detection equipment to extract all elements, replace the unknown elements with the new element attributes, and then input the growth environment data of the tea this time into the tea element spectrum for learning and updating in combination with the new element attributes. Conversely, if the new element attributes do not contain unknown elements that do not belong to the historical element attributes, directly send the growth environment data of the tea this time to the tea element spectrum for learning and updating.
