Disease detection method and system, storage medium and terminal equipment

By using dynamic time regular characteristics and disease detection models in the field of livestock breeding, the accuracy and timeliness of animal health status detection are solved, efficient monitoring of animal disease status is achieved, and disease transmission and loss are reduced.

CN119004230APending Publication Date: 2024-11-22SHENZHEN ZHONGRONG DIGITAL TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411020013.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

In the field of livestock breeding, it is difficult for the prior art to accurately and timely understand the health or disease status of animals, resulting in increased disease transmission and loss.

Method used

By obtaining the time sequence data of the animal's movement volume at different time periods, dynamic time regularization characteristics are constructed, and combined with a preset disease detection model, the disease status of the animal is detected to solve the problems of time offset and noise interference.

Benefits of technology

More accurate detection of animal disease status has been achieved, reducing disease transmission and loss, and improving livestock breeding efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119004230A_ABST
    Figure CN119004230A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a disease detection method and system, a storage medium and terminal equipment, and is applied to the technical field of information processing. The disease detection system constructs the dynamic time warping feature according to the exercise amount time sequence data corresponding to the to-be-detected object in the at least two total time periods, and then detects the disease state of the to-be-detected object based on the dynamic time warping feature and a preset disease detection model. Due to the fact that the dynamic time warping feature can solve the problems of time migration and synchronization between time sequences based on different motion data, interference of a small amount of noise and abnormal values can be effectively resisted, and the disease state, obtained through detection based on the dynamic time warping feature, of the to-be-detected object is more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence information processing technology, and in particular to a method and system for evaluating speech data. Background Art

[0002] Nowadays, artificial intelligence can be applied to a wide range of fields, which can greatly improve the efficiency of various application fields. In the field of livestock farming, it is necessary to immediately understand the health status and disease status of each animal, so that sick animals can be isolated as soon as possible to prevent the spread of diseases between animals and reduce breeding losses. In this way, applying artificial intelligence to the field of livestock farming can effectively reduce breeding losses.

[0003] Therefore, how to apply artificial intelligence methods in the field of animal husbandry to perform health or disease detection so as to understand the health or disease status of each animal more accurately and timely is an important topic. Summary of the invention

[0004] The embodiments of the present invention provide a disease detection method, system, storage medium and terminal device, which improve the disease status of the object to be detected.

[0005] An embodiment of the present invention provides a disease detection method, comprising:

[0006] Obtaining time series data of the amount of movement of the object to be detected corresponding to at least two total time periods;

[0007] Constructing a dynamic time warping feature according to the motion time series data, wherein the dynamic time warping feature is used to represent the similarity of the motion time series between any two total time periods;

[0008] The disease state of the object to be detected is detected according to the dynamic time warping characteristics and a preset disease detection model.

[0009] An embodiment of the present invention provides a disease detection system, including:

[0010] A time series acquisition unit, used to acquire time series data of the amount of motion of the object to be detected corresponding to at least two total time periods;

[0011] A feature construction unit, used for constructing a dynamic time warping feature according to the motion time series data, wherein the dynamic time warping feature is used for representing the similarity of the motion time series between any two total time periods;

[0012] The detection unit is used to detect the disease state of the object to be detected based on the dynamic time warping characteristics and a preset disease detection model.

[0013] Another aspect of the embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a plurality of computer programs, wherein the computer programs are suitable for being loaded by a processor and executing the disease detection method as described in one aspect of the embodiment of the present invention.

[0014] Another aspect of the embodiment of the present invention further provides a terminal device, including a processor and a memory;

[0015] The memory is used to store multiple computer programs, and the computer programs are used to be loaded by the processor and execute the disease detection method as described in one aspect of an embodiment of the present invention; the processor is used to implement each computer program in the multiple computer programs.

[0016] It can be seen that in the method of this embodiment, the disease detection system will construct a dynamic time warping feature based on the time series data of the amount of motion corresponding to the object to be detected in at least two total time periods, and then detect the disease state of the object to be detected based on the dynamic time warping feature and the preset disease detection model. Since the dynamic time warping feature can solve the time offset and synchronization problems between time series based on different motion data, and can effectively resist the interference of a small amount of noise and outliers, the disease state of the object to be detected based on the dynamic time warping feature detection is more accurate. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] 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 labor.

[0018] Figure 1 is a schematic diagram of a disease detection method provided by an embodiment of the present invention;

[0019] Figure 2 is a flow chart of a disease detection method provided by an embodiment of the present invention;

[0020] Figure 3 is a flow chart of a method for training a disease detection model in one embodiment of the present invention;

[0021] Figure 4 is a flow chart of a disease detection method provided in an application embodiment of the present invention;

[0022] Figure 5 is a schematic diagram of a distributed system to which a disease detection method in another application embodiment of the present invention is applied;

[0023] Figure 6is a schematic diagram of a block structure in another application embodiment of the present invention;

[0024] Figure 7 is a logical structure diagram of a disease detection system provided by an embodiment of the present invention;

[0025] Figure 8 It is a schematic diagram of the logical structure of a terminal device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0026] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0027] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can, for example, be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] The present invention provides a disease detection method, which can be mainly applied to the fields of animal husbandry to detect the health status of the animals raised. Figure 1 As shown, the disease detection system can perform disease detection on each detection object according to the following method:

[0029] Acquire the time series data of the amount of motion of the object to be detected corresponding to at least two total time periods; construct a dynamic time regularization feature based on the time series data of the amount of motion, and the dynamic time regularization feature is used to represent the similarity of the time series of the amount of motion between any two total time periods; detect the disease state of the object to be detected based on the dynamic time regularization feature and a preset disease detection model.

[0030] The above preset disease detection model is a machine learning model based on artificial intelligence, which can be trained through certain training methods. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.

[0031] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics and other technologies. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, machine learning and / deep learning.

[0032] Machine Learning (ML) is a multi-disciplinary subject that involves probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and teaching learning.

[0033] In this way, since the dynamic time warping feature can solve the time offset and synchronization problems between time series based on different motion data, and can effectively resist the interference of a small amount of noise and outliers, the disease status of the object to be detected based on the dynamic time warping feature detection is more accurate.

[0034] An embodiment of the present invention provides a disease detection method, which is mainly a method performed by a disease detection system. The flow chart is as follows: Figure 2 As shown, including:

[0035] Step 101, obtaining time series data of the amount of movement of the object to be detected corresponding to at least two total time periods.

[0036] It can be understood that the disease detection system can obtain the time series data of the amount of motion in each total time period. Specifically, the disease detection system can collect the motion data of the object to be detected in each total time period according to a specific collection period (such as 10s, etc.). In this way, the motion data corresponding to multiple moments in a total time period of the object to be detected can be obtained. The motion data corresponding to these multiple moments can constitute the time series data of the amount of motion corresponding to the total time period.

[0037] Among them, a total time period can be a day, a week, a month, etc. The motion data collected by the disease detection system is mainly data that can describe the motion of the object to be detected. In specific implementation, the motion data at each moment can be information on multiple axes of the object to be detected. If applied to the field of animal husbandry, it can be collected by a three-axis acceleration sensor on an intelligent low-function ear tag worn on the ear or other parts of the object to be detected, so that acceleration information in the x-axis, y-axis and z-axis directions can be obtained.

[0038] Furthermore, in a specific embodiment, in order to simplify the time series data of the amount of motion in each total time period, the motion data collected at multiple moments in each total time period can be aggregated. For example, the motion data of each total time period can be aggregated according to a specific aggregation period to obtain the aggregation characteristics of the motion data of multiple aggregation periods in each total time period. Here, the specific aggregation period needs to be greater than the above-mentioned specific collection period, for example, it can be 5 minutes, 10 minutes, 20 minutes, 30 minutes, 40 minutes, 50 minutes, 60 minutes or 120 minutes, etc.

[0039] Among them, the aggregation features may include one or more of the following features: mean, standard deviation (std), skewness (skew) and unbiased standard error (sem), etc., among which the mean refers to the mean value of the motion data in each aggregation time period; the standard deviation refers to the average value of the distance of the motion data in each aggregation time period deviating from the mean; the skewness refers to the measure of the direction and degree of skewness of the distribution of motion data in each aggregation time period.

[0040] Unbiased standard error refers to an unbiased inference when using sample statistics to estimate population parameters. If the mathematical expectation of the estimator is equal to the true value of the estimated parameter, then this estimator is called an unbiased estimate of the estimated parameter, that is, it has unbiasedness. It is a criterion for evaluating the quality of an estimator. The meaning of unbiased estimation is that their average is close to the true value of the estimated parameter under multiple repetitions.

[0041] In other specific embodiments, in order to simplify the motion time series data of each total time period, multiple sub-time periods in any total time period can be selected first, and then in each sub-time period, the motion data of the object to be detected can be collected according to a specific collection period, so that the motion data collected in each sub-time period can constitute the motion time series data corresponding to the total time period. Further, in order to simplify the motion data collected in each sub-time period, the motion data in each sub-time period can be aggregated according to a specific aggregation period to obtain the aggregation characteristics of the motion data of multiple aggregation periods in each sub-time period, so that the aggregation characteristics of the motion data of multiple aggregation periods corresponding to each sub-time period can be combined to form the motion time series data corresponding to the corresponding total time period. Among them, the specific aggregation period used in the aggregation is generally greater than the above-mentioned specific collection period, and less than the time interval of each sub-time period.

[0042] Among them, when selecting sub-time periods, you can select according to the actual time periods for eating, resting, and being active of the subject to be detected, for example, 0-6 o'clock, 6-12 o'clock, 12-18 o'clock, and 18-24 o'clock are used as sub-time periods. It should be noted that the time interval of each sub-time period can be the same or different, and is not limited here.

[0043] Step 102, constructing a dynamic time warping feature based on the motion time series data, where the dynamic time warping feature is used to represent the similarity of the motion time series between any two time periods.

[0044] In this embodiment, the dynamic time wrapping (DTW) feature between any two total time periods is calculated based on the motion time series data corresponding to the two total time periods, wherein the DTW feature can mainly describe the similarity of two sequences of unequal lengths. The basic idea is to allow the sequence to be stretched and compressed in the time dimension through dynamic programming, and to compare the sequences of unequal lengths, and gradually calculate the distance between the two sequences to measure the similarity, which can solve the time offset and synchronization problems between time series, and can effectively resist the interference of a small amount of noise and outliers.

[0045] Specifically, if each total time period includes multiple sub-time periods, when calculating the dynamic time warping features, the dynamic time warping features between the motion data of any sub-time period in any total time period and the motion data of the same sub-time period in another total time period will be calculated.

[0046] For example: the total time period is one day, and the main sub-time periods are 0-6 o'clock, 6-12 o'clock, 12-18 o'clock and 18-24 o'clock. Then, the motion data of each sub-time period (such as 0-6 o'clock) of the day can be calculated, and the dynamic time regularization characteristics between the motion data of the same sub-time period (such as 0-6 o'clock) of the previous day can be calculated.

[0047] Furthermore, the changes between dynamic time warping features can also be calculated. Specifically, the dynamic time warping features respectively calculated for the motion data collected in any two total time periods can be used to calculate the change features between the dynamic time warping features.

[0048] For example, the DTW feature of the day calculated for the motion data collected on the day and the DTW feature of the previous day calculated for the motion data collected the previous day can be used to calculate the change feature between the DTW features, specifically, (DTW feature of the previous day - current DTW feature) / DTW feature of the previous day. The change feature can be used to describe the change status of the DTW feature of the object to be detected in a short period of time.

[0049] Step 103, detecting the disease state of the object to be detected according to the dynamic time warping characteristics and the preset disease detection model.

[0050] Specifically, the dynamic time warping features constructed in the above step 102 can be directly input into the disease detection model to output information on whether the object to be detected has a disease.

[0051] In other embodiments, in addition to the above-mentioned dynamic time warping features, the disease detection system also needs to combine other features. Specifically, it can also obtain the body temperature time series data of the object to be detected, and then detect the disease state of the object to be detected based on the dynamic time warping features, the body temperature time series data and the disease detection model. Specifically, the dynamic time warping features and the body temperature time series data are input into the disease detection model to output information on whether the object to be detected has the disease.

[0052] Among them, the body temperature time series data is used to describe the body temperature distribution of the object to be detected, and may include the body temperature information of the object to be detected at multiple times in a time period. In addition to the body temperature time series data, other disease-related features can also be obtained, such as the food intake time series data of the object to be detected, which is used to describe the food intake of the object to be detected at each time. Then, the disease detection model can combine the dynamic time regularization features, body temperature time series data, and food intake time series data, etc., and can output information on whether the object to be detected has a disease. In this way, by collecting the features of multiple dimensions of the object to be detected, it is more accurate to comprehensively locate whether the object to be detected has a disease.

[0053] In other embodiments, considering the training efficiency and accuracy of the disease detection model, the disease detection model can output an initial disease detection state of the object to be detected based only on the dynamic time warping characteristics; and then obtain the body temperature time series data of the object to be detected, and combine the initial disease detection state with the body temperature time series data to obtain the final disease state of the object to be detected.

[0054] For example, if the initial disease detection state indicates that the subject to be detected does not have a disease, and the body temperature time series data indicates that the subject to be detected has been at an abnormal temperature (including extremely high or extremely low temperature) for a period of time, the final disease state of the subject to be detected is that the subject has a disease. Only when the initial disease detection state and the body temperature time series data both indicate that the subject to be detected is in a normal state, the final disease state of the subject to be detected is a state of not having a disease.

[0055] In addition to the body temperature time series data, the disease detection system can also obtain the food intake time series data of the object to be detected. In this way, the disease detection system will combine the initial disease detection status with the body temperature time series data and the food intake time series data to obtain the final disease status of the object to be detected.

[0056] For example, the initial disease detection status indicates that the object to be detected does not have a disease, and the body temperature time series data indicates that the object to be detected has been at a normal temperature for a period of time, and the food intake time series data indicates that the food intake of the object to be detected is less than a certain threshold amount for a period of time. Then, the final disease status of the object to be detected is a disease warning status, so as to prompt the user to pay close attention to the object to be detected to avoid unexpected conditions.

[0057] Only when both the initial disease detection state and the body temperature time series data indicate that the subject to be detected is in a normal state, and the food intake time series data indicates that the subject to be detected eats normally, the final disease state of the subject to be detected is a state without disease. In other cases, for example, when either the initial disease detection state or the body temperature time series data indicates that the subject to be detected is not in a normal state, regardless of whether the food intake time series data indicates that the subject to be detected eats normally, the final disease state of the subject to be detected is a state with disease.

[0058] In this scenario, the disease status of the subject to be detected is mainly divided into: a state with a disease, a disease warning state, and a state without a disease, so as to more accurately monitor the actual disease status of the subject to be detected.

[0059] It can be seen that in the method of this embodiment, the disease detection system will construct a dynamic time warping feature based on the time series data of the amount of motion corresponding to the object to be detected in at least two total time periods, and then detect the disease state of the object to be detected based on the dynamic time warping feature and the preset disease detection model. Since the dynamic time warping feature can solve the time offset and synchronization problems between time series based on different motion data, and can effectively resist the interference of a small amount of noise and outliers, the disease state of the object to be detected based on the dynamic time warping feature detection is more accurate.

[0060] In a specific embodiment, the training of the disease detection model used in the above step 103 can be implemented according to the following supervised training method, as shown in the flowchart: Figure 3 As shown, including:

[0061] Step 201, determining an initial disease detection model.

[0062] It can be understood that when determining the initial model for disease detection, the disease detection system will determine the initial values ​​of the parameters in the multi-layer structure and each layer of the initial model for disease detection. The parameters of the initial model for disease detection refer to the fixed parameters used in the calculation process of each layer of the initial model for disease detection, which do not need to be assigned at any time, such as parameter scale, number of network layers, user vector length, weight value and other parameters.

[0063] The determined initial disease detection model may specifically include: a feature extraction module and a discrimination module, wherein the feature extraction module is used to extract dynamic time warping features constructed based on the motion time series data of the sample object, and the discrimination module is used to determine whether the sample object has a disease state based on the dynamic time warping features extracted by the feature extraction module. The discrimination module can output the probability that the sample object has a disease. If the probability is greater than a preset value, the sample image has a disease.

[0064] In the specific implementation process, the initial disease detection model can adopt classification models such as random forest model, logistic regression, extremely random tree, support vector machine, AdaBoost, Xgboost, LgbClassifier, CatBoost, KNN, MLP, etc.

[0065] Step 202: determine a training sample, wherein the training sample includes time series data of exercise amounts corresponding to a plurality of sample objects and a label indicating whether each sample object has a disease.

[0066] The time series data of the amount of exercise of each sample object may be the time series data of the amount of exercise of the sample object corresponding to at least two total time periods.

[0067] For example, for cattle in multiple farms, the time series data of the cattle's daily exercise volume in the previous 7 days (including the current day) and the labels of whether the cattle have any diseases are continuously obtained.

[0068] Step 203: The initial disease detection model determines the disease status of each sample object based on the dynamic time warping features constructed based on the time series data of the amount of exercise of each sample object.

[0069] Specifically, a dynamic time warping feature can be first constructed based on the time series data of the sample object's motion volume, and then the initial disease detection model can directly determine the disease status of the sample object based on the dynamic time warping feature.

[0070] In a specific embodiment, the above-mentioned training samples may also include at least one of the following information: body temperature time series data and food intake time series data, so that the initial disease detection model can determine the disease status of each sample object based on the dynamic time warping characteristics, body temperature time series data and / or food intake time series data.

[0071] Step 204, adjusting the initial disease detection model according to the disease state determined by the initial disease detection model and the state annotation of the corresponding sample object in the training sample to obtain a preset disease detection model.

[0072] Specifically, the disease detection system will first calculate the loss function related to the initial disease detection model based on the disease state determined by the initial disease detection model in the above step 203 and the state annotations in the training samples. The loss function is used to indicate the error between the disease state in each sample image determined by the initial disease detection model and the actual disease state in each sample image (obtained based on the state annotations in the training samples), such as the cross entropy loss function.

[0073] The training process of the disease detection model is to minimize the value of the above error. The training process continuously optimizes the parameter values ​​of the parameters in the initial disease detection model determined in the above step 201 through a series of mathematical optimization methods such as back propagation derivation and gradient descent, and minimizes the calculated value of the above loss function.

[0074] It should be noted that the above steps 203 to 204 are an adjustment of the parameter values ​​in the initial disease detection model based on the disease status of each sample object determined by the initial disease detection model. In actual applications, it is necessary to continuously loop through the above steps 203 to 204 until the adjustment of the parameter values ​​meets certain stop conditions.

[0075] Therefore, after executing steps 201 to 204 of the above embodiment, the disease detection model still needs to determine whether the current adjustment of the parameter value meets the preset stop condition. If it does, the process ends and the initial disease detection model after adjusting the parameter value in step 204 is used as the final trained disease detection model; if it does not, the initial disease detection model after adjusting the parameter value returns to execute steps 203 to 204, that is, a batch of training samples is changed and the parameter values ​​in the initial disease detection model are readjusted. The preset stop condition includes but is not limited to any one of the following conditions: the difference between the currently adjusted parameter value and the last adjusted parameter value is less than a threshold value, that is, the adjusted parameter value reaches convergence; and the number of parameter value adjustments is equal to the preset number of times, etc.

[0076] The disease detection method of the present invention is described below with a specific application example. In this embodiment, the disease detection method is specifically applied to the field of animal husbandry, such as breeding cattle and the like. Figure 4 As shown, the disease detection method of this embodiment includes the following steps:

[0077] Step 301 : Collect motion data of the object to be detected in a specific collection cycle within any total time period.

[0078] Specifically, a total time period can be set as one day, and the disease detection system collects raw data X according to a specific collection cycle, such as 10s. origanal ∈(N,T,D origanal ), N represents the number of livestock, T represents the time step, D origanal Represents the motion data at a certain moment (timestamp, x-axis, y-axis, z-axis), where the data of the three axes are specifically the data collected by the three-axis acceleration sensor. The data of the three axes can be calculated to obtain the motion characteristics, such as xyz=|x|+|y|+|z|, then the original data is converted into X new ∈(N,T,D new ), where D new Represents the motion characteristics at a certain moment (timestamp, xyz).

[0079] Since the specific acquisition period for collecting raw data is 10 seconds, it takes 10 seconds to obtain the above-mentioned motion data D new , then for a single livestock, 8640 pieces of movement data can be obtained in one day. Therefore, the disease detection system can first eliminate the movement data that is missing too much on a certain day (for example, more than 30% is missing), and use the average of N days of movement data to fill the gaps for the movement data that is missing less on a certain day.

[0080] Step 302, select multiple sub-time periods in any total time period, and aggregate the motion data in each sub-time period according to a specific aggregation period, obtain the aggregate features of the motion data of multiple aggregated time periods in each sub-time period, and combine the aggregate features of the motion data of multiple aggregated time periods corresponding to each sub-time period into the motion amount time series data corresponding to the total time period. In this way, the motion amount time series data corresponding to multiple total time periods can be obtained.

[0081] Specifically, the total time period (one day) can be divided into four sub-time periods, namely, the sub-time periods of 0-6 o'clock, 6-12 o'clock, 12-18 o'clock and 18-24 o'clock. The motion data of each sub-time period is aggregated according to 5 minutes (or 10 minutes, 20 minutes, 30 minutes, 40 minutes, 50 minutes, 60 minutes, 120 minutes) to obtain the aggregation characteristics of the motion data of each aggregation time period, such as mean, standard deviation (std), skewness, unbiased standard error (sem), etc.

[0082] Step 303: construct a dynamic time warping feature, namely, a DTW feature, based on the time series data of the amount of motion corresponding to the plurality of total time periods obtained above.

[0083] Specifically, the DTW feature between the motion feature of the object to be detected in any sub-time period of the day and the motion feature xyz of the same sub-time period of the previous 7 (or 3, 5, 6) days can be calculated, that is, the similarity of the related sequences of the motion feature of the livestock in the same sub-time period on different days can be counted, and then X can be obtained. feature ∈(N,D feature ), where D feature Indicates the number of DTW features.

[0084] For example, if the motion data of the following sub-time periods are aggregated with a feature aggregation period of 20 minutes: 0-6 o'clock, 6-12 o'clock, 12-18 o'clock and 18-24 o'clock, the DTW features of these four sub-time periods can be obtained, namely dtw_20min_mean_0_6, dtw_20min_mean_6_12, dtw_20min_mean_12_18, dtw_20min_mean_18_24. If the aggregation is performed with 8 feature aggregation periods respectively, and 4 aggregated features are obtained each time, the number of aggregated features corresponding to a total time period (such as a day) can be obtained. feature =8*4*4=128, and the corresponding DTW features obtained are also 128.

[0085] Furthermore, the initially obtained DTW features can be split again, and the DTW features calculated for the motion data collected in any two total time periods can be used to calculate the change features between the DTW features. For example, the change feature = (DTW feature of the previous day - current DTW feature) / DTW feature of the previous day. In this way, the number of DTW features that can be finally obtained is 128*2=256.

[0086] Step 304: Based on the DTW features constructed above and the preset disease detection model, the disease state of the object to be detected can be detected, as described in the above embodiment, which will not be described in detail here.

[0087] The following is another specific application example to illustrate the disease detection method in the present invention. The disease detection system in the embodiment of the present invention is mainly a distributed system 100, which may include a client 300 and multiple nodes 200 (any form of computing device in the access network, such as a server, a user terminal), and the client 300 and the node 200 are connected through network communication.

[0088] Take the distributed system as the blockchain system as an example, see Figure 5 This is an optional structural diagram of the distributed system 100 provided by the embodiment of the present invention applied to the blockchain system, which is formed by multiple nodes 200 (any form of computing devices in the access network, such as servers and user terminals) and clients 300, and a peer-to-peer (P2P) network is formed between the nodes. The P2P protocol is an application layer protocol running on the Transmission Control Protocol (TCP) protocol. In a distributed system, any machine such as a server or a terminal can join and become a node, and the node includes a hardware layer, an intermediate layer, an operating system layer, and an application layer.

[0089] See also Figure 5 The functions of each node in the blockchain system shown include:

[0090] 1) Routing: a basic function of a node, used to support communication between nodes.

[0091] In addition to the routing function, the node can also have the following functions:

[0092] 2) Applications, which are deployed in the blockchain to implement specific businesses according to actual business needs, record data related to the implementation of functions to form record data, carry digital signatures in the record data to indicate the source of the task data, and send the record data to other nodes in the blockchain system for other nodes to add the record data to the temporary block when they successfully verify the source and integrity of the record data.

[0093] For example, the business implemented by the application includes code to implement a disease detection function, which mainly includes:

[0094] Acquire the time series data of the amount of motion of the object to be detected corresponding to at least two total time periods; construct a dynamic time regularization feature based on the time series data of the amount of motion, and the dynamic time regularization feature is used to represent the similarity of the time series of the amount of motion between any two total time periods; detect the disease state of the object to be detected based on the dynamic time regularization feature and a preset disease detection model.

[0095] 3) Blockchain, including a series of blocks that are connected to each other in the order of their generation. Once a new block is added to the blockchain, it will not be removed. The block records the record data submitted by the nodes in the blockchain system.

[0096] See also Figure 6 An optional schematic diagram of the block structure provided by the embodiment of the present invention, each block includes the hash value of the transaction record stored in this block (the hash value of this block) and the hash value of the previous block, and each block is connected by the hash value to form a blockchain. In addition, the block can also include information such as the timestamp when the block was generated. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains relevant information for verifying the validity of its information (anti-counterfeiting) and generating the next block.

[0097] The present invention also provides a disease detection system, the structure diagram of which is shown in FIG. Figure 7 As shown, it may specifically include:

[0098] The time series acquisition unit 10 is used to acquire the time series data of the movement amount of the object to be detected corresponding to at least two total time periods.

[0099] The timing acquisition unit 10 is specifically used to select multiple sub-time periods in any total time period; in each sub-time period, the motion data of the object to be detected is collected according to a specific collection cycle, and the motion data collected in each sub-time period constitutes the motion amount timing data corresponding to the total time period.

[0100] Furthermore, the timing acquisition unit 10 is also used to: aggregate the motion data in each sub-time period according to a specific aggregation period to obtain aggregation features of the motion data of multiple aggregation time periods in each sub-time period; combine the aggregation features of the motion data of multiple aggregation time periods corresponding to each sub-time period into the motion amount timing data corresponding to the total time period; wherein the specific aggregation period is greater than the specific collection period.

[0101] The feature construction unit 11 is used to construct a dynamic time warping feature based on the motion time series data obtained by the time series acquisition unit 10, and the dynamic time warping feature is used to represent the similarity of the motion time series between any two total time periods.

[0102] The feature construction unit 11 is specifically used to calculate the dynamic time warping features between the motion data of any sub-time period within any total time period and the motion data of the same sub-time period within another total time period. It is also used to calculate the dynamic time warping features of the motion data collected in any two total time periods, and calculate the change features between the dynamic time warping features.

[0103] The detection unit 12 is used to detect the disease state of the object to be detected based on the dynamic time warping feature constructed by the feature construction unit 11 and the preset disease detection model.

[0104] The detection unit 12 is specifically used to obtain the body temperature time series data of the object to be detected; and detect the disease state of the object to be detected based on the dynamic time regularization characteristics, the body temperature time series data and a preset disease detection model.

[0105] Alternatively, the detection unit 12 is specifically used for the preset disease detection model to output the initial disease detection state of the object to be detected according to the dynamic time warping characteristics; obtain the body temperature time series data of the object to be detected, and obtain the final disease state of the object to be detected according to the body temperature time series data and the initial disease detection state.

[0106] Furthermore, the disease detection system in this embodiment may also include:

[0107] The training unit 13 is used to determine an initial disease detection model; determine a training sample, wherein the training sample includes time series data of motion amounts corresponding to a plurality of sample objects and a label indicating whether the sample objects have a disease status; the initial disease detection model is based on a dynamic time warping feature constructed based on the time series data of motion amounts of each sample object, and determines the disease status of each sample object; and adjusts the initial disease detection model according to the disease status determined by the initial disease detection model and the status label of the corresponding sample object in the training sample to obtain a preset disease detection model used by the detection unit 12.

[0108] It can be seen that the system in this embodiment will construct a dynamic time warping feature based on the time series data of the amount of motion corresponding to the object to be detected in at least two total time periods, and then detect the disease state of the object to be detected based on the dynamic time warping feature and the preset disease detection model. Since the dynamic time warping feature can solve the time offset and synchronization problems between time series based on different motion data, and can effectively resist the interference of a small amount of noise and outliers, the disease state of the object to be detected based on the dynamic time warping feature detection is more accurate.

[0109] The embodiment of the present invention further provides a terminal device, the structural diagram of which is shown in FIG. Figure 8As shown, the terminal device may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 20 (for example, one or more processors) and memory 21, and one or more storage media 22 (for example, one or more mass storage devices) storing application programs 221 or data 222. Among them, the memory 21 and the storage medium 22 can be short-term storage or permanent storage. The program stored in the storage medium 22 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the terminal device. Furthermore, the central processing unit 20 can be configured to communicate with the storage medium 22 to execute a series of instruction operations in the storage medium 22 on the terminal device.

[0110] Specifically, the application 221 stored in the storage medium 22 includes an application for disease detection, and the program may include the time series acquisition unit 10, the feature construction unit 11, the detection unit 12 and the training unit 13 in the above-mentioned disease detection system, which will not be described in detail here. Furthermore, the central processor 20 can be configured to communicate with the storage medium 22 and execute a series of operations corresponding to the application for disease detection stored in the storage medium 22 on the terminal device.

[0111] The terminal device may also include one or more power supplies 23, one or more wired or wireless network interfaces 24, one or more input and output interfaces 25, and / or one or more operating systems 223, such as Windows Server TM, Mac OS X TM, Unix TM, Linux TM, FreeBSD TM, etc.

[0112] The steps performed by the disease detection system in the above method embodiment can be based on the Figure 8 The structure of the terminal device shown.

[0113] Another aspect of the embodiments of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a plurality of computer programs, wherein the computer programs are suitable for being loaded by a processor and executing the disease detection method as performed by the above-mentioned disease detection system.

[0114] Another aspect of the embodiment of the present invention further provides a terminal device, including a processor and a memory;

[0115] The memory is used to store multiple computer programs, and the computer programs are used to be loaded by the processor and execute the disease detection method performed by the above-mentioned disease detection system; the processor is used to implement each computer program in the multiple computer programs.

[0116] A person skilled in the art may understand that all or part of the steps in the various methods of the above-mentioned embodiments may be completed by instructing the relevant hardware through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0117] The above is a detailed introduction to a disease detection method, system, storage medium and terminal device provided in an embodiment of the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A disease detection method, characterized in that: include: Obtaining time series data of the amount of movement of the object to be detected corresponding to at least two total time periods; Constructing a dynamic time warping feature according to the motion time series data, wherein the dynamic time warping feature is used to represent the similarity of the motion time series between any two total time periods; The disease state of the object to be detected is detected according to the dynamic time warping characteristics and a preset disease detection model.

2. The method according to claim 1, characterized in that The step of obtaining the time series data of the amount of movement of the object to be detected corresponding to at least two total time periods specifically includes: Select multiple sub-time periods within any total time period; In each sub-time period, the motion data of the object to be detected is collected according to a specific collection period, and the motion data collected in each sub-time period constitutes the motion amount time series data corresponding to the total time period.

3. The method according to claim 2, characterized in that After collecting the motion data of the object to be detected according to a specific collection cycle in each sub-time period, the method further includes: Aggregating the motion data in each sub-time period according to a specific aggregation period to obtain aggregation features of the motion data in multiple aggregation periods in each sub-time period; Combining the aggregate features of the motion data of the multiple aggregate time periods corresponding to each of the sub-time periods into the motion amount time series data corresponding to the total time period; The specific aggregation period is greater than the specific collection period.

4. The method according to claim 2, characterized in that The step of constructing a dynamic time warping feature according to the motion time series data specifically includes: Calculate the dynamic time warping characteristics between the motion data of any sub-time period within any total time period and the motion data of the same sub-time period within another total time period.

5. The method according to claim 4, characterized in that The step of constructing a dynamic time warping feature according to the motion time series data further includes: The dynamic time warping features are calculated for the motion data collected in any two total time periods, and the change features between the dynamic time warping features are calculated.

6. The method according to any one of claims 1 to 5, characterized in that: The detecting the disease state of the subject to be detected according to the dynamic time warping feature and the preset disease detection model specifically includes: Acquiring time series data of body temperature of the object to be detected; The disease state of the object to be detected is detected based on the dynamic time regularization characteristics, body temperature time series data and a preset disease detection model.

7. The method according to any one of claims 1 to 5, characterized in that: The detecting the disease state of the subject to be detected according to the dynamic time warping feature and the preset disease detection model specifically includes: The preset disease detection model outputs the initial disease detection state of the object to be detected according to the dynamic time warping feature; The body temperature time series data of the object to be detected is obtained, and the final disease state of the object to be detected is obtained according to the body temperature time series data and the initial disease detection state.

8. The method according to any one of claims 1 to 5, characterized in that The method further comprises: Determine the initial model for disease detection; Determine a training sample, wherein the training sample includes time series data of exercise amounts corresponding to a plurality of sample objects and a label of whether the sample objects have a disease; The disease detection initial model is based on the dynamic time warping features constructed based on the time series data of the amount of exercise of each sample object, and determines the disease status of each sample object respectively; According to the disease state determined by the disease detection initial model and the state annotation of the corresponding sample object in the training sample, the disease detection initial model is adjusted to obtain the preset disease detection model.

9. A disease detection system, characterized in that: include: A time series acquisition unit, used to acquire time series data of the amount of motion of the object to be detected corresponding to at least two total time periods; A feature construction unit, used for constructing a dynamic time warping feature according to the motion time series data, wherein the dynamic time warping feature is used for representing the similarity of the motion time series between any two total time periods; The detection unit is used to detect the disease state of the object to be detected based on the dynamic time warping characteristics and a preset disease detection model.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of computer programs, and the computer programs are suitable for being loaded by a processor and executing the disease detection method according to any one of claims 1 to 8.

11. A terminal device, characterized in that: including a processor and a memory; The memory is used to store multiple computer programs, and the computer programs are used to be loaded by the processor and execute the disease detection method according to any one of claims 1 to 8; the processor is used to implement each computer program in the multiple computer programs.

Citation Information

Patent Citations

  • Supervisory system for disease prevention of pigs

    CN112568141A

  • Pig behavior rhythm analysis method based on intelligent ear tag exercise amount

    CN116034905A

  • Object monitoring method and system, storage medium and electronic equipment

    CN117668711A