A whole-process traceability method and device for pig slaughtering based on industrial Internet identification
Through the traceability method based on industrial Internet identification, combined with convolution processing and sensor data, the pig slaughtering process is intelligent and traceable, solving the problems of low efficiency and poor safety in traditional methods, and improving the accuracy and traceability of traceability. food safety level.
Patent Information
- Application Number
- CN202410959762.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-17
AI Technical Summary
The traditional pig slaughtering industry relies on manual records and paper vouchers, resulting in low efficiency and poor accuracy in quality management and traceability. It is difficult to achieve real-time monitoring and early warning, and there are risks of forgery and tampering, making it unable to meet food safety and quality requirements.
The whole pig slaughtering process traceability method based on industrial Internet identification is adopted. By generating a unique identification, combined with convolution processing, sensor data collection and time series prediction, individual pig identification, health assessment and slaughtering process monitoring are realized. The packaged data is associated with the identification to support Traceability and early warning.
It realizes the intelligence, automation and traceability of the whole pig slaughtering process, quickly locates the source of the problem, improves the accuracy and timeliness of traceability, reduces labor costs, enhances data security and reliability, and satisfies consumers' needs. Food safety and quality needs.
Smart Images

Figure CN118504944B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information management technology, and in particular to a method, device, electronic device and non-transitory computer-readable storage medium for tracing the entire pig slaughter process based on industrial Internet identification. Background Art
[0002] Nowadays, in the current pig slaughtering industry, traditional quality management and traceability methods mainly rely on manual records, paper vouchers, and regular sampling. Although these practices can guarantee the basic quality and safety of pig slaughtering to a certain extent, they are obviously insufficient in efficiency, accuracy, and real-time performance. For example, slaughterhouses usually rely on manual individual identification, quality assessment, and disease detection of pigs. This process is not only time-consuming and labor-intensive, but also easily affected by human factors, resulting in inaccurate evaluation results. At the same time, various parameters in the slaughtering process, such as temperature and time, are mostly recorded and monitored manually, making it difficult to achieve comprehensive and real-time data collection and analysis.
[0003] However, with the rapid development of the pig slaughtering industry and the increasing requirements of consumers for food quality and safety, traditional traceability methods have gradually revealed their limitations. First, manual records are prone to errors and difficult to trace. Once a quality problem occurs, it is difficult to quickly locate the source of the problem, increasing quality risks. Secondly, traditional methods lack intelligent and automated support, and cannot achieve real-time monitoring and early warning of the entire slaughtering process, making it difficult to detect and correct potential quality problems in a timely manner. In addition, the use of paper vouchers not only increases management costs, but is also susceptible to forgery and tampering, bringing challenges to the supervision and governance of the slaughtering industry.
[0004] Therefore, exploring a full-process traceability method for pig slaughtering based on industrial Internet identification to realize the intelligence, automation and traceability of the pig slaughtering process has become an important trend in the current development of the industry. Summary of the invention
[0005] In response to the technical problems existing in the prior art, the present invention provides a full-process traceability method, device, electronic device and non-transitory computer-readable storage medium for pig slaughtering based on industrial Internet identification, which can realize the intelligence, automation and traceability of the pig slaughtering process.
[0006] The technical solution of the present invention to solve the above technical problems is as follows:
[0007] The present invention provides a method for tracing the whole process of pig slaughtering based on industrial Internet identification, and the method comprises:
[0008] Generate a unique industrial Internet ID for each pig;
[0009] Performing convolution processing and individual recognition processing on the image of each of the live pigs to obtain recognition results of each of the live pigs;
[0010] Collect various pig parameters of the pigs in real time, and evaluate the health status and meat quality of each pig based on the various pig parameters to obtain a quality evaluation score for each pig;
[0011] Based on the recorded pig parameters, predict in advance the time series data of each pig in the whole slaughter process;
[0012] For each of the live pigs, the identification result, live pig parameters, quality assessment score and time series data of the live pig are packaged and associated with the industrial Internet identifier of the live pig;
[0013] In response to the interactive operation of the industrial Internet identification mark, each process of each pig before and during slaughter is traced.
[0014] Optionally, performing convolution processing and individual recognition processing on the image of each of the live pigs to obtain the recognition result of each of the live pigs includes:
[0015] The image of each pig is collected by a camera installed at the entrance of the slaughterhouse, and a convolution neural network algorithm is used to perform convolution processing on the pig to obtain a corresponding convolution feature map;
[0016] The convolution feature map is processed for individual identification to obtain an identification result for each of the pigs.
[0017] Optionally, the recognition result is expressed as:
[0018] ;
[0019] in, is the recognition result, is the activation function, is the k-th layer convolution kernel weight matrix, represents the convolution operation, is the k-th layer input feature map, is the bias vector of the kth layer, and n is the total number of layers.
[0020] Optionally, the real-time collection of various pig parameters of the pigs, and the evaluation of the health status and meat quality of each of the pigs based on the various pig parameters to obtain a quality evaluation score for each of the pigs, include:
[0021] For each of the live pigs, obtaining temperature sensor data detected by a temperature sensor, humidity sensor data detected by a humidity sensor, and meat quality sensor data detected by a meat quality sensor;
[0022] Acquire other pig parameters other than the temperature sensor data, the humidity sensor data and the meat quality sensor data;
[0023] Obtaining disease detection data of the live pigs;
[0024] The quality assessment score of the live pig is determined based on the temperature sensor data, the humidity sensor data, the meat quality sensor data, other live pig parameters and the disease detection data.
[0025] Optionally, the quality assessment score is expressed as:
[0026] ;
[0027] Among them, T is the temperature sensor data, H is the humidity sensor data, S is the meat quality sensor data, are other pig parameters, is the first weight, is the second weight, is the third weight, Is the relevant parameter The fourth weight, is the fifth weight, D is the disease detection data, is the standard deviation.
[0028] Optionally, the time series data of each pig in the whole slaughter process is predicted in advance based on the recorded pig parameters, including:
[0029] Obtain the pig parameters recorded at each moment and obtain the time series data at each moment;
[0030] Construct random error terms and seasonal data for time series data at each moment;
[0031] Based on the linear combination of the time series values of the previous p time points at the current moment, the linear combination of the error terms of the previous q time points and the linear combination of the data influences of the previous o seasonal time points, the time series data of each pig at the current moment in the entire slaughter process is predicted in advance.
[0032] Optionally, the time series data at the current moment is expressed as:
[0033] ;
[0034] in, is the time series data at the current moment, is the time series data of the previous i moments, C is the first constant, is the coefficient of the autoregressive part, is the coefficient of the moving average part, is the random error term, is the random error term of the previous j moments, is the seasonal factor coefficient, is the seasonal data of the previous k moments, and o, p, and q are the total number of time points of different sizes.
[0035] Optionally, the method further includes:
[0036] Based on the time series data of the live pigs, trend prediction is performed on the data of the slaughter process of the live pigs;
[0037] In response to detecting abnormal data from the data of the slaughtering process of the live pigs according to trend prediction, an early warning report of the slaughtering process of the live pigs is generated.
[0038] Optionally, the pig parameters include at least the temperature, humidity and meat quality of the pig.
[0039] The present invention also provides a whole-process traceability device for pig slaughtering based on industrial Internet identification, the device comprising:
[0040] The identification generation module is used to generate a unique industrial Internet identification for each pig;
[0041] An individual identification module, used to perform convolution processing and individual identification processing on the image of each of the live pigs to obtain an identification result of each of the live pigs;
[0042] A quality assessment module, used to collect various pig parameters of the pigs in real time, and to assess the health status and meat quality of each pig based on the various pig parameters to obtain a quality assessment score for each pig;
[0043] A data prediction module is used to predict in advance the time series data of each pig during the entire slaughter process based on the recorded pig parameters;
[0044] An information association module, for packaging the identification result, pig parameters, quality assessment score and time series data of each pig, and associating them with the industrial Internet identifier of the pig;
[0045] The information tracing module is used to trace the various processes of each pig before and during slaughter in response to the interactive operation of the industrial Internet identification mark.
[0046] In addition, to achieve the above-mentioned purpose, the present invention also proposes an electronic device, including: a memory for storing computer software programs; a processor for reading and executing the computer software programs, thereby realizing a method for tracing the entire process of pig slaughtering based on industrial Internet identification as described above.
[0047] In addition, to achieve the above-mentioned purpose, the present invention also proposes a non-transitory computer-readable storage medium, in which a computer software program is stored. When the computer software program is executed by a processor, it implements a full-process traceability method for pig slaughtering based on industrial Internet identification as described above.
[0048] The beneficial effects of the present invention are:
[0049] (1) The present invention integrates multiple sensor data such as temperature, humidity, and meat quality to achieve comprehensive monitoring of the entire pig slaughtering process. Once a quality problem occurs, the system can quickly locate the source of the problem and ensure the accuracy and timeliness of the traceability process;
[0050] (2) The present invention can use sensors and time series prediction models to collect and analyze various parameter data in the slaughter process in real time, and promptly discover and correct potential quality problems. By real-time monitoring of key parameters such as temperature, humidity, and meat quality, once the data is abnormal, the system can immediately issue an early warning to prevent the problem from escalating;
[0051] (3) The present invention can reduce the reliance on manual records and paper vouchers, significantly improve management efficiency and reduce labor costs through automated data collection and processing, and reduce the impact of human factors on data accuracy through automated data processing and analysis, thereby improving overall management quality;
[0052] (4) The present invention replaces paper certificates with digital means, reduces the risk of forgery and tampering, enhances the security and reliability of data, and can expand the use of blockchain technology to encrypt and store all data and verify on-chain to ensure that the data cannot be tampered with and is traceable;
[0053] (5) The present invention improves the food safety and quality of pig slaughtering through strict whole-process monitoring and traceability management, meets consumers' demand for high-quality food, and the transparent traceability system allows consumers to query information such as the source of pigs and slaughtering process, thereby enhancing consumers' sense of trust;
[0054] (6) The present invention helps slaughterhouse managers understand the key indicators of the production process and optimize the management process by comprehensively analyzing the collected sensor data. Based on accurate data analysis and prediction results, managers can make more scientific and effective decisions and improve production efficiency and product quality.
[0055] In summary, the present invention solves many problems in traditional pig slaughtering quality management and traceability methods through advanced technical means, greatly improves the accuracy, real-time and efficiency of traceability, provides strong support for the quality management of the pig slaughtering industry, and also meets the high requirements of consumers for food safety and quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 A scenario diagram of a method for tracing the entire pig slaughtering process based on industrial Internet identification provided by the present invention;
[0057] Figure 2 A flow chart of a method for tracing the entire pig slaughter process based on industrial Internet identification provided by the present invention;
[0058] Figure 3 A schematic diagram of the structure of a pig slaughtering whole process traceability device based on industrial Internet identification provided by the present invention;
[0059] Figure 4 A schematic diagram of the hardware structure of a possible electronic device provided by the present invention;
[0060] Figure 5 A schematic diagram of the hardware structure of a possible computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION
[0061] 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 those skilled in the art without creative work are within the scope of protection of the present invention.
[0062] In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0063] In the description of the present invention, the term "for example" is used to mean "used as an example, illustration or explanation". Any embodiment described as "for example" in the present invention is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is given to enable any technician in the field to implement and use the present invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present invention can be implemented without using these specific details. In other examples, well-known structures and processes will not be elaborated in detail to avoid obscuring the description of the present invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present invention.
[0064] See also Figure 1 , Figure 1 This is a scenario diagram of a pig slaughtering whole process traceability method based on industrial Internet identification provided by the present invention. Figure 1 As shown, the terminal and the server are connected via a network, such as a wired or wireless network connection. The terminal may include but is not limited to portable terminals such as mobile phones and tablets installed with various network platform applications, as well as fixed terminals such as computers, query machines, and advertising machines. The server provides users with various business services, including service push servers, user recommendation servers, etc.
[0065] It should be noted that Figure 1 The scenario diagram of a method for tracing the entire pig slaughter process based on industrial Internet identification is only an example. The terminal, server and application scenario described in the embodiment of the present invention are intended to more clearly illustrate the technical solution of the embodiment of the present invention, and do not generate limitations on the technical solution provided by the embodiment of the present invention. Ordinary technicians in this field can know that with the evolution of the device and the emergence of new business scenarios, the technical solution provided by the embodiment of the present invention is also applicable to similar technical problems.
[0066] Among them, the terminal can be used for:
[0067] Generate a unique industrial Internet ID for each pig;
[0068] Performing convolution processing and individual recognition processing on the image of each of the live pigs to obtain recognition results of each of the live pigs;
[0069] Collect various pig parameters of the pigs in real time, and evaluate the health status and meat quality of each pig based on the various pig parameters to obtain a quality evaluation score for each pig;
[0070] Based on the recorded pig parameters, predict in advance the time series data of each pig in the whole slaughter process;
[0071] For each of the live pigs, the identification result, live pig parameters, quality assessment score and time series data of the live pig are packaged and associated with the industrial Internet identifier of the live pig;
[0072] In response to the interactive operation of the industrial Internet identification mark, each process of each pig before and during slaughter is traced.
[0073] See also Figure 2 , provides a flowchart of a method for tracing the whole process of pig slaughtering based on industrial Internet identification of the present invention, comprising the following steps:
[0074] Step 201: Generate a unique industrial Internet identifier for each pig.
[0075] In some embodiments, the IIoT identifier can accompany the entire process of pig breeding, transportation and slaughter, and be associated with various types of data to achieve full-process tracking and management. The identifier is unique: Each identifier must be unique to ensure that data from different pigs is not confused. Comprehensiveness: The identifier should cover all basic information of the pig, such as source, breed, date of birth, etc. Scalability: The identifier should be scalable and able to support new data information in the future.
[0076] For example, a possible identification structure is as follows:
[0077] Farm ID: 4 digits, Breed ID: 3 digits, Date of Birth: 8 digits (YYYYMMDD), Sequence Number: 5 digits (daily slaughter quantity serial number), example identification: 1234-567-20230704-00001. For example, 1234: farm ID, 567: pig breed number, 20230704: date of birth, 00001: sequence number.
[0078] It should be noted that the Industrial Internet identifier can be bound to individual pigs in the form of electronic tags (such as RFID tags, QR codes, etc.) to ensure that the identifier can be read and identified at any time.
[0079] In the breeding stage, the Internet ID records the pig breeding process, including feeding, vaccination and other information. In the transportation stage, the transportation process of pigs from farms to slaughterhouses is tracked to ensure safety and health during transportation. In the slaughterhouse, the slaughter process of pigs is recorded through the ID, including slaughter time, health inspection results and other information. Data integration: Data from all links are linked through the ID to form a complete pig traceability chain.
[0080] The present invention generates a unique Industrial Internet identifier for each pig and combines sensor data with complex time series models to achieve accurate traceability and real-time monitoring of the entire pig slaughtering process, significantly improving quality management efficiency and food safety.
[0081] Step 202: Perform convolution processing and individual recognition processing on the image of each pig to obtain the recognition result of each pig.
[0082] In some embodiments, step 202 may include:
[0083] The image of each pig is collected by a camera installed at the entrance of the slaughterhouse, and a convolutional neural network algorithm is used to perform convolution processing on the pig to obtain a corresponding convolution feature map;
[0084] The convolution feature map is processed for individual identification to obtain an identification result for each of the pigs.
[0085] In some embodiments, the recognition result is represented as:
[0086] ;
[0087] in, is the recognition result, is the activation function, is the k-th layer convolution kernel weight matrix, represents the convolution operation, is the k-th layer input feature map, is the bias vector of the kth layer, and n is the total number of layers.
[0088] In the specific implementation, is the recognition result, the recognition result It is the final output of the convolutional neural network after processing through multiple layers of convolution and activation functions, indicating the result of individual pig identification;
[0089] is an activation function, such as the ReLU function: , activation function It is a function used to introduce nonlinear factors, which enables neural networks to learn and represent complex patterns;
[0090] is the k-th convolution kernel weight matrix, which represents the filter in the convolution operation. Each convolution kernel extracts specific features by performing a convolution operation with the input feature map;
[0091] Denotes the convolution operation, which is the process of applying a convolution kernel to the input feature map. Specifically, the convolution operation slides the convolution kernel on the input feature map, calculates its dot product and bias, and thus generates a feature map;
[0092] is the kth layer input feature map, which represents the output after the previous layer convolution operation. For the first layer of the network, the input feature map is the original pig image;
[0093] is the bias vector of the kth layer, which represents the constant term added by each convolution kernel after applying the convolution operation, used to adjust the result of the convolution operation, and n is the total number of layers.
[0094] In the specific implementation, for each layer k, the input feature map and the convolution kernel weight matrix A convolution operation is performed, which generates a feature map by sliding the convolution kernel and calculating the dot product between it and the local area of the input feature map. Then, a bias vector can be added to the result of the convolution operation , adjust the value of each feature map. Then, the result of convolution and bias can be passed through the activation function The introduction of nonlinearity enables the network to learn complex patterns. Ultimately, the above process is repeated in each layer of the convolutional network until the last layer, generating the final output recognition result y.
[0095] In the above manner, the present invention can process the input image through multiple layers of convolution and activation functions, thereby realizing accurate recognition of individual pigs. The convolution kernel weights and bias vectors of each layer are continuously optimized by the back propagation algorithm during the training process to improve the recognition accuracy.
[0096] Step 203: collect various pig parameters of the pigs in real time, and evaluate the health status and meat quality of each pig based on the various pig parameters to obtain a quality evaluation score for each pig.
[0097] In some embodiments, the pig parameters may include at least temperature, humidity, and meat quality of the pig.
[0098] In some embodiments, step 203 may include:
[0099] For each of the live pigs, obtaining temperature sensor data detected by a temperature sensor, humidity sensor data detected by a humidity sensor, and meat quality sensor data detected by a meat quality sensor;
[0100] Acquire other pig parameters other than the temperature sensor data, the humidity sensor data and the meat quality sensor data;
[0101] Obtaining disease detection data of the live pigs;
[0102] The quality assessment score of the live pig is determined based on the temperature sensor data, the humidity sensor data, the meat quality sensor data, other live pig parameters and the disease detection data.
[0103] In some embodiments, the quality assessment score is expressed as:
[0104] ;
[0105] Among them, T is the temperature sensor data, H is the humidity sensor data, S is the meat quality sensor data, are other pig parameters, is the first weight, is the second weight, is the third weight, Is the relevant parameter The fourth weight, is the fifth weight, D is the disease detection data, is the standard deviation.
[0106] In the specific implementation, Q is the quality assessment score, which is an indicator for evaluating the health status and meat quality of pigs;
[0107] T is the temperature sensor data, which is used to monitor and evaluate the temperature condition of pigs;
[0108] H is the humidity sensor data, which is used to monitor and evaluate the humidity conditions of pigs;
[0109] S is the meat quality sensor data, which is used to evaluate the quality of raw pork;
[0110] are other relevant pig parameters, such as pig weight, skin color, etc., and i represents the index of these parameters;
[0111] is the first weight;
[0112] is the second weight;
[0113] is the third weight;
[0114] Is the relevant parameter The fourth weight is used to adjust the influence of these parameters on the comprehensive quality assessment score Q;
[0115] is the fifth weight, which is used to adjust the impact of disease detection data on the quality assessment score Q;
[0116] D is disease detection data, which is used to assess whether pigs have health problems;
[0117] is the standard deviation used to calculate the standard deviation of the impact of disease detection data.
[0118] In the specific implementation, is the temperature sensor data T multiplied by the first weight , reflecting the impact of temperature on the quality assessment score Q. It is the humidity sensor data H multiplied by the weight coefficient , reflecting the impact of humidity on the quality assessment score Q. is the meat quality sensor data S multiplied by the weight coefficient , reflecting the impact of meat quality on the quality assessment score Q.
[0119] In some embodiments, The Gaussian function is used to calculate the impact of disease detection data D on the quality assessment score Q. It is in the form of a Gaussian function, representing a symmetrical bell-shaped curve centered at zero, with a standard deviation of Controls the width of the curve. Adjustment factor It is used to adjust the impact of disease detection data on the quality assessment score Q. When D is small Close to 1, the impact on Q is greater; when D is larger Close to 0, the impact on Q is small.
[0120] It can be understood that by weighting the sensor data such as temperature, humidity, meat quality, and other related parameters and disease detection data, a comprehensive pig quality assessment score Q can be obtained. This score takes into account a variety of factors and can accurately reflect the health status and meat quality of pigs, providing a basis for subsequent quality management and decision-making.
[0121] Each sensor data and related parameters are weighted to reflect their relative importance to pig quality.
[0122] The introduction of the Gaussian function makes the impact of disease detection data D on the quality assessment score Q change nonlinearly with the change of its value, which increases the complexity and accuracy of the model.
[0123] Step 204: predict in advance the time series data of each pig during the entire slaughtering process based on the recorded pig parameters.
[0124] In some embodiments, step 204 may include:
[0125] Obtain the pig parameters recorded at each moment and obtain the time series data at each moment;
[0126] Construct random error terms and seasonal data for time series data at each moment;
[0127] Based on the linear combination of the time series values of the previous p time points at the current moment, the linear combination of the error terms of the previous q time points and the linear combination of the data influences of the previous o seasonal time points, the time series data of each pig at the current moment in the entire slaughter process is predicted in advance.
[0128] In some embodiments, the time series data at the current moment is represented as:
[0129] ;
[0130] in, is the time series data at the current moment, is the time series data of the previous i moments, C is the first constant, is the coefficient of the autoregressive part, is the coefficient of the moving average part, is the random error term, is the random error term of the previous j moments, is the seasonal factor coefficient, is the seasonal data of the previous k moments, and o, p, and q are the total number of time points of different sizes.
[0131] In the specific implementation, It is the time series data at the current moment. For the pig slaughtering process, it can be the time series value of a specific monitoring parameter (such as temperature, humidity, meat quality, etc.);
[0132] C is the first constant, representing the average level or baseline value of the time series data;
[0133] is the coefficient of the AR (autoregressive) part, indicating the time point Data The impact weight on the current time point t;
[0134] It is the coefficient of the MA (moving average) part, indicating the time point The error term The impact weight on the current time point t;
[0135] is the random error term, which is used to capture random fluctuations that are not explained in the model;
[0136] is the seasonal factor coefficient, indicating seasonal data The impact weight on the current time point t;
[0137] It is the seasonal data of the previous k moments, reflecting the influence of seasonal cycles, such as daily, weekly, and monthly periodic changes.
[0138] The autoregressive part represents the current value is the time series value of the first p time points A linear combination of .
[0139] The moving average part represents the current value is the error term for the first q time points A linear combination of .
[0140] The seasonal factor part represents the current value The data from the previous o seasonal time points Linear combination of effects.
[0141] For example, suppose you want to monitor and predict an important environmental parameter in a slaughterhouse in real time, such as the temperature of the slaughterhouse. It is hoped that the time series model can be used to predict future temperature changes to ensure that the slaughter process is carried out under optimal temperature conditions, thereby ensuring meat quality and hygiene standards.
[0142] Assume the temperature sensor data: , Autoregressive part (AR): set p=2, that is, consider the temperature values of the previous two moments; Moving average part (MA): set q=1, that is, consider the error term of the previous moment; Seasonal factor: set s=1, that is, consider the temperature value of the previous seasonal cycle; Constant term: c=5 (assumed average temperature).
[0143] Coefficient setting: , random error term Assume is a random variable sampled from a normal distribution.
[0144] Assume the following data:
[0145] (temperature at the first two moments), (the error at the previous moment), (the temperature of the previous seasonal cycle), to predict the temperature at the current time t .
[0146] Substituting these data into the formula .
[0147] Calculate the value of each term: Constant term: c=5, Autoregressive part: , total: 10.8+5.1=15.9, moving average part: ,Seasonal factors: , assuming that the error term at the current moment is To simplify the calculation, add all the parts together: .
[0148] Through the above calculation, the temperature at the current time t is predicted The model comprehensively considers the temperature of the previous two moments, historical data of autoregression and moving average, seasonal factors, and the influence of constant terms and random errors, and provides a relatively accurate temperature forecast value.
[0149] The prediction results can be used to monitor the ambient temperature of the slaughterhouse in real time. If the predicted temperature exceeds the safe range, it can be adjusted in time to ensure that the slaughter process is carried out under the optimal temperature conditions. In addition, the model can be continuously updated and trained to improve the accuracy and real-time nature of the prediction, providing a scientific basis for the quality management of the slaughterhouse.
[0150] In some embodiments, the present invention may further include:
[0151] Based on the time series data of the live pigs, trend prediction is performed on the data of the slaughter process of the live pigs;
[0152] In response to detecting abnormal data from the data of the slaughtering process of the live pigs according to trend prediction, an early warning report of the slaughtering process of the live pigs is generated.
[0153] In some embodiments, the time series data includes, but is not limited to: temperature sensor data, humidity sensor data, meat quality sensor data, other related parameters, and disease detection data.
[0154] In some embodiments, a prediction model can be established based on time series data to predict the trend of various key data in the slaughter process. Then the data of each sensor is standardized and normalized to remove noise and outliers to ensure data quality. The time series model (such as ARIMA model, LSTM, etc.) is trained using historical data to obtain the optimal estimated values of various parameters. Then, based on current and historical data, the trained model is used to perform trend prediction to obtain parameter values at future times.
[0155] For example, for temperature data The trend prediction can be expressed as:
[0156] ;
[0157] The trend data generated by the prediction model is compared with the actual real-time data to detect whether there are anomalies. Anomaly detection can be achieved by setting thresholds, for example:
[0158] When the actual temperature Exceeding the predicted value When the data is out of a certain range, it is considered abnormal. Similarly, the data of other parameters can also be detected in the same way. When abnormal data is detected, the system will generate an early warning report to remind the management personnel to take corresponding measures. The early warning report should include the following information:
[0159] Abnormal parameter: Indicates which parameter is abnormal (such as temperature, humidity, etc.).
[0160] Abnormal time: record the specific time when the abnormality occurs.
[0161] Abnormal value and predicted value: Provides a comparison between the actual detection value and the predicted value to illustrate the severity of the abnormality.
[0162] Possible cause analysis: Combined with other relevant data, analyze possible causes of abnormalities (such as equipment failure, environmental changes, etc.).
[0163] Recommended Actions: Provides suggested countermeasures, such as adjusting equipment, checking sensors, recalibrating the system, etc.
[0164] In some embodiments, the example process is as follows:
[0165] Real-time monitoring: The system collects data such as temperature, humidity, and meat quality during the pig slaughtering process in real time.
[0166] Trend forecasting: Use time series forecasting models to predict various parameters in the future.
[0167] Anomaly detection: By comparing real-time data with predicted values, it is found that the temperature is abnormally high at a certain moment.
[0168] Early warning report generation: The system automatically generates an early warning report, including specific information about the anomaly, possible causes, and recommended measures.
[0169] Response measures: Managers check relevant equipment and environment based on the early warning report and take necessary corrective measures.
[0170] The present invention can monitor and warn key parameters in the pig slaughtering process in real time through trend prediction and anomaly detection based on time series data, ensuring the quality and safety of the slaughtering process. The abnormal warning report provides timely and accurate information for management personnel, facilitating rapid response and processing, and improving overall management efficiency.
[0171] Step 205: For each of the pigs, the identification result, pig parameters, quality assessment score and time series data of the pig are packaged and associated with the industrial Internet identifier of the pig.
[0172] In some embodiments, the above data may be packaged so as to be subsequently associated with the industrial Internet identifier. The packaged data structure is as follows:
[0173] {
[0174] "Industrial Internet Identity": "1234-567-20230704-00001",
[0175] "Recognition result": "y",
[0176] "Pig Parameters": {
[0177] "Weight": "80kg",
[0178] "Skin Color": "Pink",
[0179] / / Other parameters
[0180] },
[0181] "Quality Assessment Score": "Q",
[0182] "Time Series Data": [
[0183] {"Time": "2023-07-04 08:00", "Temperature": "10℃", "Humidity": "60%", "Meat Quality": "A"},
[0184] {"Time": "2023-07-04 09:00", "Temperature": "12℃", "Humidity": "62%", "Meat Quality": "A"},
[0185] / / More data ]
[0187] }.
[0188] In some embodiments, the packaged data may be stored in a database and associated with a corresponding industrial Internet identifier, and may be stored in a relational database or a NoSQL database.
[0189] Example SQL database structure:
[0190] CREATE TABLE pig data(
[0191] Industrial Internet ID VARCHAR(255) PRIMARY KEY,
[0192] Recognition result TEXT,
[0193] Pig parameter JSON,
[0194] Quality assessment score FLOAT,
[0195] Time Series Data JSON
[0196] ).
[0197] An example storage operation is as follows:
[0198] INSERT INTO pig data (Industrial Internet ID, identification results, pig parameters, quality assessment score, time series data)
[0199] VALUES (
[0200] '1234-567-20230704-00001',
[0201] 'y',
[0202] '{"Weight": "80kg", "Skin color": "Pink"}',
[0203] Q,
[0204] '[{"Time": "2023-07-04 08:00", "Temperature": "10℃", "Humidity": "60%", "Meat Quality": "A"}, {"Time": "2023-07-04 09:00", "Temperature": "12℃", "Humidity": "62%", "Meat Quality": "A"}]'
[0205] ).
[0206] After storage is completed, all relevant data of the corresponding pigs can be quickly queried and obtained through the industrial Internet identification, realizing the tracking and management of the entire pig slaughtering process.
[0207] Example query operation:
[0208] SELECT * FROM pig data WHERE Industrial Internet ID = '1234-567-20230704-00001'.
[0209] It is understandable that when food safety problems occur, all data on related pigs can be quickly queried through the Industrial Internet ID to locate the source of the problem. Process optimization: Analyze time series data, optimize various parameters in the slaughter process, and improve production efficiency and product quality. Consumer query: Consumers can scan the QR code on the meat packaging to query detailed information such as pig identification results, pig parameters, quality assessment scores, etc., to ensure food safety and transparency.
[0210] The present invention packages the identification results, pig parameters, quality assessment scores and time series data of each pig and associates them with the industrial Internet identifier. The system can achieve accurate traceability and real-time monitoring of the entire pig slaughter process. This not only improves management efficiency and food safety, but also provides data support for optimizing production processes and improving product quality.
[0211] Step 206: In response to the interactive operation on the industrial Internet identification mark, each process of each pig before and during slaughter is traced.
[0212] In some embodiments, the interactive operation can be to read and query the industrial Internet identification mark of the live pig by scanning a QR code, RFID tag, etc., and obtain relevant data. Before and during slaughter, the staff can use a handheld terminal or a fixed scanning device to scan the QR code or RFID tag on the pig ear tag to read the industrial Internet identification mark of the live pig. The system can query the detailed information of the corresponding live pig from the database based on the read industrial Internet identification mark, including identification results, live pig parameters, quality assessment scores and time series data.
[0213] For example, pre-slaughter inspection: the staff scans the QR code on the pig ear tag and reads the industrial Internet logo. The system queries and displays the basic information, health records and transportation records of the pig. After confirming that the pig meets the slaughter standards, the slaughter operation is carried out.
[0214] Monitoring during slaughtering: Real-time monitoring of temperature, humidity and meat quality data during slaughtering. Detect abnormal data through time series prediction model. Generate and send early warning reports to remind management personnel to intervene.
[0215] Generate traceability report: After slaughtering, the system automatically generates a comprehensive traceability report for the pigs. The report includes basic information of the pigs, health records, transportation records, slaughter process monitoring data, quality assessment scores and early warning reports. The report can be printed or provided to relevant personnel electronically.
[0216] By responding to the interactive operation of the industrial Internet identification mark, the system of the present invention can trace the various processes of each pig before and during slaughter in detail, which not only improves the transparency and management efficiency of the slaughtering process, but also enhances food safety and quality control, ensuring that the entire process of each pig from breeding to slaughter can be accurately tracked and managed.
[0217] See also Figure 3 , Figure 3 A schematic diagram of the structure of a full-process traceability device for pig slaughtering based on industrial Internet identification provided by the present invention.
[0218] like Figure 3 As shown, a pig slaughtering whole process traceability device based on industrial Internet identification proposed in an embodiment of the present invention includes:
[0219] An identification generation module 301 is used to generate a unique industrial Internet identification corresponding to each pig;
[0220] The individual identification module 302 is used to perform convolution processing and individual identification processing on the image of each of the live pigs to obtain an identification result of each of the live pigs;
[0221] The quality assessment module 303 is used to collect various pig parameters of the pigs in real time, and to assess the health status and meat quality of each pig based on the various pig parameters to obtain a quality assessment score for each pig;
[0222] The data prediction module 304 is used to predict the time series data of each pig in the whole slaughter process in advance according to the recorded pig parameters;
[0223] The information association module 305 is used to package the identification result, pig parameters, quality assessment score and time series data of each pig and associate them with the industrial Internet identifier of the pig;
[0224] The information traceability module 306 is used to trace each process of each pig before and during slaughter in response to the interactive operation of the industrial Internet identification mark.
[0225] See also Figure 4 , Figure 4 Schematic diagram of an electronic device provided by an embodiment of the present invention. Figure 4 As shown, an embodiment of the present invention provides an electronic device 400, including a memory 410, a processor 420, and a computer program 411 stored in the memory 410 and executable on the processor 420. When the processor 420 executes the computer program 411, the following steps are implemented:
[0226] Generate a unique industrial Internet ID for each pig;
[0227] Performing convolution processing and individual recognition processing on the image of each of the live pigs to obtain recognition results of each of the live pigs;
[0228] Collect various pig parameters of the pigs in real time, and evaluate the health status and meat quality of each pig based on the various pig parameters to obtain a quality evaluation score for each pig;
[0229] Based on the recorded pig parameters, predict in advance the time series data of each pig in the whole slaughter process;
[0230] For each of the live pigs, the identification result, live pig parameters, quality assessment score and time series data of the live pig are packaged and associated with the industrial Internet identifier of the live pig;
[0231] In response to the interactive operation of the industrial Internet identification mark, each process of each pig before and during slaughter is traced.
[0232] See also Figure 5 , Figure 5A schematic diagram of an embodiment of a computer-readable storage medium provided in an embodiment of the present invention. Figure 5 As shown, this embodiment provides a computer-readable storage medium 500, on which a computer program 411 is stored. When the computer program 411 is executed by a processor, the following steps are implemented:
[0233] Generate a unique industrial Internet ID for each pig;
[0234] Performing convolution processing and individual recognition processing on the image of each of the live pigs to obtain recognition results of each of the live pigs;
[0235] Collect various pig parameters of the pigs in real time, and evaluate the health status and meat quality of each pig based on the various pig parameters to obtain a quality evaluation score for each pig;
[0236] Based on the recorded pig parameters, predict in advance the time series data of each pig in the whole slaughter process;
[0237] For each of the live pigs, the identification result, live pig parameters, quality assessment score and time series data of the live pig are packaged and associated with the industrial Internet identifier of the live pig;
[0238] In response to the interactive operation of the industrial Internet identification mark, each process of each pig before and during slaughter is traced.
[0239] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0240] It should be understood by those skilled in the art that embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0241] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (apparatus), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0242] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0243] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0244] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0245] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A whole-process traceability method for pig slaughter based on industrial Internet identification, characterized in that: The method comprises: Generate a unique industrial Internet ID for each pig; The image of each of the live pigs is subjected to convolution processing and individual recognition processing to obtain the recognition result of each of the live pigs, including: collecting images of each of the live pigs through a camera installed at the entrance of the slaughterhouse, and performing convolution processing on the live pigs using a convolutional neural network algorithm to obtain a corresponding convolution feature map; performing individual recognition processing on the convolution feature map to obtain the recognition result of each of the live pigs; the recognition result is expressed as: ;in, is the recognition result, is the activation function, is the k-th layer convolution kernel weight matrix, represents the convolution operation, is the k-th layer input feature map, is the bias vector of the kth layer, and n is the total number of layers; Collect various pig parameters of the pigs in real time, and evaluate the health status and meat quality of each pig based on the various pig parameters to obtain a quality evaluation score for each pig, including: for each pig, obtaining temperature sensor data detected by a temperature sensor, humidity sensor data detected by a humidity sensor, and meat quality sensor data detected by a meat quality sensor; obtaining other pig parameters other than the temperature sensor data, the humidity sensor data, and the meat quality sensor data; obtaining disease detection data of the pig; determining the quality evaluation score of the pig according to the temperature sensor data, the humidity sensor data, the meat quality sensor data, other pig parameters, and the disease detection data; the quality evaluation score is expressed as: ;in, is the temperature sensor data, H is the humidity sensor data, S is the meat quality sensor data, are other pig parameters, is the first weight, is the second weight, is the third weight, Is the relevant parameter The fourth weight, is the fifth weight, D is the disease detection data, is the standard deviation; According to the recorded parameters of live pigs, the time series data of each live pig in the whole slaughter process is predicted in advance, including: obtaining the live pig parameters recorded at each moment to obtain the time series data at each moment; constructing the random error term and seasonal data of the time series data at each moment; according to the linear combination of the time series values of the previous p time points at the current moment, the linear combination of the error terms of the previous q time points and the linear combination of the data influences of the previous o seasonal time points, the time series data of each live pig at the current moment in the whole slaughter process is predicted in advance; the time series data at the current moment is expressed as: ;in, is the time series data at the current moment, t is the current moment, is the time series data of the previous i moments, c is the first constant, is the coefficient of the autoregressive part, is the coefficient of the moving average part, is the random error term, is the random error term of the previous j moments, is the seasonal factor coefficient, is the seasonal data of the previous k moments, and o, p, and q are the total number of time points of different sizes; For each of the live pigs, the identification result, live pig parameters, quality assessment score and time series data of the live pig are packaged and associated with the industrial Internet identifier of the live pig; In response to the interactive operation of the industrial Internet identification mark, each process of each pig before and during slaughter is traced.
2. The whole process traceability method of pig slaughtering based on industrial Internet identification according to claim 1 is characterized in that: The method further comprises: Based on the time series data of the live pigs, trend prediction is performed on the data of the slaughter process of the live pigs; In response to detecting abnormal data from the data of the slaughtering process of the live pigs according to trend prediction, an early warning report of the slaughtering process of the live pigs is generated.
3. The whole process traceability method of pig slaughtering based on industrial Internet identification according to any one of claims 1-2 is characterized in that: The pig parameters include at least the temperature, humidity and meat quality of the pig.
4. A pig slaughter whole process traceability device based on industrial Internet identification, characterized in that: A method for tracing the whole process of pig slaughtering based on industrial Internet identification according to any one of claims 1 to 3, the device comprising: An identification generation module is used to generate a unique industrial Internet identification for each pig; The individual recognition module is used to perform convolution processing and individual recognition processing on the image of each pig to obtain the recognition result of each pig, and is also used to: collect images of each pig through a camera installed at the entrance of the slaughterhouse, and use a convolution neural network algorithm to perform convolution processing on the pig to obtain a corresponding convolution feature map; perform individual recognition processing on the convolution feature map to obtain the recognition result of each pig; the recognition result is expressed as: ;in, is the recognition result, is the activation function, is the k-th layer convolution kernel weight matrix, represents the convolution operation, is the k-th layer input feature map, is the bias vector of the kth layer, and n is the total number of layers; The quality assessment module is used to collect various pig parameters of the pigs in real time, and evaluate the health status and meat quality of each pig based on the various pig parameters to obtain the quality assessment score of each pig, and is also used to: for each pig, obtain temperature sensor data detected by the temperature sensor, humidity sensor data detected by the humidity sensor, and meat quality sensor data detected by the meat quality sensor; obtain other pig parameters other than the temperature sensor data, the humidity sensor data, and the meat quality sensor data; obtain disease detection data of the pig; determine the quality assessment score of the pig based on the temperature sensor data, the humidity sensor data, the meat quality sensor data, other pig parameters, and the disease detection data; the quality assessment score is expressed as: ;in, is the temperature sensor data, H is the humidity sensor data, S is the meat quality sensor data, are other pig parameters, is the first weight, is the second weight, is the third weight, Is the relevant parameter The fourth weight, is the fifth weight, D is the disease detection data, is the standard deviation; The data prediction module is used to predict the time series data of each pig in the whole slaughter process in advance according to the recorded pig parameters, and is also used to: obtain the pig parameters recorded at each moment to obtain the time series data at each moment; construct the random error term and seasonal data of the time series data at each moment; predict the time series data of each pig at the current moment in the whole slaughter process in advance according to the linear combination of the time series values of the previous p time points at the current moment, the linear combination of the error terms of the previous q time points and the linear combination of the data influences of the previous o seasonal time points; the time series data at the current moment is expressed as: ;in, is the time series data at the current moment, t is the current moment, is the time series data of the previous i moments, c is the first constant, is the coefficient of the autoregressive part, is the coefficient of the moving average part, is the random error term, is the random error term of the previous j moments, is the seasonal factor coefficient, is the seasonal data of the previous k moments, and o, p, and q are the total number of time points of different sizes; An information association module, for packaging the identification result, pig parameters, quality assessment score and time series data of each pig, and associating them with the industrial Internet identifier of the pig; The information tracing module, in response to the interactive operation of the industrial Internet identification mark, is used to trace each process of each pig before and during slaughter.
