A data recording method and system for workpiece loading and unloading process
By analyzing the similarity and distribution rules of the detection data at the end of the conveyor belt, the current detection data is corrected, which solves the problem of environmental interference of the sensor detection results, improves the accuracy and reliability of data recording during the workpiece loading and unloading process, and reduces equipment failures and Downtime.
Patent Information
- Application Number
- CN202410888095.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-07-04
AI Technical Summary
Traditional manual loading and unloading and data recording methods are inefficient and unsafe during the workpiece loading and unloading process. The detection results of metal detection sensors are easily interfered by environmental factors, resulting in high false alarm rates and insufficient resolution, which affects the accuracy and reliability of data recording. .
By obtaining the detection data at the end of the conveyor belt, a time series is formed, the distribution pattern of similar data segments is analyzed, the reference data segments are screened out, and corrections are made based on the similarity between the current detection data and historical data, the correction weight and correction factor are calculated, and the current detection data is corrected , reduce the interference of environmental factors and improve the accuracy of detection data.
It effectively reduces false positives and omissions of detection data, improves the accuracy and reliability of records, enables the system to more stably respond to the presence and absence of workpieces, and reduces equipment failures and downtime caused by inaccurate or unstable data. .
Smart Images

Figure CN118411769B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic digital data processing, and in particular to a data recording method and system for a workpiece loading and unloading process. Background Art
[0002] The workpiece loading and unloading process usually involves multiple key steps in the entire production process. The traditional manual loading and unloading and data recording methods are not only inefficient, but also prone to safety accidents, and can no longer meet the efficient and precise production needs of the automated manufacturing industry. With the continuous acceleration of the industrialization process and the continuous improvement of the level of industrial automation, the use of intelligent equipment to replace traditional manual labor for heavy, dangerous and complex workpiece loading and unloading is becoming more and more widely used in industrial production.
[0003] The existing technology proposes to monitor the equipment operation status and workpiece position in real time through sensors. However, metal detection sensors are highly dependent on environmental conditions, and their sensitivity and accuracy may be affected by environmental factors, resulting in high false alarm rates, insufficient resolution, and other problems, which affect the accuracy and reliability of data recording. Summary of the invention
[0004] The present invention provides a data recording method and system for a workpiece loading and unloading process to solve the existing problems.
[0005] A data recording method and system for workpiece loading and unloading process of the present invention adopts the following technical solutions:
[0006] An embodiment of the present invention provides a data recording method for a workpiece loading and unloading process, the method comprising the following steps:
[0007] Acquire the detection data at the end of the conveyor belt during the workpiece loading and unloading process, and form a time series, which is recorded as a historical data series. The detection data at the last moment in the historical data series is recorded as the current detection data, and the detection data other than the current detection data is recorded as the historical detection data.
[0008] According to the similarity between the detection data in the historical data sequence at the end of the conveyor belt, similar data segments are obtained; by analyzing the distribution law of similar data segments in time and value, reference data segments are screened out from the similar data segments; according to the value of the detection data in the reference data segment, the detection data is classified to obtain workpiece data and empty return data;
[0009] Calculate the artifact possibility of the current detection data according to the similarity between the current detection data and the historical detection data, and obtain the correction weight of the current detection data through the artifact possibility of the current detection data; construct the correction factor of the current detection data according to the time interval between the similar historical detection data and the current detection data; use the correction weight and correction factor to correct the current detection data to obtain the latest data;
[0010] The latest data is recorded and stored.
[0011] Furthermore, the similar data segments are obtained according to the similarity between the detected data in the historical data sequence at the end of the conveyor belt, including the specific method of:
[0012] In the historical data sequence, the similarity between data is calculated based on the numerical difference of the detection data, and the data with similarity greater than the preset threshold is The detection data is taken as similar data, and a sequence formed by continuous adjacent similar data is obtained, which is recorded as a similar data segment.
[0013] Furthermore, the specific method for calculating the similarity between the data is:
[0014] According to the historical data series The value of the test data is The absolute value of the difference between the values of the detection data is obtained The test data and The absolute value of the difference is inversely proportional to the similarity between the data.
[0015] Furthermore, the method of selecting reference data segments from similar data segments by analyzing the distribution patterns of similar data segments in time and value includes the following specific methods:
[0016] According to the standard deviation of the time length of each similar data segment and the standard deviation of the time interval of the detection data under the same sequence number in adjacent similar data segments, the periodicity evaluation of the similar data segment is calculated. The method for obtaining the periodicity evaluation of the similar data segment is:
[0017] First, the periodicity of the historical data sequence is calculated based on the difference between the corresponding moments of the detection data with the same sequence number in two adjacent similar data segments;
[0018] Then, any two adjacent similar data segments are selected, and the absolute value of the difference between the detection data corresponding to the same sequence number in the two adjacent similar data segments is obtained, which is recorded as the time difference factor. The average of the time difference factors corresponding to all the detection data with the same sequence number in the two adjacent similar data segments is calculated, which is recorded as the average time difference parameter of the two adjacent similar data segments. The average time difference parameter is compared with the periodicity of the historical data sequence to obtain the periodicity evaluation of the two adjacent similar data segments, and the periodicity evaluation of all two adjacent similar data segments is obtained.
[0019] Finally, the preset threshold , for periodic evaluation results greater than or equal to the threshold The similar data segments are screened and the screened similar data segments are recorded as reference data segments.
[0020] Furthermore, the detection data is classified according to the numerical value of the detection data in the reference data segment to obtain the workpiece data and the empty return data, including the specific method of:
[0021] Obtain the first quartile and the third quartile of all detection data in all reference data segments, set the detection data corresponding to the first quartile and the third quartile as the initial cluster center, and use the K-means clustering method to cluster all detection data in all reference data segments to obtain a number of cluster clusters;
[0022] The final cluster centers of two or more clusters are obtained, and the detection data corresponding to the final cluster center with the largest value is recorded as the workpiece data; the detection data corresponding to the final cluster center with the smallest value is recorded as the empty return data, and several workpiece data and empty return data are obtained, in which all the detection data in the workpiece data have the same value, and all the detection data in the empty return data have the same value.
[0023] Furthermore, the calculation of the workpiece possibility of the current detection data includes a specific calculation method as follows:
[0024] According to the similarity between the current inspection data and the historical inspection data, the artifact probability of the current inspection data is obtained:
[0025]
[0026] in, Indicates the artifact probability of the current inspection data, Indicates the value of the current detection data. Indicates The value of the workpiece data, Indicates the time of current detection data, Indicates The last moment of the similar data segment where the workpiece data is located, Represents the periodicity of the historical data series, Indicates the number of workpiece data, represents an exponential function with a natural constant as base; Represents the absolute value symbol.
[0027] Furthermore, the method of obtaining the correction weight of the current detection data through the workpiece possibility of the current detection data includes the following specific methods:
[0028]
[0029] in, Indicates the value of the current detection data. Indicates the artifact probability of the current inspection data, A numerical value representing workpiece data, Indicates the value of the empty return data. represents an exponential function with a natural constant as base, represents the absolute value symbol, Represents the preset hyperparameters.
[0030] Furthermore, the correction factor of the current detection data is constructed according to the time interval between similar historical detection data and the current detection data, including the specific method of:
[0031]
[0032] in, Indicates the correction factor of the current test data. Indicates the first Historical test data; Indicates The time interval between the historical detection data and the current detection data; Indicates the total number of similar data to the current detection data. Represents an exponential function with a natural constant as its base.
[0033] Furthermore, the method of using the correction weight and the correction factor to correct the current detection data to obtain the latest data includes the following specific methods:
[0034]
[0035] in, Indicates the latest data, Represents the correction template of the current detection data, Indicates the correction weight of the current detection data, Indicates the value of the current detection data.
[0036] An embodiment of the present invention provides a data recording system for a workpiece loading and unloading process, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any one of the steps of a data recording method for a workpiece loading and unloading process when executing the computer program.
[0037] The beneficial effects of the technical solution of the present invention are as follows: compared with the existing real-time monitoring of the equipment operation status and the workpiece position by sensors, this embodiment takes into account the interference of environmental factors on the detection results of the metal detection sensor. Therefore, by analyzing the change law of the historical detection data and according to the similarity between the current detection data and the historical detection data, the current detection data is corrected, which helps to reduce the influence of environmental factors on the detection results of the metal detector, effectively reduce the false positives and omissions of the detection data belonging to the workpiece data, and improve the accuracy and reliability of the recorded detection data; this embodiment corrects and optimizes the current detection data, so that the detection data of the metal detection sensor is more stable and reliable, thereby enabling the system to respond more stably to the presence and absence of workpieces, and reduce equipment failures and downtime caused by inaccurate or unstable data. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 The present invention is a flowchart of the steps of a data recording method for a workpiece loading and unloading process. DETAILED DESCRIPTION
[0040] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of a data recording method and system for workpiece loading and unloading process proposed by the present invention, its specific implementation method, structure, features and effects, in conjunction with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0041] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0042] The following is a detailed description of a data recording method and system for a workpiece loading and unloading process provided by the present invention in conjunction with the accompanying drawings.
[0043] See also Figure 1 , which shows a flow chart of a method for recording data in a workpiece loading and unloading process provided by an embodiment of the present invention, the method comprising the following steps:
[0044] Step S001: Acquire the detection data of the end of the conveyor belt during the workpiece loading and unloading process, and form a time series, which is recorded as a historical data series.
[0045] Specifically, in order to implement a data recording method for a workpiece loading and unloading process proposed in this embodiment, it is first necessary to collect a historical data sequence. The specific process is as follows:
[0046] A metal detection sensor is installed at the end of the conveyor belt of the material feeding system of the intelligent workpiece loading and unloading equipment. The metal detection sensor is used to detect the presence of metal workpieces at the end of the conveyor belt, and the data obtained from the detection are sorted and collected by time. The specific method is: the detection frequency of the metal detection sensor is set to once per second, and continuous detection data is collected within a working day. The collected data is recorded as a historical data sequence according to the detection time.
[0047] At this point, the historical data sequence is obtained through the above method.
[0048] Step S002: Obtain similar data segments based on the similarity between the detection data in the historical data sequence at the end of the conveyor belt; select reference data segments from the similar data segments by analyzing the distribution patterns of similar data segments in time and value; classify the detection data according to the value of the detection data in the reference data segment to obtain workpiece data and empty return data.
[0049] It should be noted that during the operation of the workpiece intelligent loading and unloading equipment, the processing operations on the same assembly line are the same, the size and material of the workpieces are the same, and the processing time is the same, so the residence time of the metal workpiece at the end of the conveyor belt is regular, so the detection data of the metal detection sensor also has a certain regularity. When there is metal at the end of the conveyor belt, the data value detected by the metal detection sensor is in a larger range, and the value detected at this time can be regarded as the workpiece data; when there is no metal at the end of the conveyor belt, the value detected by the metal detection sensor is in a smaller range, and the detection data at this time can be regarded as empty return data. Correct the current detection data based on the workpiece data and empty return data to eliminate the interference of environmental conditions on the metal detection sensor's capture of detection data.
[0050] Specifically, first, in the historical data sequence, the similarity between data is calculated according to the numerical difference of the detection data, and the data with similarity greater than the preset threshold is The detection data is taken as similar data, and a sequence formed by continuous adjacent similar data is obtained, which is recorded as a similar data segment.
[0051] It should be noted that the threshold is preset based on experience , which can be adjusted according to actual conditions and is not specifically limited in this embodiment.
[0052] The specific calculation method of the similarity between the data is: The value of the test data is The absolute value of the difference between the values of the detection data is obtained The test data and The absolute value of the difference is inversely proportional to the similarity between the data.
[0053] As an embodiment, the method for calculating the similarity between data is:
[0054]
[0055] in, Indicates The test data and The similarity between the detection data, It indicates the The value of the test data, Indicates The value of the test data, represents the absolute value symbol, Represents an exponential function with a natural constant as its base.
[0056] Secondly, the periodicity of the historical data sequence is calculated, and the reference data segments among the similar data segments are screened out according to the distribution patterns of similar data segments in time and value.
[0057] It should be noted that since the time when metal workpieces exist at the end of the conveyor belt is regular, the detection data of the metal detection sensor also has a certain regularity. Therefore, this embodiment performs periodic evaluation on similar data segments through the distribution rules of similar data segments in time and value to obtain reference data segments with stronger periodic characteristics.
[0058] The periodicity of the historical data sequence is calculated based on the difference between the corresponding moments of the detection data under the same sequence number in two adjacent similar data segments.
[0059] As an embodiment, a method for obtaining the periodicity of a historical data sequence is as follows:
[0060]
[0061] in, Represents the periodicity of the historical data series, Indicates of similar data segments The time corresponding to the detection data is Indicates of similar data segments The time corresponding to the detection data is Indicates The number of detection data in similar data segments, Indicates the number of similar data segments in the historical data sequence.
[0062] The periodicity evaluation between similar data segments is calculated based on the standard deviation of the time length of each similar data segment and the standard deviation of the time interval of the detection data under the same sequence number in adjacent similar data segments.
[0063] As an embodiment, a method for obtaining the periodic evaluation of similar data segments is as follows:
[0064] Select any two adjacent similar data segments, obtain the absolute value of the difference between the detection data at the same ordinal number in the two adjacent similar data segments, record it as the time difference factor, calculate the average of the time difference factors corresponding to all the detection data at the same ordinal number in the two adjacent similar data segments, record it as the average time difference parameter of the two adjacent similar data segments, calculate the ratio of the average time difference parameter to the periodicity of the historical data sequence, obtain the periodicity evaluation of the two adjacent similar data segments, and obtain the periodicity evaluation of all two adjacent similar data segments;
[0065] Setting the Threshold , for periodic evaluation results greater than or equal to the threshold The similar data segments are screened and the screened similar data segments are recorded as reference data segments.
[0066] It should be noted that the threshold for screening periodic evaluation is preset based on experience. , which can be adjusted according to actual conditions and is not specifically limited in this embodiment.
[0067] Finally, according to the numerical value of the detection data in the reference data segment, the detection data is classified to obtain workpiece data and empty return data.
[0068] It should be noted that when there is a metal workpiece at the end of the conveyor belt, the value of the metal detection sensor's detection data is large, and the conveyor belt movement is suspended; when there is no metal workpiece at the end of the conveyor belt, the metal detection sensor's detection data is small, and the conveyor belt starts to move until the metal workpiece reaches the set position and is clamped by the robotic arm.
[0069] The first quartile and the third quartile of all detection data in all reference data segments are obtained, and the detection data corresponding to the first quartile and the third quartile are set as the initial clustering center. The K-means clustering method is used to cluster all detection data in all reference data segments to obtain several cluster clusters.
[0070] The final cluster centers of two or more clusters are obtained, and the detection data corresponding to the final cluster center with the largest value is recorded as the workpiece data; the detection data corresponding to the final cluster center with the smallest value is recorded as the empty return data, and several workpiece data and empty return data are obtained, in which all the detection data in the workpiece data have the same value, and all the detection data in the empty return data have the same value.
[0071] It should be noted that the detection data corresponding to the final cluster center with the largest value is the detection information when there is a metal workpiece at the end of the conveyor belt, and the detection data corresponding to the final cluster center with the smallest value is the detection information when there is no workpiece at the end of the conveyor belt.
[0072] So far, the workpiece data and empty return data are obtained through the above method.
[0073] Step S003: Calculate the artifact possibility of the current detection data according to the similarity between the current detection data and the historical detection data, and obtain the correction weight of the current detection data through the artifact possibility of the current detection data; construct the correction factor of the current detection data according to the time interval between the similar historical detection data and the current detection data; use the correction weight and correction factor to correct the current detection data to obtain the latest data.
[0074] It should be noted that when the metal detection sensor is working on the workpiece loading and unloading equipment, there will be interference noise in the detection results due to equipment vibration, temperature changes, loose placement of the workpiece, etc., which will cause the detection data of the metal detection sensor to change and reduce the credibility and stability. Therefore, it is necessary to judge whether the data is workpiece data or empty return data based on the numerical value of the current detection data, and then correct the current latest data based on the corresponding historical data of the current data.
[0075] Specifically, according to the similarity between the current detection data and the historical detection data, the artifact possibility of the current detection data is obtained.
[0076] As an embodiment, a specific method for calculating the artifact probability of the current detection data is as follows:
[0077]
[0078] in, Indicates the artifact probability of the current inspection data, Indicates the value of the current detection data. Indicates The value of the workpiece data, Indicates the time of current detection data, Indicates The last moment of the similar data segment where the workpiece data is located, Represents the periodicity of the historical data series, Indicates the number of workpiece data, represents an exponential function with a natural constant as base, Represents the absolute value symbol.
[0079] It should be noted that the smaller the numerical difference between the current detection data and the workpiece data, the higher the possibility that it belongs to the data of the detected workpiece; the current detection data The smaller the time interval with the previous similar data is from the period difference of the detection data, the higher the possibility that the data belongs to the workpiece data.
[0080] Obtain the correction weight of the current inspection data through the workpiece probability of the current inspection data :
[0081]
[0082] in, Indicates the value of the current detection data. Indicates the possibility that the current detection data belongs to the workpiece data. A numerical value representing workpiece data, Indicates the value of the empty return data. represents an exponential function with a natural constant as base, represents the absolute value symbol, Indicates the preset third parameter.
[0083] It should be noted that the threshold for screening the possibility that the current detection data belongs to the workpiece data is preset based on experience. , which can be adjusted according to actual conditions and is not specifically limited in this embodiment.
[0084] As an embodiment, the method for constructing the correction factor of the current detection data is:
[0085]
[0086] in, Indicates the correction factor of the current test data. Indicates the first Historical test data; Indicates Historical test data and current test data The corresponding time interval; Indicates the total number of similar data to the current detection data. Represents an exponential function with a natural constant as its base.
[0087] Use the correction weight and correction factor to correct the current test data to obtain the latest data;
[0088] As an embodiment, the specific method for obtaining the latest data is:
[0089]
[0090] in, Indicates the latest data, Represents the correction template of the current detection data, Indicates the correction weight of the current detection data, Indicates the value of the current detection data.
[0091] At this point, the latest corrected data is obtained through the above method.
[0092] Step S004: Record and store the latest data.
[0093] Specifically, the latest corrected data record is stored in a computer memory.
[0094] Through the above steps, a data recording method for the workpiece loading and unloading process is completed.
[0095] On the other hand, an embodiment of the present invention provides a data recording system for a workpiece loading and unloading process, the system comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, it implements steps S001 to S004 of a data recording method for a workpiece loading and unloading process.
[0096] Compared with the existing real-time monitoring of equipment operation status and workpiece position through sensors, this embodiment takes into account the interference of environmental factors on the detection results of metal detection sensors. Therefore, by analyzing the changing rules of historical detection data and based on the similarity between the current detection data and the historical detection data, the current detection data is corrected, which helps to reduce the impact of environmental factors on the detection results of metal detectors, effectively reduce the false positives and omissions of detection data belonging to workpiece data, and improve the accuracy and reliability of recorded detection data; this embodiment corrects and optimizes the current detection data to make the detection data of the metal detection sensor more stable and reliable, thereby enabling the system to respond more stably to the presence and absence of workpieces, reducing equipment failures and downtime caused by inaccurate or unstable data.
[0097] It should be noted that the The model is only used to represent negative correlation and constrain the output of the model to be in In the specific implementation, it can be replaced by other models with the same purpose. This embodiment is only based on The model is described as an example without any specific limitation. is the input to the model.
[0098] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A data recording method for a workpiece loading and unloading process, characterized in that: The method comprises the following steps: Acquire the detection data at the end of the conveyor belt during the workpiece loading and unloading process, and form a time series, which is recorded as a historical data series. The detection data at the last moment in the historical data series is recorded as the current detection data, and the detection data other than the current detection data is recorded as the historical detection data. According to the similarity between the detection data in the historical data sequence at the end of the conveyor belt, similar data segments are obtained; by analyzing the distribution law of similar data segments in time and value, reference data segments are screened out from the similar data segments; according to the value of the detection data in the reference data segment, the detection data is classified to obtain workpiece data and empty return data; Calculate the artifact possibility of the current detection data according to the similarity between the current detection data and the historical detection data, and obtain the correction weight of the current detection data through the artifact possibility of the current detection data; construct the correction factor of the current detection data according to the time interval between the similar historical detection data and the current detection data; use the correction weight and correction factor to correct the current detection data to obtain the latest data; Record and store the latest data; The method of selecting reference data segments from similar data segments by analyzing the distribution rules of similar data segments in time and value includes: According to the standard deviation of the time length of each similar data segment and the standard deviation of the time interval of the detection data under the same sequence number in adjacent similar data segments, the periodicity evaluation of the similar data segment is calculated. The method for obtaining the periodicity evaluation of the similar data segment is: First, the periodicity of the historical data sequence is calculated based on the difference between the corresponding moments of the detection data with the same sequence number in two adjacent similar data segments; Then, any two adjacent similar data segments are selected, and the absolute value of the difference between the detection data corresponding to the same sequence number in the two adjacent similar data segments is obtained, which is recorded as the time difference factor. The average of the time difference factors corresponding to all the detection data with the same sequence number in the two adjacent similar data segments is calculated, which is recorded as the average time difference parameter of the two adjacent similar data segments. The average time difference parameter is compared with the periodicity of the historical data sequence to obtain the periodicity evaluation of the two adjacent similar data segments, and the periodicity evaluation of all two adjacent similar data segments is obtained. Finally, the preset threshold , for periodic evaluation results greater than or equal to the threshold The similar data segments are screened, and the screened similar data segments are recorded as reference data segments; The specific calculation method of calculating the workpiece possibility of the current detection data includes: According to the similarity between the current inspection data and the historical inspection data, the artifact possibility of the current inspection data is obtained: in, Indicates the artifact probability of the current inspection data, Indicates the value of the current detection data. Indicates The value of the workpiece data, Indicates the time of current detection data, Indicates The last moment of the similar data segment where the workpiece data is located, Represents the periodicity of the historical data series, Indicates the number of workpiece data, represents an exponential function with a natural constant as base; Indicates the absolute value symbol; The specific method of obtaining the correction weight of the current detection data through the workpiece possibility of the current detection data includes: in, Indicates the value of the current detection data. Indicates the artifact probability of the current inspection data, A numerical value representing workpiece data, Indicates the value of the empty return data. represents an exponential function with a natural constant as base, represents the absolute value symbol, Represents the preset hyperparameters; The specific method of constructing the correction factor of the current detection data according to the time interval between similar historical detection data and the current detection data includes: in, Indicates the correction factor of the current test data. Indicates the first Historical test data; Indicates The time interval between the historical detection data and the current detection data; Indicates the total number of similar data to the current detection data. Represents an exponential function with a natural constant as its base.
2. A data recording method for workpiece loading and unloading process according to claim 1, characterized in that: The specific method of obtaining similar data segments according to the similarity between the detected data in the historical data sequence at the end of the conveyor belt includes: In the historical data sequence, the similarity between data is calculated based on the numerical difference of the detection data, and the data with similarity greater than the preset threshold is The detection data is taken as similar data, and a sequence formed by continuous adjacent similar data is obtained, which is recorded as a similar data segment.
3. A data recording method for workpiece loading and unloading process according to claim 2, characterized in that: The specific calculation method of the similarity between the data is: According to the historical data series The value of the test data is The absolute value of the difference between the values of the detection data is obtained The test data and The absolute value of the difference is inversely proportional to the similarity between the data.
4. A data recording method for workpiece loading and unloading process according to claim 1, characterized in that: The method of classifying the detection data according to the numerical value of the detection data in the reference data segment to obtain the workpiece data and the empty return data includes: Obtain the first quartile and the third quartile of all detection data in all reference data segments, set the detection data corresponding to the first quartile and the third quartile as the initial cluster center, and use the K-means clustering method to cluster all detection data in all reference data segments to obtain a number of cluster clusters; The final cluster centers of two or more clusters are obtained, and the detection data corresponding to the final cluster center with the largest value is recorded as the workpiece data; the detection data corresponding to the final cluster center with the smallest value is recorded as the empty return data, and several workpiece data and empty return data are obtained, in which all the detection data in the workpiece data have the same value, and all the detection data in the empty return data have the same value.
5. A data recording method for workpiece loading and unloading process according to claim 1, characterized in that: The method of using the correction weight and the correction factor to correct the current detection data to obtain the latest data includes: in, Indicates the latest data, Represents the correction template of the current detection data, Indicates the correction weight of the current detection data, Indicates the value of the current detection data.
6. A data recording system for a workpiece loading and unloading process, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
