CN114698564B - Ear tag state detection method and device, storage medium and electronic equipment - Google Patents

Ear tag state detection method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN114698564B
CN114698564B CN202210448160.7A CN202210448160A CN114698564B CN 114698564 B CN114698564 B CN 114698564B CN 202210448160 A CN202210448160 A CN 202210448160A CN 114698564 B CN114698564 B CN 114698564B
Authority
CN
China
Prior art keywords
state
ear tag
temperature
data
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210448160.7A
Other languages
Chinese (zh)
Other versions
CN114698564A (en
Inventor
邓银刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Zhongrong Digital Technology Co ltd
Original Assignee
Shenzhen Zhongrong Digital Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Zhongrong Digital Technology Co ltd filed Critical Shenzhen Zhongrong Digital Technology Co ltd
Priority to CN202210448160.7A priority Critical patent/CN114698564B/en
Publication of CN114698564A publication Critical patent/CN114698564A/en
Application granted granted Critical
Publication of CN114698564B publication Critical patent/CN114698564B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A01AGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTING; TRAPPING; FISHING
    • A01KANIMAL HUSBANDRY; AVICULTURE; APICULTURE; PISCICULTURE; FISHING; REARING OR BREEDING ANIMALS, NOT OTHERWISE PROVIDED FOR; NEW BREEDS OF ANIMALS
    • A01K11/00Marking of animals
    • A01K11/001Ear-tags
    • AHUMAN NECESSITIES
    • A01AGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTING; TRAPPING; FISHING
    • A01KANIMAL HUSBANDRY; AVICULTURE; APICULTURE; PISCICULTURE; FISHING; REARING OR BREEDING ANIMALS, NOT OTHERWISE PROVIDED FOR; NEW BREEDS OF ANIMALS
    • A01K29/00Other apparatus for animal husbandry
    • A01K29/005Monitoring or measuring activity, e.g. detecting heat or mating
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A40/00Adaptation technologies in agriculture, forestry, livestock or agroalimentary production
    • Y02A40/70Adaptation technologies in agriculture, forestry, livestock or agroalimentary production in livestock or poultry

Landscapes

  • Life Sciences & Earth Sciences (AREA)
  • Environmental Sciences (AREA)
  • Animal Husbandry (AREA)
  • Biodiversity & Conservation Biology (AREA)
  • Birds (AREA)
  • Zoology (AREA)
  • Biophysics (AREA)
  • Measuring And Recording Apparatus For Diagnosis (AREA)

Abstract

The application discloses a detection method, a detection device, a storage medium and electronic equipment for states of earmarks, wherein the detection method, the detection device, the storage medium and the electronic equipment are used for identifying numerical ranges corresponding to different types of state data acquired in different time intervals by acquiring the different types of state data acquired in different time intervals of an earmark, and determining the current state of the earmark according to the numerical ranges corresponding to the different types of state data acquired in the different time intervals. Therefore, the earmark state can be accurately detected, and the situation that the health condition of livestock is wrongly judged by a breeder due to inaccurate earmark state detection is reduced.

Description

Ear tag state detection method and device, storage medium and electronic equipment
Technical Field
The application relates to the field of livestock breeding, in particular to a method and a device for detecting an ear tag state, a storage medium and electronic equipment.
Background
With the continuous development of livestock raising industry and the improvement of food sanitation requirements of people, large livestock raising fields are continuously emerging. In the breeding of livestock, the health status of the livestock is a great concern for the breeder. At present, the livestock raising industry generally monitors the health condition of livestock by wearing earmarks for the livestock, so that a breeder can conveniently know the health condition of the livestock.
However, in the related art, when detecting the current state of the ear tag worn by the livestock, the detection accuracy is low, which greatly affects the accurate judgment of the livestock health condition of the breeder.
Disclosure of Invention
The embodiment of the application provides a method and a device for detecting an ear tag state, a storage medium and electronic equipment, and the ear tag state can be accurately detected.
In a first aspect, an embodiment of the present application provides a method for detecting an ear tag state, including:
acquiring different types of state data acquired by the ear tag in different time intervals;
identifying numerical ranges corresponding to the different types of state data acquired in different time intervals;
and determining the current state of the ear tag according to the numerical value range corresponding to the state data of different types acquired in different time intervals.
In a second aspect, an embodiment of the present application further provides a detection apparatus for an ear tag state, including:
the acquisition module is used for acquiring different types of state data acquired by the ear tag in different time intervals;
the identification module is used for identifying the numerical value range corresponding to the state data of different types acquired in different time intervals;
and the determining module is used for determining the current state of the ear tag according to the numerical value range corresponding to the state data of different types acquired in different time intervals.
In a third aspect, embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, which when run on a processor, causes the computer to perform a method for detecting an ear tag state as provided in any embodiment of the present application.
In a fourth aspect, an embodiment of the present application further provides an electronic device, including a processor and a memory, where the memory has a computer program, and the processor is configured to execute the method for detecting the ear tag state provided in any embodiment of the present application by calling the computer program.
According to the technical scheme, the state data of different types collected by the earmark in different time intervals can be obtained, the numerical range corresponding to the state data of different types collected in different time intervals is identified, and the current state of the earmark is determined according to the numerical range corresponding to the state data of different types collected in different time intervals. Therefore, the earmark state can be accurately detected, and the situation that the health condition of livestock is wrongly judged by a breeder due to inaccurate earmark state detection is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is an application scenario schematic diagram of a method for detecting an ear tag state according to an embodiment of the present application.
Fig. 2 is a schematic flow chart of a first method for detecting an ear tag state according to an embodiment of the present application.
Fig. 3 is a second flowchart of a method for detecting an ear tag state according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a detection device for ear tag status according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 6 is a schematic diagram of a second structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by a person skilled in the art without any inventive effort, are intended to be within the scope of the present application based on the embodiments herein.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The implementation main body of the method for detecting the ear tag state may be the device for detecting the ear tag state provided in the embodiment of the present application, or an electronic device integrated with the device for detecting the ear tag state, where the device for detecting the ear tag state may be implemented in a hardware or software manner. The electronic device may be a smart phone, a tablet computer, a palm computer, a notebook computer, or a desktop computer.
For example, the detection device for the ear tag state is specifically integrated in a smart phone or a notebook computer. Referring to fig. 1, the smart phone or the notebook computer may acquire different types of state data acquired by the ear tag in different time intervals, identify a numerical range corresponding to the different types of state data acquired in the different time intervals, and determine a current state of the ear tag according to the numerical range corresponding to the different types of state data acquired in the different time intervals. The intelligent mobile phone or the notebook computer can acquire the state data acquired by the ear tag from the server based on the communication link, the server can collect the state data acquired by the ear tag, and the server can collect information acquired by various environmental sensors arranged in the farm, identity information of various livestock and the like. Therefore, the earmark state can be accurately detected, and the situation that the health condition of livestock is wrongly judged by a breeder due to inaccurate earmark state detection is reduced.
The following will describe in detail. It should be noted that the following description of the embodiments is not intended to limit the preferred sequence of the embodiments.
Referring to fig. 2, fig. 2 is a first flowchart of a method for detecting an ear tag state according to an embodiment of the present application. The specific flow of the method for detecting the ear tag state provided by the embodiment of the application may be as follows:
101. different types of state data acquired by the ear tag in different time intervals are acquired.
With the continuous development of livestock raising industry and the improvement of food sanitation requirements of people, large livestock raising fields are continuously emerging. In the breeding of livestock, the health status of the livestock is a great concern for the breeder. At present, the livestock raising industry generally monitors the health condition of livestock by wearing earmarks for the livestock, so that a breeder can conveniently know the health condition of the livestock.
However, in the related art, when detecting the current state of the ear tag worn by the livestock, the detection accuracy is low, which greatly affects the accurate judgment of the livestock health condition of the breeder.
In this embodiment of the present application, the status data includes different types, and the status data includes a series of different types of status data such as ambient environmental data of livestock life and livestock physiological indexes, for example, the status data may be data such as temperature status data and movement status data. In particular, the motion state data may include position, displacement, velocity, acceleration, vibration displacement, amplitude, wave propagation, etc. data that may be characteristic of the motion. It should be noted that the temperature state data and the movement state data mentioned in the present application are in terms of livestock.
For example, referring to fig. 1, the electronic device may acquire the state data acquired by the ear tag, or may acquire the state data acquired by the ear tag based on the server, and then the electronic device indirectly acquires the state data acquired by the ear tag by acquiring the state data acquired by the server.
It can be understood that the time information of acquiring a certain state data can be recorded while the state data is acquired by the ear tag. Accordingly, corresponding state data in different time intervals can be acquired according to the time information.
In addition, when the ear tag collects the state data, the ear tag can be set to collect the state data once every a first fixed time length, the state data is uploaded to the server, and the electronic equipment acquires the state data from the server, so that the current state of the ear tag is detected. Specifically, when the state data is uploaded to the server, the state data may be uploaded to the base station and then uploaded to the server through the base station. The first fixed duration may be 1 minute, 2 minutes, etc., and may be set by those skilled in the art according to actual needs.
102. A range of values corresponding to different types of state data acquired at different time intervals is identified.
For example, the data type of the state data may be a temperature state data type or a motion state data type.
When the numerical range of the temperature state data is identified, the numerical range of the temperature state data is a range of values of the collected temperature state data, and may be, for example, 20 degrees to 25 degrees, 30 degrees to 32 degrees, or the like.
When the numerical range of the motion state data is identified, for example, the specific motion state data may be acceleration data, for example, a triaxial acceleration motion sensor may be set on the ear tag, and then the sum of absolute values of accelerations in triaxial directions is taken as a reference value of the motion amount, where the numerical range of the motion state data is the acquired range of the reference value, for example, may be 0-100, 20-250, and the like.
103. And determining the current state of the ear tag according to the numerical value range corresponding to the state data of different types acquired in different time intervals.
The current state of the ear tag may include an unread data state, a damaged state, an unworn state, and a dropped state, among others. Specifically, the unread data state is that state data is not acquired, that is, no data is uploaded to the server; the damaged state is that the value of the acquired state data is abnormal, for example, the value of the temperature state data is abnormal, and a temperature sensor arranged in the ear tag is damaged under the condition; also for example, the value of the movement state data is abnormal, in which case the movement sensor provided in the ear tag is damaged.
For example, when the temperature state data detected by the temperature sensor is within the range of-20 ℃ to 44 ℃, the temperature sensor is indicated to be in normal operation, and when the temperature state data detected by the temperature sensor is not within the range, the temperature sensor is indicated to be damaged. Under the condition that the temperature sensor is damaged, filling a default value when the temperature state data cannot be read, for example, the default value is-100 ℃, and a numerical value can be selected outside the range of-20 ℃ to 44 ℃ to set the default value.
In detecting the ear tag states, the amount of data required for detection of each ear tag state is different.
For example, when the motion sensor provided in the ear tag is in a damaged state, the detected state data should be that the temperature state data is normal and the motion state data is all zero, but in the case that the motion state data is all zero, it is possible that the livestock is sleeping, and therefore, it is necessary to obtain motion state data for a long time to determine the detected state of the ear tag.
For another example, when the ear tag is detached, the time duration of the eartag detachment process is longer in some cases, the value of the temperature state data detected by the temperature sensor provided in the ear tag is suddenly reduced to the ambient temperature in a short time (typically within 20 minutes, and in most cases, within two to three minutes), and then the value of the motion state data detected by the motion sensor provided in the ear tag is gradually reduced until no.
Therefore, a sufficient amount of data needs to be obtained to ensure that the detection of the current state of the ear tag is more accurate, so that the detection of the current state of the ear tag can be performed according to the state data in different time intervals.
In one embodiment, the electronic device may be configured to detect the current state of the ear tag once every second fixed duration, and update the current state of the ear tag according to the detected ear tag state result. The second fixed duration may be half an hour, one hour, twelve hours, etc., and may be set by those skilled in the art according to actual needs.
In particular, the present application is not limited by the order of execution of the steps described, and certain steps may be performed in other orders or concurrently without conflict.
As can be seen from the above, according to the method for detecting the state of the ear tag provided by the present application, by acquiring different types of state data of the ear tag acquired in different time intervals, the numerical ranges corresponding to the different types of state data acquired in the different time intervals are identified, and the current state of the ear tag is determined according to the numerical ranges corresponding to the different types of state data acquired in the different time intervals. Therefore, the earmark state can be accurately detected, and the situation that the health condition of livestock is wrongly judged by a breeder due to inaccurate earmark state detection is reduced.
The method described in the previous examples is described in further detail below by way of example.
Referring to fig. 3, fig. 3 is a second flow chart of a method for detecting an ear tag state according to an embodiment of the present application. The method comprises the following steps:
201. and acquiring temperature state data and motion state data acquired by the ear tag in different time intervals.
In this embodiment of the present application, the status data includes different types, and the status data includes a series of different types of status data such as ambient environmental data of livestock life and livestock physiological indexes, for example, the status data may be data such as temperature status data and movement status data.
In particular, the motion state data may include position, displacement, velocity, acceleration, vibration displacement, amplitude, wave propagation, etc. data that may be characteristic of the motion. It should be noted that the temperature state data and the movement state data mentioned in the present application are in terms of livestock.
In the embodiment of the application, when the ear tag collects the state data, the ear tag can be set to collect the state data once every a first fixed time length, the state data and the time stamp for collecting the state data are uploaded to the server, and the electronic device acquires the state data from the server, so that the current state of the ear tag is detected. Specifically, when the state data is uploaded to the server, the state data may be uploaded to the base station and then uploaded to the server through the base station. The first fixed duration may be 1 minute, 2 minutes, etc., and may be set by those skilled in the art according to actual needs. The electronic device may obtain temperature state data and motion state data for different time intervals from the server according to the time stamps of the state data.
In addition, the server in the application can use distributed data acquisition when acquiring the state data. For example, the required data amount is 24 hours of state data, the latest state data can be acquired every half hour, the oldest half hour data is removed, and the data amount is ensured to be the data in a fixed duration. The distributed data acquisition can avoid repeated acquisition of data and improve the data acquisition efficiency.
In one embodiment, before acquiring the different types of state data acquired by the ear tag at different time intervals, the method further comprises: inquiring whether the ear tag collects state data or not; if yes, acquiring different types of state data acquired by the ear tag in different time intervals; if not, determining the current state of the ear tag as the unread data state.
202. A range of values corresponding to the temperature state data and the motion state data acquired at different time intervals is identified.
For example, the time interval may be a time interval selected a certain time before the current time, a numerical range corresponding to a value of the temperature state data collected by the ear tag in the time interval is identified, and a numerical range corresponding to a value of the motion state data collected by the ear tag in the time interval is identified.
For example, the current time is 10 a.m., and the time period 2 hours before the current time is 8 a.m. to 10 a.m. time period.
203. And determining the current state of the ear tag according to the numerical ranges corresponding to the temperature state data and the motion state data acquired in different time intervals.
Specifically, the process of determining the ear tag status may be as follows:
s110, acquiring first temperature state data acquired in a first time before the current moment;
for example, the first duration may be 30 minutes, i.e. the temperature state data acquired within 30 minutes before the current time is acquired as the first temperature state data.
S120, detecting whether the numerical range of the first temperature state data meets a preset numerical range or not;
for example, the preset value range may be set to-20 degrees celsius to 44 degrees celsius. It should be noted that the preset numerical range is an empirical value summarized according to an actual application scenario, for example, the preset numerical range may be obtained by collecting and summarizing temperatures of a farm by a breeder. For example, the range of the environmental temperature data collected by the environmental temperature sensor and the temperature state data collected by the ear tag in the farm is between-20 ℃ and 44 ℃, which means that the temperature range belongs to the normal temperature range which can be collected by the temperature sensor, and the preset value range can be set to be between-20 ℃ and 44 ℃.
And S130, if yes, acquiring first motion state data acquired in a second time period before the current time, determining a first non-motion data duty ratio according to the first motion state data, and determining the current state of the ear tag according to the first non-motion data duty ratio.
For example, the second duration may be 2 hours, i.e. the motion state data acquired within 2 hours before the current time is acquired.
In one embodiment, when determining the first non-motion data duty ratio, the specific motion state data may be acceleration data, for example, a triaxial acceleration motion sensor may be disposed on the ear tag, and then the sum of absolute values of accelerations in triaxial directions is taken as the motion amount. And judging that the data with the motion quantity value smaller than the preset motion quantity value does not move, and otherwise, judging that the data has the motion. And determining the first non-moving data duty ratio according to the quantity of state data with the value of the movement quantity smaller than the preset movement quantity threshold value.
For example, when the ear tag collects motion state data every half an hour, five pieces of motion state data can be collected when the second time period is 2 hours, the motion values corresponding to the five pieces of motion state data can be 10, 16, 18, 20 and 22, and the first non-motion data is 20% when the preset motion quantity threshold value is 15.
The preset motion quantity threshold value is an empirical value summarized according to an actual application scene. For example, it is found through a test of hardware (triaxial acceleration motion sensor) that a small amount of motion magnitude lower than 15 is generated when the ear tag is in a stationary state, and thus it can be judged that no motion occurs for motion state data having a motion magnitude lower than 15.
In one embodiment, S130 includes:
s1310, detecting whether the first motionless data duty ratio is larger than a first preset duty ratio;
for example, the first preset duty cycle may be 80%, i.e. it is detected if the first motionless data duty cycle is greater than 80%.
It will be appreciated that when the first non-moving data is greater than 80%, this indicates very little movement during this second period of time.
S1320, if so, acquiring second temperature state data acquired in a third time period before the current time, acquiring third temperature state data acquired in a fifth time period before a fourth time period before the current time, and acquiring first environment temperature data acquired in a sixth time period before the current time; determining a first temperature change amount and a second temperature change amount according to the second temperature state data, and determining a first earmark falling threshold according to the third temperature state data and the first environment temperature data; and determining the current state of the earmark according to the first variation, the first earmark falling threshold and the second temperature variation.
For example, the third duration may be 6 hours, the fourth duration may be 24 hours, the fifth duration may be 2 hours, and the sixth duration may be 2 hours, that is, the temperature state data collected in 6 hours before the current time is obtained as the second temperature state data, the temperature state data collected in 24 hours before the current time and 2 hours before the current time is removed is obtained as the third temperature state data, where the purpose of removing the data is to avoid the influence of the temperature state data collected by the earmark after removal on the normal temperature state data collected by the earmark when the earmark is not removed yet, and the environmental temperature data collected in 2 hours before the current time is obtained as the first environmental temperature data.
The environment temperature data can be collected by an environment temperature sensor arranged in a livestock farm, and the collected environment temperature data is uploaded to a server by the environment temperature sensor, so that the electronic equipment can conveniently obtain the environment temperature data.
In one embodiment, the determining the first temperature change amount according to the second temperature state data may be: dividing a time interval in a third duration into a plurality of time subintervals, determining a first maximum temperature difference value in each time subinterval according to second temperature state data acquired in each time subinterval, and selecting the maximum first maximum temperature difference value from the plurality of first maximum temperature difference values as a first temperature change amount.
For example, if the third duration is 6 hours, the temperature state data acquired within 6 hours before the current time is acquired as the second temperature state data, the second temperature state data acquired within 6 hours may be divided into a plurality of time subintervals with duration of 20 minutes, then the first maximum temperature difference value of the values of the second temperature state data acquired in each time subinterval is calculated, and then the maximum first temperature maximum difference value is selected from the first maximum temperature difference values as the first temperature variation.
In one embodiment, the determining the second temperature change amount according to the second temperature state data may be:
and acquiring a second maximum temperature difference value of two adjacent pieces of second temperature state data acquired in a third time period, and taking the largest second maximum temperature difference value as a second temperature variation.
For example, if the third duration is 6 hours, the temperature state data acquired within 6 hours before the current time is acquired as the second temperature state data, then a second maximum temperature difference value between adjacent third temperature state data within 6 hours is acquired, and the largest second maximum temperature difference value is taken as the second temperature variation.
It is understood that the time point at which the temperature state data is abrupt may be determined according to the second temperature variation amount.
In one embodiment, when determining the first ear tag detachment threshold value according to the third temperature status data and the first ambient temperature data, it may be: and calculating an average value of the third temperature state data, taking the average value as a first ear tag temperature average value, calculating an average value of the environmental temperature data, taking the average value of the first ear tag temperature as the first environmental temperature average value, and taking the difference value between the average value of the first ear tag temperature and the average value of the first environmental temperature as a first ear tag falling threshold value.
For example, the fourth duration may be 24 hours, the fifth duration may be 2 hours, and the sixth duration may be 2 hours, then the temperature state data collected within 24 hours before the current time and within 2 hours before the current time are removed to obtain the third temperature state data, the ambient temperature data collected within 2 hours before the current time is obtained to obtain the first ambient temperature data, then an average value of the third temperature data is calculated to obtain the first ear tag temperature average value, an average value of the ambient temperature data is calculated to obtain the first ambient temperature average value, and a difference value between the first ear tag temperature average value and the first ambient temperature average value is used to obtain the first ear tag falling threshold.
In one embodiment, S1320 includes:
S13210, detecting whether the first temperature variation is larger than a first earmark falling threshold value and whether the second temperature variation is larger than a first preset temperature threshold value;
s13220, if yes, determining that the current state of the ear tag is a falling state;
that is, when the first temperature variation is greater than the first ear tag falling threshold and the second temperature variation is greater than the first preset temperature threshold, determining that the current state of the ear tag is the falling state.
The first preset temperature threshold is an empirical value summarized according to an actual application scenario, for example, may be 1.25.
In one embodiment, after determining that the current state of the ear tag is the falling state, the method may further perform correction processing on the falling state of the ear tag, and specifically may include the following procedures:
(1) Acquiring the work and rest habits of livestock wearing the ear tag;
in order to avoid the influence of certain noise data, when the falling state of the ear tag is corrected, state data of the livestock in the activity time needs to be acquired, for example, erroneous judgment caused by long-time no movement data caused by the sleeping of the livestock is avoided.
For example, the work habit may be a sleeping habit of livestock.
(2) Determining a target correction time interval according to the work and rest habits, wherein the target correction time interval is positioned after the current state of the earmark is determined to be a falling state;
It will be appreciated that the target modification time interval is selected from the animal's activity time.
(3) Acquiring second motion state data acquired in a target correction time interval;
for example, if the current time is 16 pm and the state of the ear tag is judged to be the falling state, the time is 14 pm of the previous day, the target correction time interval can be 11 pm to 15 pm of today, and the movement state data collected by the ear tag in 11 pm to 15 pm of today is the second movement state data.
(4) Determining a second motionless data duty cycle from the second operational state data;
for example, the motion state data may be acceleration data, and the second non-motion data duty ratio may be a duty ratio obtained when the preset motion amount threshold is 15, and the foregoing description has already described the calculation method of the non-motion data duty ratio, which is not described herein again.
(5) And correcting the falling state of the ear tag according to the second non-moving data duty ratio.
Specifically, if the second non-moving data duty ratio is greater than a second preset duty ratio, determining that the current state of the ear tag is a falling state; and if the second non-moving data duty ratio is not greater than the second preset duty ratio, determining that the current state of the ear tag is the wearing state.
The second preset duty ratio is an empirical value summarized according to an actual application scenario, for example, may be 0.83.
S13220, if not, acquiring third motion state data acquired in a seventh time period before the current time, wherein the seventh time period is longer than the second time period, acquiring fourth temperature state data acquired in an eighth time period before the current time, and acquiring second environment temperature data acquired in the eighth time period before the current time; determining a third non-moving data duty ratio according to the third moving state data, and determining an ear tag falling threshold according to the fourth temperature data and the second environment temperature data; and determining the current state of the earmark according to the third non-motion data duty ratio and the second earmark falling threshold value.
For example, the seventh duration may be 24 hours, and the eighth duration may be 2 hours, i.e., acquiring third motion state data acquired within 24 hours prior to the current time and acquiring fourth temperature state data acquired within 2 hours prior to the current time.
In an embodiment, the third non-moving data duty ratio may be a duty ratio obtained when the preset motion amount threshold is 15, and the foregoing describes a method for calculating the non-moving data duty ratio, which is not described herein.
In one embodiment, determining the ear tag detachment threshold from the fourth temperature data and the second ambient temperature data may be: and calculating an average value of the fourth temperature state data, taking the average value as a second ear tag temperature average value, calculating an average value of the second environment temperature data, taking the average value of the second ear tag temperature as a second environment temperature average value, and taking the difference value between the average value of the second ear tag temperature and the average value of the second environment temperature as a second ear tag falling threshold value.
In one embodiment, S13220 includes:
s132210, detecting whether the third non-moving data duty ratio is larger than a third preset duty ratio and whether the second ear tag falling threshold is smaller than a second preset temperature threshold;
the third preset duty ratio is an empirical value summarized according to an actual application scenario, for example, may be 0.9.
And S132220, if so, determining that the current state of the ear tag is an unworn state.
That is, when the third non-moving data duty ratio is greater than the third preset duty ratio and the second ear tag falling threshold is less than the second preset temperature threshold, determining that the current state of the ear tag is the non-wearing state.
S132230, if not, acquiring fourth motion state data acquired in a ninth time period before the current moment; determining a fourth non-motion data duty cycle from the fourth motion state data; and determining the current state of the ear tag according to the fourth non-moving data duty ratio.
For example, the ninth duration may be 24 hours, that is, fourth motion data acquired within 24 hours before the current time is acquired, a fourth non-motion data duty ratio is determined according to the fourth motion data, and then the current state of the ear tag is determined according to the fourth non-motion data duty ratio. For example, the fourth non-moving data duty cycle may be a duty cycle that is derived when the preset motion amount threshold is 0, it being understood that no motion occurs when the motion amount is zero.
In one embodiment, S132230 includes:
s1322310, detecting whether the fourth non-motion data duty ratio is larger than a fourth preset duty ratio;
the fourth preset duty ratio is an empirical value summarized according to an actual application scenario, for example, may be 0.95.
S1322320, if yes, determining that the current state of the ear tag is a damaged state;
it can be understood that, since the motion values collected by the ear tag in the ninth time period are almost zero, it can be determined that the motion sensor provided in the ear tag is damaged, that is, the ear tag is in a damaged state.
And S1322330, if not, determining that the current state of the ear tag is a wearing state.
S1330, if not, acquiring fifth motion state data acquired in a tenth time period before the current time, wherein the tenth time period is longer than the second time period; determining a fifth non-motion data duty cycle from the fifth motion state data; and determining the current state of the ear tag according to the fifth motionless data duty ratio.
For example, the tenth time period may be 24 hours, i.e. the fifth motion state data acquired within 24 hours before the current time is acquired. The fifth non-moving data duty ratio may be a duty ratio obtained when the preset motion threshold is 15, and the foregoing describes a method for calculating the non-moving data duty ratio, which is not described herein.
In one embodiment, S1330 includes:
s13310, detecting whether the fifth non-motion data duty ratio is larger than a fifth preset duty ratio;
the fifth preset duty ratio is an empirical value summarized according to an actual application scenario, for example, may be 0.9.
S13320, if yes, determining that the current state of the ear tag is a wearing state;
s13330, if not, determining that the current state of the ear tag is an unworn state.
And S140, if not, determining that the current state of the ear tag is a damaged state.
It should be noted that, parameters related in the embodiments of the present application, such as a duration parameter, a duty ratio parameter, a threshold parameter, and the like, may be all modeled by machine learning to train an optimal value, so as to further improve accuracy of state detection of the ear tag.
It can be understood that, since the numerical range of the first temperature state data does not satisfy the preset numerical range, it is indicated that the temperature state data is abnormal in detection, and it can be determined that the temperature sensor set in the ear tag is damaged, that is, the ear tag is in a damaged state.
As can be seen from the above, according to the method for detecting the state of the ear tag provided by the embodiment of the present application, by acquiring different types of state data acquired by the ear tag in different time intervals, identifying the numerical ranges corresponding to the different types of state data acquired in the different time intervals, and determining the current state of the ear tag according to the numerical ranges corresponding to the different types of state data acquired in the different time intervals. Therefore, the earmark state can be accurately detected, and the situation that the health condition of livestock is wrongly judged by a breeder due to inaccurate earmark state detection is reduced.
In an embodiment, a device for detecting the state of the ear tag is also provided. Referring to fig. 4, fig. 4 is a schematic structural diagram of an ear tag state detection apparatus 300 according to an embodiment of the present application. The device 300 for detecting the ear tag state is applied to an electronic device, and the device 300 for detecting the ear tag state includes an acquisition module 301, an identification module 302, and a determination module 303, as follows:
the acquiring module 301 is configured to acquire different types of state data acquired by the ear tag in different time intervals;
the identifying module 302 is configured to identify a numerical range corresponding to different types of status data collected in different time intervals;
The determining module 303 is configured to determine a current state of the ear tag according to a range of values corresponding to different types of state data collected in different time intervals.
In one embodiment, the status data includes temperature status data and motion status data, and the determining module 303 may be configured to: acquiring first temperature state data acquired in a first time before the current time; detecting whether the numerical range of the first temperature state data meets a preset numerical range or not; if yes, acquiring first motion state data acquired in a second time before the current time; determining a first motionless data duty cycle from the first motion state data; and determining the current state of the ear tag according to the first motionless data duty ratio.
In one embodiment, when determining the current state of the ear tag according to the first motionless data duty cycle, the determining module 303 may be configured to: detecting whether the first motionless data duty cycle is greater than a first preset duty cycle; if yes, acquiring second temperature state data acquired in a third time period before the current time, acquiring third temperature state data acquired in a fifth time period before a fourth time period before the current time, and acquiring first environment temperature data acquired in a sixth time period before the current time; dividing a time interval in the third duration into a plurality of time sub-intervals; determining a first maximum temperature difference value in each time subinterval according to the second temperature state data acquired in each time subinterval; selecting a maximum first maximum temperature difference value from a plurality of first maximum temperature difference values as a first temperature variation; calculating an average value of the third temperature state data as a first ear tag temperature average value; calculating an average value of the environmental temperature data as a first environmental temperature average value; taking the difference value between the first ear tag temperature average value and the first environment temperature average value as a first ear tag falling threshold value; acquiring a second maximum temperature difference value of two adjacent pieces of second temperature state data acquired in a third time period, and taking the maximum second maximum temperature difference value as a second temperature variation; and determining the current state of the earmark according to the first variation, the first earmark falling threshold and the second temperature variation.
In one embodiment, when determining the current state of the ear tag according to the first variation, the first ear tag drop threshold, and the second temperature variation, the determining module 303 may be configured to: detecting whether the first temperature variation is larger than a first ear tag falling threshold value and whether the second temperature variation is larger than a first preset temperature threshold value; if yes, determining that the current state of the ear tag is a falling state.
In one embodiment, after determining that the current state of the ear tag is the detached state, the determining module 303 may be further configured to: acquiring the work and rest habits of livestock wearing the ear tag; determining a target correction time interval according to the work and rest habits, wherein the target correction time interval is positioned after the current state of the earmark is determined to be a falling state; acquiring second motion state data acquired in a target correction time interval; determining a second motionless data duty cycle from the second operational state data; and correcting the falling state of the ear tag according to the second non-moving data duty ratio.
In one embodiment, when the falling state of the ear tag is corrected according to the second motionless data duty ratio, the determining module 303 may be configured to: if the second non-moving data duty ratio is larger than a second preset duty ratio, determining that the current state of the ear tag is a falling state; and if the second non-moving data duty ratio is not greater than the second preset duty ratio, determining that the current state of the ear tag is the wearing state.
In one embodiment, after detecting whether the first variation is greater than the first ear tag drop threshold and the second temperature variation is greater than the first preset temperature threshold, the determining module 303 may be further configured to: if not, acquiring third motion state data acquired in a seventh time period before the current time, wherein the seventh time period is longer than the second time period, acquiring fourth temperature state data acquired in an eighth time period before the current time, and acquiring second environment temperature data acquired in the eighth time period before the current time; determining a third non-motion data duty cycle from the third motion state data; calculating the average value of the fourth temperature state data as the average value of the second ear tag temperature; calculating an average value of the second environmental temperature data as a second environmental temperature average value; taking the difference value between the second ear tag temperature average value and the second environment temperature average value as a second ear tag falling threshold value; and determining the current state of the earmark according to the third non-motion data duty ratio and the second earmark falling threshold value.
In one embodiment, when determining the current state of the ear tag according to the second ear tag drop threshold and the third motionless data duty cycle, the determining module 303 may be configured to: detecting whether the third non-moving data duty ratio is larger than a third preset duty ratio and whether the second ear tag falling threshold value is smaller than a second preset temperature threshold value; if yes, determining that the current state of the ear tag is an unworn state.
In one embodiment, after detecting whether the third motionless data duty cycle is greater than the third preset duty cycle and the second ear tag-off threshold is less than the second preset temperature threshold, the determination module 303 may be further configured to: if not, acquiring fourth motion state data acquired in a ninth time before the current time; determining a fourth non-motion data duty cycle from the fourth motion state data; and determining the current state of the ear tag according to the fourth non-moving data duty ratio.
In one embodiment, when determining the current state of the ear tag according to the fourth motionless data duty cycle, the determining module 303 may be configured to: detecting whether the fourth non-moving data duty ratio is larger than a fourth preset duty ratio; if yes, determining the current state of the ear tag as a damaged state; if not, determining the current state of the ear tag as the wearing state.
In one embodiment, after detecting whether the first motionless data duty cycle is greater than the first preset duty cycle, the determining module 303 may be further configured to: if not, acquiring fifth motion state data acquired in a tenth time period before the current time, wherein the tenth time period is longer than the second time period; determining a fifth non-motion data duty cycle from the fifth motion state data; and determining the current state of the ear tag according to the fifth motionless data duty ratio.
In one embodiment, when determining the current state of the ear tag according to the fifth motionless data duty cycle, the determining module 303 may be configured to:
in one embodiment, detecting whether the fifth motionless data duty cycle is greater than a fifth preset duty cycle; if yes, determining the current state of the ear tag as a wearing state; if not, determining that the current state of the ear tag is an unworn state.
In one embodiment, the acquiring module 301 may be further configured to, prior to acquiring the different types of status data acquired by the ear tag during different time intervals: inquiring whether the ear tag collects state data or not; if yes, different types of state data acquired by the ear tag in different time intervals are acquired.
In one embodiment, after querying whether the tag has collected status data, the determining module 303 may be further configured to: if not, determining the current state of the ear tag as the unread data state.
It should be noted that, the detection device for the ear tag state provided in the embodiment of the present application and the detection method for the ear tag state in the above embodiment belong to the same concept, and any method provided in the embodiment of the detection method for the ear tag state may be implemented by using the detection device for the ear tag state, and detailed implementation processes of the method are shown in the embodiment of the detection method for the ear tag state, which is not repeated herein.
The embodiment of the application also provides electronic equipment. The electronic device may be a smart phone, tablet computer, etc. Referring to fig. 5, fig. 5 is a schematic diagram of a first structure of an electronic device according to an embodiment of the present application. The electronic device 400 comprises a processor 401 and a memory 402. The processor 401 is electrically connected to the memory 402.
The processor 401 is a control center of the electronic device 400, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or calling computer programs stored in the memory 402, and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device.
Memory 402 may be used to store computer programs and data. The memory 402 stores a computer program having instructions executable in a processor. The computer program may constitute various functional modules. The processor 401 executes various functional applications and data processing by calling a computer program stored in the memory 402.
In this embodiment, the processor 401 in the electronic device 400 loads the instructions corresponding to the processes of one or more computer programs into the memory 402 according to the following steps, and the processor 401 executes the computer programs stored in the memory 402, so as to implement various functions:
Acquiring different types of state data acquired by the ear tag in different time intervals;
identifying numerical ranges corresponding to different types of state data acquired in different time intervals;
and determining the current state of the ear tag according to the numerical value range corresponding to the state data of different types acquired in different time intervals.
In an implementation manner, referring to fig. 6, fig. 6 is a schematic diagram of a second structure of an electronic device according to an embodiment of the present application. The electronic device 400 further comprises: radio frequency circuit 403, display 404, control circuit 405, input unit 406, audio circuit 407, sensor 408, and power supply 409. The processor 401 is electrically connected to the radio frequency circuit 403, the display 404, the control circuit 405, the input unit 406, the audio circuit 407, the sensor 408, and the power supply 409, respectively.
The radio frequency circuit 403 is used to transmit and receive radio frequency signals to communicate with a network device or other electronic device through wireless communication.
The display 404 may be used to display information entered by a user or provided to a user as well as various graphical user interfaces of the electronic device, which may be composed of images, text, icons, video, and any combination thereof.
The control circuit 405 is electrically connected to the display screen 404, and is used for controlling the display screen 404 to display information.
The input unit 406 may be used to receive entered numbers, character information, or user characteristic information (e.g., fingerprints), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. The input unit 406 may include a fingerprint recognition module.
The audio circuit 407 may provide an audio interface between the user and the electronic device through a speaker, microphone. Wherein the audio circuit 407 comprises a microphone. The microphone is electrically connected to the processor 401. The microphone is used for receiving voice information input by a user.
The sensor 408 is used to collect external environmental information. The sensor 408 may include one or more of an ambient brightness sensor, an acceleration sensor, a gyroscope, and the like.
The power supply 409 is used to power the various components of the electronic device 400. In one embodiment, the power supply 409 may be logically connected to the processor 401 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through the power management system.
Although not shown in the drawings, the electronic device 400 may further include a camera, a bluetooth module, etc., which will not be described herein.
In this embodiment, the processor 401 in the electronic device 400 loads the instructions corresponding to the processes of one or more computer programs into the memory 402 according to the following steps, and the processor 401 executes the computer programs stored in the memory 402, so as to implement various functions:
acquiring different types of state data acquired by the ear tag in different time intervals;
identifying numerical ranges corresponding to different types of state data acquired in different time intervals;
and determining the current state of the ear tag according to the numerical value range corresponding to the state data of different types acquired in different time intervals.
In one embodiment, where the state data includes temperature state data and motion state data, the processor 401, when executing the determination of the current state of the ear tag from the range of values corresponding to the different types of state data collected during the different time intervals, may perform: acquiring first temperature state data acquired in a first time before the current time; detecting whether the numerical range of the first temperature state data meets a preset numerical range or not; if yes, acquiring first motion state data acquired in a second time before the current time; determining a first motionless data duty cycle from the first motion state data; and determining the current state of the ear tag according to the first motionless data duty ratio.
In one embodiment, the processor 401, when executing the determining the current state of the ear tag according to the first motionless data duty cycle, may execute: detecting whether the first motionless data duty cycle is greater than a first preset duty cycle; if yes, acquiring second temperature state data acquired in a third time period before the current time, acquiring third temperature state data acquired in a fifth time period before a fourth time period before the current time, and acquiring first environment temperature data acquired in a sixth time period before the current time; dividing a time interval in the third duration into a plurality of time sub-intervals; determining a first maximum temperature difference value in each time subinterval according to the second temperature state data acquired in each time subinterval; selecting a maximum first maximum temperature difference value from a plurality of first maximum temperature difference values as a first temperature variation; calculating an average value of the third temperature state data as a first ear tag temperature average value; calculating an average value of the environmental temperature data as a first environmental temperature average value; taking the difference value between the first ear tag temperature average value and the first environment temperature average value as a first ear tag falling threshold value; acquiring a second maximum temperature difference value of two adjacent pieces of second temperature state data acquired in a third time period, and taking the maximum second maximum temperature difference value as a second temperature variation; and determining the current state of the earmark according to the first variation, the first earmark falling threshold and the second temperature variation.
In one embodiment, the processor 401, when executing the determining the current state of the ear tag according to the first variation, the first ear tag drop threshold, and the second temperature variation, may execute: detecting whether the first temperature variation is larger than a first ear tag falling threshold value and whether the second temperature variation is larger than a first preset temperature threshold value; if yes, determining that the current state of the ear tag is a falling state.
In one embodiment, the processor 401 may further perform, after performing determining that the current state of the ear tag is the detached state: acquiring the work and rest habits of livestock wearing the ear tag; determining a target correction time interval according to the work and rest habits, wherein the target correction time interval is positioned after the current state of the earmark is determined to be a falling state; acquiring second motion state data acquired in a target correction time interval; determining a second motionless data duty cycle from the second operational state data; and correcting the falling state of the ear tag according to the second non-moving data duty ratio.
In one embodiment, the processor 401, when executing the correction of the drop-off state of the ear tag according to the second motionless data duty cycle, may execute: if the second non-moving data duty ratio is larger than a second preset duty ratio, determining that the current state of the ear tag is a falling state; and if the second non-moving data duty ratio is not greater than the second preset duty ratio, determining that the current state of the ear tag is the wearing state.
In one embodiment, the processor 401 may further perform, after performing detecting whether the first variation is greater than the first ear tag detachment threshold and whether the second temperature variation is greater than the first preset temperature threshold: if not, acquiring third motion state data acquired in a seventh time period before the current time, wherein the seventh time period is longer than the second time period, acquiring fourth temperature state data acquired in an eighth time period before the current time, and acquiring second environment temperature data acquired in the eighth time period before the current time; determining a third non-motion data duty cycle from the third motion state data; calculating the average value of the fourth temperature state data as the average value of the second ear tag temperature; calculating an average value of the second environmental temperature data as a second environmental temperature average value; taking the difference value between the second ear tag temperature average value and the second environment temperature average value as a second ear tag falling threshold value; and determining the current state of the earmark according to the third non-motion data duty ratio and the second earmark falling threshold value.
In one embodiment, the processor 401, when executing the determining the current state of the ear tag according to the second ear tag drop threshold and the third motionless data duty cycle, may execute: detecting whether the third non-moving data duty ratio is larger than a third preset duty ratio and whether the second ear tag falling threshold value is smaller than a second preset temperature threshold value; if yes, determining that the current state of the ear tag is an unworn state.
In one embodiment, the processor 401, after executing the detecting whether the third motionless data duty cycle is greater than a third preset duty cycle and the second ear tag-off threshold value is less than a second preset temperature threshold value, may further execute: if not, acquiring fourth motion state data acquired in a ninth time before the current time; determining a fourth non-motion data duty cycle from the fourth motion state data; and determining the current state of the ear tag according to the fourth non-moving data duty ratio.
In one embodiment, the processor 401, when executing the determining the current state of the ear tag according to the fourth motionless data duty cycle, may execute: detecting whether the fourth non-moving data duty ratio is larger than a fourth preset duty ratio; if yes, determining the current state of the ear tag as a damaged state; if not, determining the current state of the ear tag as the wearing state.
In one embodiment, the processor 401, after executing the detecting whether the first motionless data duty cycle is greater than a first preset duty cycle, may further execute: if not, acquiring fifth motion state data acquired in a tenth time period before the current time, wherein the tenth time period is longer than the second time period; determining a fifth non-motion data duty cycle from the fifth motion state data; and determining the current state of the ear tag according to the fifth motionless data duty ratio.
In one embodiment, the processor 401, when executing the determining the current state of the ear tag according to the fifth motionless data duty cycle, may execute: detecting whether the fifth motionless data duty cycle is greater than a fifth preset duty cycle; if yes, determining the current state of the ear tag as a wearing state; if not, determining that the current state of the ear tag is an unworn state.
In one embodiment, after performing the detection of whether the value range of the first temperature state data satisfies the preset value range, the processor 401 may perform: if not, determining the current state of the ear tag as a damaged state.
In one embodiment, the processor 401 may further perform, prior to performing acquiring the different types of state data acquired by the ear tag at different time intervals: inquiring whether the ear tag collects state data or not;
if yes, different types of state data acquired by the ear tag in different time intervals are acquired.
In one embodiment, the processor 401, after executing the query if the tag collects status data, may further execute: if not, determining the current state of the ear tag as the unread data state.
The embodiment of the application further provides a computer readable storage medium, in which a computer program is stored, and when the computer program runs on a processor, the computer executes the method for detecting the ear tag state according to any one of the embodiments.
It should be noted that, those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a computer program to instruct related hardware, and the computer program may be stored in a computer readable storage medium, where the storage medium may include, but is not limited to: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Furthermore, the terms "first," "second," and "third," and the like, herein, are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to the particular steps or modules listed and certain embodiments may include additional steps or modules not listed or inherent to such process, method, article, or apparatus.
The method, the device, the storage medium and the electronic equipment for detecting the ear tag state provided by the embodiment of the application are described in detail. The principles and embodiments of the present application are described herein with specific examples, the above examples being provided only to assist in understanding the methods of the present application and their core ideas; meanwhile, those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, and the present description should not be construed as limiting the present application in view of the above.

Claims (16)

1. The method for detecting the ear tag state is characterized by comprising the following steps of:
acquiring different types of state data acquired by the ear tag in different time intervals, wherein the state data comprises temperature state data and motion state data of livestock wearing the ear tag;
identifying numerical ranges corresponding to the different types of state data acquired in different time intervals;
acquiring first temperature state data acquired in a first time before the current time;
detecting whether the numerical range of the first temperature state data meets a preset numerical range or not;
if yes, acquiring first motion state data acquired in a second time before the current time;
determining a first motionless data duty cycle from the first motion state data;
detecting whether the first motionless data duty cycle is greater than a first preset duty cycle;
if yes, acquiring second temperature state data acquired in a third time period before the current time, acquiring third temperature state data acquired in a fifth time period before a fourth time period before the current time, and acquiring first environment temperature data acquired in a sixth time period before the current time;
dividing the time interval in the third duration into a plurality of time sub-intervals;
Determining a first maximum temperature difference value in each time subinterval according to the second temperature state data acquired in each time subinterval;
selecting the largest first maximum temperature difference value from a plurality of first maximum temperature difference values as a first temperature variation;
calculating the average value of the third temperature state data to be used as a first ear tag temperature average value;
calculating an average value of the environmental temperature data as a first environmental temperature average value;
taking the difference value between the first ear tag temperature average value and the first environment temperature average value as a first ear tag falling threshold value;
acquiring a second maximum temperature difference value of two adjacent pieces of second temperature state data acquired in the third time period, and taking the largest second maximum temperature difference value as a second temperature variation;
and determining the current state of the ear tag according to the first variation, the first ear tag falling threshold and the second temperature variation.
2. The method of detecting a state of an ear tag according to claim 1, wherein determining the current state of the ear tag according to the first variation, the first ear tag drop threshold, and the second temperature variation comprises:
Detecting whether the first temperature variation is larger than the first ear tag falling threshold value and whether the second temperature variation is larger than a first preset temperature threshold value;
if yes, determining that the current state of the ear tag is a falling state.
3. The method for detecting a state of an ear tag according to claim 2, further comprising, after determining that the current state of the ear tag is a detached state:
acquiring the work and rest habits of livestock wearing the ear tag;
determining a target correction time interval according to the work and rest habits, wherein the target correction time interval is positioned after determining that the current state of the ear tag is a falling state;
acquiring second motion state data acquired in the target correction time interval;
determining a second motionless data duty cycle from the second operational state data;
and correcting the falling state of the ear tag according to the second non-moving data duty ratio.
4. The method of claim 3, wherein correcting the dropped state of the tag according to the second non-moving data duty ratio comprises:
if the second motionless data duty ratio is larger than a second preset duty ratio, determining that the current state of the ear tag is a falling state;
And if the second non-moving data duty ratio is not larger than the second preset duty ratio, determining that the current state of the ear tag is a wearing state.
5. The method for detecting a state of an ear tag according to claim 2, further comprising, after detecting whether the first variation is greater than the first ear tag drop threshold and whether the second temperature variation is greater than a first preset temperature threshold:
if not, acquiring third motion state data acquired in a seventh time period before the current time, wherein the seventh time period is longer than the second time period, acquiring fourth temperature state data acquired in an eighth time period before the current time, and acquiring second environment temperature data acquired in the eighth time period before the current time;
determining a third non-motion data duty cycle from the third motion state data;
calculating the average value of the fourth temperature state data to be used as a second ear tag temperature average value;
calculating an average value of the second environmental temperature data as a second environmental temperature average value;
taking the difference value between the second ear tag temperature average value and the second environment temperature average value as a second ear tag falling threshold value;
And determining the current state of the earmark according to the third non-motion data duty ratio and the second earmark falling threshold value.
6. The method of claim 5, wherein the determining the current state of the ear tag according to the second ear tag drop threshold and the third non-moving data duty cycle comprises:
detecting whether the third non-moving data duty ratio is larger than a third preset duty ratio and whether the second ear tag falling threshold is smaller than a second preset temperature threshold;
if yes, determining that the current state of the ear tag is an unworn state.
7. The method of detecting an ear tag state according to claim 6, further comprising, after detecting whether the third non-moving data duty cycle is greater than a third preset duty cycle and the second ear tag drop threshold is less than a second preset temperature threshold:
if not, acquiring fourth motion state data acquired in a ninth time before the current time;
determining a fourth non-motion data duty cycle from the fourth motion state data;
and determining the current state of the ear tag according to the fourth non-motion data duty ratio.
8. The method of claim 7, wherein said determining the current state of the ear tag based on the fourth non-moving data duty cycle comprises:
Detecting whether the fourth non-moving data duty cycle is greater than a fourth preset duty cycle;
if yes, determining the current state of the ear tag as a damaged state;
if not, determining the current state of the ear tag as a wearing state.
9. The method of detecting an ear tag state according to claim 1, further comprising, after detecting whether the first motionless data duty cycle is greater than a first preset duty cycle:
if not, acquiring fifth motion state data acquired in a tenth time period before the current time, wherein the tenth time period is longer than the second time period;
determining a fifth non-motion data duty cycle from the fifth motion state data;
and determining the current state of the ear tag according to the fifth motionless data duty ratio.
10. The method of claim 9, wherein determining the current state of the ear tag according to the fifth motionless data duty cycle comprises:
detecting whether the fifth motionless data duty cycle is greater than a fifth preset duty cycle;
if yes, determining the current state of the ear tag as a wearing state;
if not, determining that the current state of the ear tag is an unworn state.
11. The method for detecting an ear tag state according to claim 1, further comprising, after detecting whether a numerical range of the first temperature state data satisfies a preset numerical range:
if not, determining the current state of the ear tag as a damaged state.
12. The method for detecting a state of an ear tag according to claim 1, further comprising, before acquiring different types of state data acquired by the ear tag at different time intervals:
inquiring whether the ear tag collects the state data or not;
if yes, different types of state data acquired by the ear tag in different time intervals are acquired.
13. The method for detecting a state of an ear tag according to claim 12, further comprising, after querying whether the ear tag has collected the state data:
if not, determining the current state of the ear tag as the unread data state.
14. An ear tag state detection apparatus, comprising:
the acquisition module is used for acquiring different types of state data acquired by the ear tag in different time intervals, wherein the state data comprise temperature state data and motion state data of livestock wearing the ear tag;
The identification module is used for identifying the numerical value range corresponding to the state data of different types acquired in different time intervals;
a determining module for
Acquiring first temperature state data acquired in a first time before the current time;
detecting whether the numerical range of the first temperature state data meets a preset numerical range or not;
if yes, acquiring first motion state data acquired in a second time before the current time;
determining a first motionless data duty cycle from the first motion state data;
detecting whether the first motionless data duty cycle is greater than a first preset duty cycle;
if yes, acquiring second temperature state data acquired in a third time period before the current time, acquiring third temperature state data acquired in a fifth time period before a fourth time period before the current time, and acquiring first environment temperature data acquired in a sixth time period before the current time;
dividing the time interval in the third duration into a plurality of time sub-intervals;
determining a first maximum temperature difference value in each time subinterval according to the second temperature state data acquired in each time subinterval;
Selecting the largest first maximum temperature difference value from a plurality of first maximum temperature difference values as a first temperature variation;
calculating the average value of the third temperature state data to be used as a first ear tag temperature average value;
calculating an average value of the environmental temperature data as a first environmental temperature average value;
taking the difference value between the first ear tag temperature average value and the first environment temperature average value as a first ear tag falling threshold value;
acquiring a second maximum temperature difference value of two adjacent pieces of second temperature state data acquired in the third time period, and taking the largest second maximum temperature difference value as a second temperature variation;
and determining the current state of the ear tag according to the first variation, the first ear tag falling threshold and the second temperature variation.
15. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when run on a processor, is caused to perform the method of detecting an ear tag state according to any one of claims 1 to 13.
16. An electronic device comprising a processor and a memory, the memory storing a computer program, characterized in that the processor is adapted to perform the method of detecting the status of an ear tag according to any of claims 1 to 13 by invoking the computer program.
CN202210448160.7A 2022-04-26 2022-04-26 Ear tag state detection method and device, storage medium and electronic equipment Active CN114698564B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210448160.7A CN114698564B (en) 2022-04-26 2022-04-26 Ear tag state detection method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210448160.7A CN114698564B (en) 2022-04-26 2022-04-26 Ear tag state detection method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN114698564A CN114698564A (en) 2022-07-05
CN114698564B true CN114698564B (en) 2023-07-07

Family

ID=82176919

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210448160.7A Active CN114698564B (en) 2022-04-26 2022-04-26 Ear tag state detection method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114698564B (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109168102A (en) * 2018-11-22 2019-01-08 歌尔科技有限公司 A kind of earphone wearing state detection method, device and earphone
CN111309161A (en) * 2020-01-20 2020-06-19 华为技术有限公司 Wearable device wearing state detection method and device and wearable device
CN111833557A (en) * 2020-07-27 2020-10-27 中国工商银行股份有限公司 Fault identification method and device
CN112528893A (en) * 2020-12-15 2021-03-19 南京中兴力维软件有限公司 Abnormal state identification method and device and computer readable storage medium
CN113057602B (en) * 2021-03-16 2022-08-26 歌尔科技有限公司 Wearing state detection method, device, equipment and storage medium
CN113596656A (en) * 2021-07-19 2021-11-02 Tcl通力电子(惠州)有限公司 Earphone state detection method, device, equipment and storage medium
CN113568812B (en) * 2021-07-29 2024-06-07 北京奇艺世纪科技有限公司 State detection method and device for intelligent robot
CN113705748A (en) * 2021-08-27 2021-11-26 刘纪荣 Equipment running state data processing method based on RFID identification

Also Published As

Publication number Publication date
CN114698564A (en) 2022-07-05

Similar Documents

Publication Publication Date Title
US10383322B2 (en) Fishing and sailing activity detection
CN110618933B (en) Performance analysis method and system, electronic device and storage medium
US20160091952A1 (en) Wearable Equipment and Mode Switching Method Using the Same
CN107368400B (en) CPU monitoring method and device, computer readable storage medium and mobile terminal
CN107526638B (en) Application processing method and device, mobile terminal and storage medium
CN108322601B (en) Reminding method and terminal
CN108108090B (en) Communication message reminding method and device
CN111798978A (en) User health assessment method and device, storage medium and electronic equipment
CN106913313B (en) Sleep monitoring method and system
CN110151136A (en) It has ready conditions with reference to heart rate sleep state monitoring method, device, equipment and medium
CN107832189B (en) Monitoring method of I/O system and mobile terminal
CN114282169A (en) Abnormal data detection method and related device
CN107526637B (en) Application processing method and device, mobile terminal and storage medium
CN112711516B (en) Data processing method and related device
CN114698564B (en) Ear tag state detection method and device, storage medium and electronic equipment
CN107992361B (en) Background application cleaning method and device, storage medium and electronic equipment
US20150220613A1 (en) Relationship estimation device and relationship estimation method
CN113055984B (en) Terminal control method and device, mobile terminal and storage medium
CN110275639B (en) Touch data processing method and device, terminal and storage medium
CN107688498B (en) Application program processing method and device, computer equipment and storage medium
KR20200031355A (en) Method for assessing and alerting workers on the effectiveness of their work at large scale
CN113918757A (en) Application recommendation method and device, electronic equipment and storage medium
CN113056756B (en) Sleep recognition method and device, storage medium and electronic equipment
CN114814767A (en) Information processing method and device, electronic equipment and storage medium
CN110517447B (en) Method for preventing user from falling during sleeping, wearable device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant