CALIBRATING A PLURALITY OF SENSORS IN A SYSTEM FOR OBTAINING ANIMAL DATA FROM A GROUP OF ANIMALS
20220283136 · 2022-09-08
Inventors
- Jorrit Hendrik Johan HAGEN (Hengelo, NL)
- Rudie Jan Hendrik LAMMERS (Eibergen, NL)
- Arnoldus Gerardus Franciscus HARBERS (Groenlo, NL)
Cpc classification
International classification
Abstract
A method of calibrating a sensors in a system for obtaining animal data from animals is described. The sensors are configured to obtain measurements of an animal related parameter during arbitrary visits by the animal to the sensors. For at least one of the animals, a first measurement associated with a first sensor of the sensors is obtained, and calculating one or more relations between the first measurement and one or more second measurements associated with the respective animal. Each of the second measurements is obtained using a further sensor, so as to obtain at least one representative relation for each combination of the first sensor and each one of the further sensors. The system calculates, based on the at least one representative relation, a correction factor associated with at least one sensor of the plurality of sensors.
Claims
1. A method for calibrating a plurality of sensors in a system for obtaining animal data from a group of animals, wherein the plurality of sensors are configured to obtain measurements of an animal related parameter, wherein for obtaining the measurements the system is configured for allowing each animal to arbitrary visit one of the sensors, and wherein the method comprises: obtaining, for at least one animal of the group of animals, a first measurement associated with a first sensor of the plurality of sensors; calculating one or more relations between the first measurement and one or more second measurements associated with the respective animal, wherein each of the second measurements is obtained using one of a further sensors of the plurality of sensors, wherein the one of the further sensors is different from the first sensor, so as to obtain at least one representative relation for each combination of the first sensor and each one of the further sensors; and calculate, based on the at least one representative relation, a correction parameter associated with at least one sensor of the plurality of sensors, for harmonizing an output signal of the at least one sensor with respect to output signals of one or more of the further sensors of the plurality of sensors.
2. The method according to claim 1, wherein the correction parameter is at least one of the group consisting of: a correction factor, and an offset.
3. The method according to claim 1, wherein the correction parameter is a correction factor, and wherein the calculating one or more relations comprises calculating one or more fractions between the first measurement and one or more second measurements, so as to obtain at least one representative fraction for each combination of the first sensor and each one of the further sensors.
4. The method according to claim 1, wherein the second measurements are obtained from a data repository containing measurement data of earlier measurements, wherein, in the measurement data, each measurement is associated with an animal identifier of an animal from the group of animals, and wherein, in the measurement data, each measurement is associated with a sensor identifier of the sensor with which the measurement has been obtained.
5. The method according to claim 1, wherein the first measurement is obtained by at least one of the group consisting of: obtaining the first measurement from a data repository containing measurement data of earlier measurements; and directly obtaining the first measurement from the first sensor.
6. The method according to claim 1, wherein the one or more second measurements include at least one of the group consisting of: at least one measurement from each of the sensors different from the first sensor; and a plurality of measurements from one or more of each of the further sensors, and wherein the calculating one or more relations is performed by calculating relations between the first measurement and a statistical representative value of the plurality of measurements for each of the further sensors.
7. The method according to claim 6, wherein the one or more second measurements include a plurality of measurements from one or more of the further sensors, wherein the calculating one or more relations is performed by calculating relations between the first measurement and a statistical representative value of the plurality of measurements for each of the one or more of the further sensors, and wherein the statistical representative value is at least one of: an average; a median value; a mode; or a percentile of the plurality of measurements of the further sensor.
8. The method according to claim 1, wherein for obtaining the at least one representative relation for each combination of the first sensor and each one of the further sensors, the method further comprises: storing, after the calculating one or more relations, each of the calculated relations in a data repository; and selecting from the data repository, for each combination, a plurality of stored relations and calculating the representative relation from the selected plurality of stored relations.
9. The method according to claim 8, wherein the selecting a plurality of stored relations and calculating the representative relation comprises obtaining, with respect to the stored relations or the selected relations, at least one of the group consisting of: an average; a median value; a mode; and a percentile.
10. The method according to claim 1, wherein the method further comprises modifying one or more of the at least one representative relation within of a set containing representative relations of each combination of the first sensor and each one of the further sensors, wherein the modifying includes correcting the one or more representative relations so as to bring the representative relations in conformity with each other.
11. The method according to claim 1, wherein the method further comprises: obtaining a reference measurement of the at least one animal related parameter using at least one sensor of the plurality of sensors; and wherein, in addition to the at least one representative relation, the correction parameter is calculated based on the reference measurement.
12. The method according to claim 11, wherein the reference measurement comprises one or more measurements of the at least one animal related parameter obtained using a reference sensor, wherein the reference sensor is at least one of: an arbitrary sensor of the plurality of sensors; and a calibrated sensor.
13. The method according to claim 11, further comprising: calculating, for the reference sensor, a correction parameter based on the reference measurement and a calibrated value, wherein the calibrated value is a representative value for the at least one animal related parameter; and calculating, based on the correction parameter of the reference sensor and the at least one relation for each combination of the first sensor and each one of the further sensors, further correction parameters, so as to obtain correction parameters for each sensor of the plurality of sensors.
14. The method according to claim 1, wherein the first measurement and the one or more second measurements are obtained within a predefined time period, such that within the predefined time period the obtained measurements of the animal related parameter are correlated in accordance with a data trend.
15. The method according to claim 14, wherein the first measurement is obtained at a first moment of time and the second measurement is obtained at a second moment of time, wherein prior to performing the calculating the one or more relations between the first measurement and one or more second measurements, the method includes: dividing the first measurement by a first calculated estimate and dividing the second measurement by a second calculated estimate, wherein the first calculated estimate and the second calculated estimate are determined based on the data trend.
16. The method according to claim 15, wherein the data trend is determined based on measurements performed using one or more sensors of the plurality of sensors.
17. The method according to claim 1, further comprising filtering the one or more second measurements, wherein the filtering is performed using at least one criterion taken from the group consisting of: excluding second measurements from the one or more second measurements for which a measurement result pertains to a statistical outlier; and excluding second measurements from the one or more second measurements dependent on a status of the at least one animal.
18. The method according to claim 1, wherein the correction parameter includes both a correction factor and an offset, and wherein the correction factor and the offset are obtained, for each of the plurality of sensors, by fitting.
19. The method according to claim 1, wherein for each one of the one or more of the first measurement and the further measurements, the measurement is obtained within an associated time interval following a preceding measurement, and wherein the one or more of the first measurement and the further measurements are modified to correct for the associated time intervals.
20. The method according to claim 1, wherein the system for obtaining animal data from a group of animals is a milking system for milking animals of the group of animals, wherein the animals are dairy animals, wherein the sensors of the plurality of sensors comprise at least one element of the group consisting of: a milk meter wherein the measurements comprise measurements of quantities of milk obtained from each of the animals; a conductivity sensor for determining a conductivity of the milk obtained, a color meter for determining a color of the milk obtained, a fat percentage sensor, a protein sensor for determining a specific amount of protein in the milk obtained, a cell count sensor for determining a somatic cell count of the milk, and a lactose sensor for determining a lactose level of the milk.
21. The method according to claim 20, wherein the correction parameter is a correction factor, wherein the sensors of the plurality of sensors comprise milk meters, wherein the measurements comprise measurements of quantities of milk obtained from each of the animals, and wherein the method further comprises obtaining a reference measurement of the at least one animal related parameter using at least one sensor of the plurality of sensors, and wherein in addition to the at least one representative relation, the correction factor is calculated based on the reference measurement; wherein the milking system comprises N milk meters, and wherein the obtaining the reference measurement comprises: obtaining a total milk yield D from all milk meters in the system during at least one complete milking session; obtaining a sensor milk yield d.sub.i representative of a total milk yield of an i.sup.th milk meter during the at least one complete milking session, wherein 1≤i≤N and i∈; calculating a system correction factor f.sub.system as:
and j≠i, comprises calculating f.sub.j as:
22. The method according to claim 1, wherein the system for obtaining animal data from a group of animals is a weighing system, wherein the sensors of the plurality of sensors are weighing units, and wherein the measurements comprise measurements of weights of individual animals from the group of animals.
23. The method according to claim 22, wherein the method further comprises obtaining a reference measurement of the at least one animal related parameter using at least one sensor of the plurality of sensors, and wherein in addition to the at least one representative relation, the correction parameter is calculated based on the reference measurement, wherein the reference measurement comprises: an average weight of an individual animal obtained by averaging measurements of weights of the respective animal obtained using at least a subset of the sensors, including at least two of the sensors.
24. The method according to claim 1, wherein the system for obtaining animal data from a group of animals is a feeding system comprising one or more feeding stations, wherein the sensors of the plurality of sensors are weighing units for determining a quantity of feed, and wherein the measurements comprise measurements of quantities of feed consumed by individual animals from the group of animals.
25. The method according to claim 1, wherein the system for obtaining animal data from a group of animals is a measuring system wherein the sensors of the plurality of sensors are configured for measuring animal related parameters including at least one element of the group consisting of: temperature; color; size; mobility, and behavioral parameters.
26. A non-transitory computer-readable medium including computer-executable instructions that, when executed by a processor, facilitate carrying out a method in a system for obtaining animal data from a group of animals, for calibrating a plurality of sensors of the system, wherein the sensors are configured to obtain measurements of an animal related parameter, wherein for obtaining the measurements the system is configured for allowing each animal to arbitrary visit one of the sensors, wherein the method comprises: obtaining, for at least one animal of the group of animals, a first measurement associated with a first sensor of the plurality of sensors; calculating one or more relations between the first measurement and one or more second measurements associated with the respective animal, wherein each of the second measurements is obtained using one of a further sensors of the plurality of sensors, wherein the one of the further sensors is different from the first sensor, so as to obtain at least one representative relation for each combination of the first sensor and each one of the further sensors; obtain a reference measurement of the at least one animal related parameter using at least one sensor of the plurality of sensors; and calculate, based on the reference measurement and the at least one representative relation, a correction parameter associated with at least one sensor of the plurality of sensors, for harmonizing an output signal of the at least one sensor with respect to output signals of one or more of the further sensors of the plurality of sensors.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The invention will further be elucidated by description of some specific embodiments thereof, making reference to the attached drawings. The detailed description provides examples of possible implementations of the invention, but is not to be regarded as describing the only embodiments falling under the scope. The scope of the invention is defined in the claims, and the description is to be regarded as illustrative without being restrictive on the invention. In the drawings:
[0034]
[0035]
[0036]
[0037]
[0038]
DETAILED DESCRIPTION
[0039] In the below described embodiments, unless explicitly stated differently, the calculated relations will be referred to as fractions, in accordance with the preferred embodiments. The invention, however, is not limited to fractions only. Furthermore, the correction parameter referred to in this document may be a correction factor or an offset. In the present document, in many occasions reference is made to a ‘correction factor’ whereas the same teaching likewise applies to the calculation of offset values. For example, where offset values are known the correction factors may be accurately determined in the manner described, and where correction factors are known it is possible to determine the offset values. If both are to be determined, it is possible to apply the present invention in combination with a fitting method to determine both the offsets and correction factors.
[0040]
[0041] Each of the sensors 8-1 through 8-5 is part of a milking device which obtains milk from the cows 10 that visit the milking device. Milk transportation lines 12-1, 12-2, 12-3, 12-4 and 12-5 convey the quantities of milk obtained from all cows that have visited the respective milking devices. The milk from transportation lines 12-1 to 12-5 is collected in element 13 and conveyed via milk line 14 towards a storage tank 19, which will be unloaded regularly for further handling and processing. Upstream of the storage tank 19, a calibrated and accurate milk flow sensor or calibrated milk meter 15 determines the total quantity of milk D passing through in milk line 14 towards the storage tank 19. The total quantity of milk D measured by milk flow meter 15 includes all the individual milk quantities obtained from the various milking devices wherein the sensors 8-1 through 8-5 are installed, and from all cows 10 milked during that session. The aggregate value D is provided as a data signal to controller 3.
[0042] Merely as an example, suppose that the cows 10 are milked several times per day, e.g. typically twice a day, for example once at 8 am and once at 8 pm. As may be appreciated, if the cows 10 are milked twice per day, the cows 10 will over a period of a week be milked fourteen times. Ideally, if each cow 10 will individually visit a different sensor 8 during each milking session, then with five milk meter sensors 8 (8-1 through 8-5) each cow on average will visit each sensor 8 approximately three times over a full week. Since there are seventy cows which are milked twice a day for seven days, this will provide a total of approximately a thousand sensor readings. For five sensors 8-1 to 8-5 this will be approximately 200 readings per sensor. The sensor readings may be stored in memory 5 and be used for calculating the correction factors f.sub.1 to f.sub.5 of each sensor 8-1 to 8-5, as will be explained further below. As may be appreciated, the number of readings per sensor 8-1 to 8-5 in this example is largely dependent on the number of cows 10, the number of sensors 8, the number of milkings per day, and the number of days considered (here seven). The above example illustrates that over the course of just seven days, sufficient sensor readings may be obtained for any farm of any size to enable to perform the automatic sensor calibration method of the present invention. Of course, the invention may be applied in very different situations with different measurement frequencies using different numbers of sensors for different numbers of animals. For example, a weighing system for pigs on a breeding farm of approximately 1000 pigs, including 50 weighing stations, wherein the pigs visit an arbitrary weighing station e.g. 6 times per day.
[0043] The sensor readings for each individual cow 10 during a session are communicated by each of the milk meters 8-1 to 8-5, via each corresponding signal line 16-1 through 16-5, to the controller 3. The controller 3 will multiply each of the received milking yields δ for the specific cow 10 being milked, with a correction factor f.sub.1 through f5, the elements 30-1, 30-2, 30-3, 30-4 and 30-5, which correction factor is associated with the specific sensor 8-1 through 8-5 that provided the reading. To calibrate the system 1, it is necessary to determine the correction factors 30-1 to 30-5 that need to be applied by the controller 3 in order to obtain the correct milk yield volumes from the readings 16-1 to 16-5 from each sensor 8-1 through 8-5. Instead of calibrating each of the sensors 8-1 through 8-5 manually or individually, in accordance with the present invention a different method is applied that enables to perform the calibration automatically.
[0044] The aggregate value D from calibrated milk meter 15, which is representative of the total quantity of milk D (or sometimes herein referred to as total milk yield D), may be used as a reference measurement to enable said automatic calibration of the other sensors 8-1 to 8-5. However, neither the application of a calibrated milk meter 15, nor the providing of a separate reference measurement, is an essential element of the invention. If a reference measurement is used, the function of providing the reference measurement may be implemented in an alternative manner than by using calibrated milk meter 15 of
[0045] Turning to
[0046] Next in step 40, preferably a reference measurement may be performed. This step will later be explained is
[0047] As explained earlier above, each combination of sensors may be expressed as follows: δ.sub.1/δ.sub.2=f.sub.2/f.sub.1, wherein δ.sub.1 and δ.sub.2 are measurement values obtained with respectively a first and second sensor, and wherein f.sub.1 is the correction factor of the first sensor and f.sub.2 is the correction factor of the second sensor. The fraction δ.sub.1/δ.sub.2 thus enables to calculate f.sub.2, if f.sub.1 can be found in another manner e.g. using a reference measurement or by calibrating one sensor and pre-setting a value. For example, if δ.sub.real is the actual value of the animal related parameter to be determined (e.g. a quantity of milk in system 1), then f.sub.1=δ.sub.real/δ.sub.1, wherein δ.sub.1 is the sensor reading of the first sensor. With this information also f.sub.2 can be calculated via: f.sub.2=δ.sub.1*f.sub.1/δ.sub.2.
[0048]
[0049]
[0050] Each of the S.sub.1 through S.sub.n denoted by 8-1 through 8-N provides a plurality of individual quantities of milk obtained from a number of individual cows. The quantities measured by each of the sensors are denoted by δ.sub.ik, wherein i denotes the sensor number ranging from 1 to N, and wherein k denotes the cow number or cow identifier ranging from 1 to K. In the system of
[0051] In calculations tabs 56-1 through 56-N, the milk quantities δ.sub.ik for each of the sensors 8-1 through 8-N will be summed. This will provide the total sensor milk yields 57 denoted for each sensor S.sub.i by the letter d.sub.i. Thus, for the sensors 8-1 through 8-N, this will provide the total sensor milk yields d.sub.1 through d.sub.N. The data symbol 57-1 through 57-N for d.sub.1 through d.sub.N are provided to further summation step 58 in order to calculate the total measured milk yield D′. The quantity D′ provides the total milk yield for all milk meters based on the measured quantities of the milk meters 8-1 through 8-N themselves, i.e. without being corrected by a correction factor 30-1 through 30-N.
[0052] In
[0053] In step 42, the system correction value f.sub.system 55, the measured total sensor milk yields d.sub.1 through d.sub.N, and the fractions 45 obtained using the method of
[0054] The correction factor f.sub.j may be stored in memory 5 for correcting the measurement values of each individual sensor S.sub.1 through S.sub.N 8-1 through 8-N.
[0055]
[0056] Equivalent to the calibration of the milking system, representative values of the measured weights by each of the sensor units 8 may be obtained by for example averaging the measurements over the course of a couple of days, and calculating the fractions between the data from each sensor 8 with every other sensor in the system. This may be done based on the history data registered in the memory 5. A reference measurement to perform automatic calibration may be provided in various different ways, or may be dispensed with if one of the correction factors is made available in a different manner. For example, if one of the weighing units 8 is accurately calibrated, the correction factor for this weighing unit may be known, and the correction factor for all other weighing may be calculated as explained here and above. Alternatively or additionally, it is also possible to use an average over all weighing units 8 as a reference measurement. Although the latter may be slightly less accurate and slightly more prone to error, this may be convenient because no further reference measurements are then needed. This may be done, for example, if there is no bias in the devices. For the milk meter all correction factors f may be greater than 1, so a mean measurement will not provide a reliable reference measurement. However, if it would be known that on average a milk meter has a correction factor of f=1.10, then this information may be added and indeed an average measurement may be used. As a further alternative, the weights of one or more of the animals 10 may be obtained using a different calibrated scales, and the reference weight may be provided to the controller 3.
[0057] As explained above, although not illustrated in
[0058] In the above, amongst others, the calculation of representative values 45 for each ratio between the correction factors f.sub.1 of sensor S.sub.1 8-1 and each correction factor f.sub.i for sensor S.sub.i 8-i (where i=1 . . . 5 in the system of
[0059] One of these manners of making the matrix consistent again applies theorem five of Benitez. Given a reciprocal matrix A, the method finds the consistent matrix Y for which a certain distance (defined by the Frobenius norm of the difference between log(A) and log(Y)) is minimized (see theorem 2 of Benitez). For this matrix Y, the off-diagonal elements are modified such that they are consistent.
[0060] Another manner is based on statistical principles. The accuracy of the statistically representative fractions are given by the errors on such values. For example, the error on a mean value is given by the standard deviation (std) divided by the square root of the number of measurements used:
Error on mean(f.sub.1/f.sub.j)=std(f.sub.1/f.sub.j)/sqrt(N).
[0061] To fine-tune the statistically representative ratios such that they become consistent with each other, one may apply the freedom available for each value to adapt them. Thus, besides the statically representative ratios f.sub.1/f.sub.j (e.g. mean or median) also the standard deviation needs to be calculated. If a fraction from a trial solution deviates more than the ‘error on the mean’ from the original median fraction observed, then this trial solution may be more penalized than a solution which remains relatively close to the median ratios observed. Similarly, penalties may be given to ratios that are not consistent with each other. If the multiplication of the trial ratios of (f.sub.i/f.sub.j) and (f.sub.j/f.sub.k) does not equal (f.sub.i/f.sub.k), then a penalty will be given. More penalty points may be given if the deviation is greater. In the end, the trial solution for which the fractions result in the least penalty points, may be denoted as the best or most consistent solution.
[0062] In addition, a brute force method, Markov Chain Monte Carlo modelling, or any other fitting/optimizing modules can be used to search for the most consistent solution.
[0063] The present invention has been described in terms of some specific embodiments thereof. It will be appreciated that the embodiments shown in the drawings and described herein are intended for illustrated purposes only and are not by any manner or means intended to be restrictive on the invention. The context of the invention discussed here is merely restricted by the scope of the appended claims.