The invention concerns a method of and an apparatus for diagnosing limb pathologies in quadrupeds, especially, but not exclusively, dairy cows. More particularly, the invention relates to a method and an apparatus based upon the thermographic analysis of the surfaces of the distal parts of the legs or limbs, especially, but not exclusively, the rear limbs.
It is known that pathologies affecting the distal parts of cattle limbs, in particular the hoofs, are a source of economic losses, due both to the additional costs associated with veterinary expenses and to a reduction in the value of the animal, for instance because of the decrease in milk production capacity, as well as to the reduction in life expectation and the need of an early replacement of the animal. An early diagnosis of such pathologies is therefore essential in order to minimise the risk of such economic losses.
Systems proposed in recent years for diagnosing pathological conditions in the limbs, in particular the hoofs, of quadrupeds are based on the thermographic analysis of the concerned area and exploit the fact that lesions or other pathological conditions cause a local increase of the surface temperature in the concerned area.
Thermography is a non-invasive diagnostic tool that measures infrared radiation emitted by an object and is arranged to display the information in image form. Colour variations on the image are related to different temperatures. Conventionally, hotter regions are shown in red or white, whereas cooler regions are shown in blue or black.
Thermography is based on the use of an instrument capable of generating a plurality of signals representative of the intensity of the electromagnetic radiation emitted by a body in the infrared range. Such an instrument is known as thermal camera or infrared camera. It is an instrument allowing generating infrared photographic images. Typically, a thermal camera is capable of operating with electromagnetic emissions having wavelengths in the range 3 to 15 μm. The thermal camera exploits the well-known Planck's law according to which the temperature of an emitting body is proportional to the radiation emitted. The thermographic image obtained by means of a thermal camera is representative of the temperature distribution over the surface of an object. The thermal camera measures the infrared radiation received within its visual field (for instance 7 to 15 μm) and calculates the temperature of the object by taking into account emissivity s of the same object and other environmental parameters, such as reflected temperature compensation RTC. Typically, the radiation recorded by the thermal camera results from the superimposition of three contributions: emitted radiations ε, reflected radiations ρ and transmitted radiations τ. The higher is the proportion of transmitted or reflected radiations, the harder is performing a precise measurement of the temperature of an object. In the field of application of the invention, transmitted radiations are substantially of no relevance and reflection factor is low. Instead, emissivity is high and therefore the temperature can be easily measured by means of a thermal camera.
US 2004158156 A1 discloses for instance a device for detecting temperature increase caused by injuries in limbs of horses or other mammalians. The device is equipped with thermo-chromic liquid crystals whose colour changes depending on heat being detected, thereby providing thermal images of the area of interest where the device is applied.
The publication by T. A. Turner, R. C. Purohit, J. F. Fessler, ‘Thermography: A review in equine medicine’, Comp. Cont. Ed. 8, 855, 1986, further reports that infrared thermography could be useful in diagnosing equine lameness. The publication by Weil, M., Litzke, L. F., Fritsch, R. ‘Diagnostic validity of thermography in equine lameness’, Tierarztliche Praxis Ausgabe G: Grosstiere—Nutztiere—Volume 26, Issue 6, 1998, pages 346-354, however reports that thermography in diagnosing equine lameness is useful only in combination with an in-depth clinical examination involving supplementary investigations.
The publication by Simone Westermann, et al. ‘Effects of infrared camera angle and distance on measurement and reproducibility of thermographically determined temperatures of the distolateral aspects of the forelimbs in horses’, Journal of the American Veterinary Medical Association, Feb. 1, 2013, Vol. 242, No. 3, pages 388-395, discloses the effects of changing the positioning angle and distance of a thermal camera relative to horse forelimbs. This document also suggests analysing temperature differences between the limbs.
A. L. Eddy, L. M. Van Hoogmoed and J. R. Snyder ‘The Role of Thermography in the Management of Equine Lameness’, The Veterinary Journal 2001, 162, 172-181, report that, even though thermography is not capable of detecting specific pathologies, yet it facilitates locating temperature increases due to inflammations or injuries, and temperature decreases due to a reduction in circulatory capacity and vasomotory tone.
The studies developed till now for detecting pathologies affecting cattle limbs, such as the studies mentioned above, have a considerable limitation because of the substantial impossibility of application in zootechnical industry. Indeed, they require application under conditions that are hardly reproducible in a zootechnical farm. One of the factors mainly affecting the results of thermographic analysis is the noise due to environment temperature and to the spatial position of the distal part of the animal's limb. The studies at present known are generally based on a comparison between the temperatures of two hoofs, in particular the fore hoofs, of the animal. It has been experimentally demonstrated that significant temperature differences between the hoofs are an indication of the presence of certain pathologies. Yet, the problem of how to obtain thermographic images useful for diagnosing the state of health of the distal part of the limb, under conditions of normal behaviour of the animals in a farm, for instance a dairy cow farm, is not dealt with.
The studies mentioned above moreover are not suitable for providing a significant indication about the onset of a specific pathology sufficiently in advance with respect to the appearance of more clear symptoms in the behaviour of the animal. Moreover the prior art systems are not readily utilisable in environments where farm animals, such as dairy cows, are present, even because such systems are not suitable for tracking an animal that generally is moving. A further drawback of the prior art is related to the fact that the existing systems do not allow detecting pathologies even greatly different from one another.
The publication by M. Alsaood et al. ‘Detection of hoof lesions using digital infrared thermography in dairy cows’, Journal of Dairy Science, Vol. 95, No. 2 (2012), pages 735-742, discloses the results of thermographic analyses based on the measurement of the temperature of the skin and the coronary band region of the rear limbs of dairy cows in which lameness was detected. The authors conclude that thermographic analysis can be useful, in association with clinical examination, for detecting lameness resulting from pathological conditions, but they do not propose an apparatus or a method for obtaining, from the images through the thermographic analysis, a diagnosis about the existence and the kind of a possible pathology having caused lameness.
The publication by M. Alsaood et al. ‘A field trial of infrared tomography as a noninvasive diagnostic tool for early detection of digital dermatitis in dairy cows’, The Veterinary Journal 199 (2014), pages 281-285, discloses experiments in which thermographic analyses based on the measurement of the temperature of the skin and the coronary band region are carried out and data relating to cows suffering from digital dermatitis and to healthy cows are compared. The authors discuss the problems that can affect the results of the thermographic analysis and conclude that the latter can be useful for an early detection of digital dermatitis, before lameness appearance, but in this case too they do not propose an apparatus or a method for obtaining a reliable diagnosis from the images obtained through the thermographic analysis.
It is an object of the invention to provide a diagnosing system based upon the thermographic analysis of the distal parts of the limbs of quadrupeds, which system is utilisable in a zootechnical industry and allows an early and reliable detection of a plurality of foot pathologies, such as digital dermatitis, digital phlegmon, sole ulcer, white line disease and others.
More particularly, the invention aims at providing a system having a continuous (24 hours/day, 365 days/year) and wholly automatic operation, and allowing obtaining the information required for the diagnosis with a high time resolution.
The above and other objects are achieved by the method, the information technology product and the apparatus as claimed in the appended claims.
The method of diagnosing pathologies of the distal parts of the limbs of a quadruped, in particular the rear limbs of a dairy cow, is based on the generation of thermographic images of the limbs and the processing of such images. The processing includes the steps of:
1.—identifying, in each thermographic image and for each limb concerned by the diagnosis, an area containing the distal part, and obtaining from said area an identified image of the distal part;
1.—validating identified images complying with predetermined geometrical and/or dimensional and/or temperature criteria as images utilisable for diagnostic purposes;
1.—extracting features significant for the identification of the presence and the kind of pathology from the validated images;
1.—classifying the distal part of a limb as unaffected by pathologies or as affected by one out of a plurality of pathologies on the basis of such features.
Advantageously, during an observation period, there are generated either a single flow of thermographic images for all limbs to be submitted to diagnosis, or different flows of thermographic images for different limbs. Images relating to a plurality of instants of the observation period are extracted from the or each flow and processed. The diagnosis about the possible presence of a pathology and the kind of same is performed at the end of the observation period, based on the results of the classification performed starting from the images relating to each instant.
Advantageously, the diagnoses relating to a plurality of observation periods can be stored and an alarm signal can be issued when the presence of a pathology has been diagnosed for a predetermined number of consecutive periods.
Preferably, the classification is performed by using machine learning techniques, more particularly the neural network technique.
An apparatus for implementing the method includes one or more thermal cameras for generating thermographic images of the limbs, e.g. a single camera for providing comprehensive images of all limbs concerned or different cameras for providing images of individual limbs, and a processing system programmed to process the thermographic images and to provide, as a result of the processing, a diagnosis about the possible presence of one out of a plurality of pathologies and the kind of pathology. The processing system in turn includes:
1.—means for identifying, in each thermographic image and for each limb submitted to diagnosis, an area containing the distal part, extracting from said area an identified image of the distal part, checking whether the identified image complies with predetermined geometrical and/or temperature criteria and validating the identified images complying with said criteria as images being utilisable for diagnostic purposes;
1.—means for extracting features significant for the detection of the presence and the kind of pathology from the validated images;
1.—classification means for classifying the distal part of a limb as unaffected by pathologies or as affected by a specific pathology on the basis of such features.
The invention also provides an information technology product containing software codes for implementing the method or method steps when the product is loaded into a processing device.
The invention can be advantageously used while a cow is staying in a milking stall. More particularly, the invention lends itself for use in milking installations equipped with a milking barn, let it be of parallel or fishbone or carrousel type, either manual or automated, or in farms equipped with robotised milking. The invention does not oblige the animal to a further forced retention for the diagnostic operations and hence it has no effect on the animal's stress and does not affect the wellbeing in normal herd management.
However, the invention can be used in any area where cows individually pass and where it is possible to compel a cow to shortly stop to allow taking the limb images.
The diagnosis provided by the invention can be readily associated with a specific animal univocally identifiable in the farm. Actually, as known, in modern farms each animal is monitored by means of devices, such as pedometers or collars, allowing tracing the animal's habits, and the information provided by the invention can be readily associated with the cow identity provided by other monitoring systems. The invention can therefore become part of a more general monitoring system that enables composing an overall clinical picture of the animal by exploiting multiple indications coming from different sensors and systems, or modifying the animal management profile.
Some preferred embodiments of the invention will be described by way of nonlimiting example with reference to the accompanying Figures, in which:
1.—
1.—
1.—
1.—
1.—
1.—
1.—
1.—
1.—
1.—
1.—
1.—
Referring to
The system includes a thermal camera 11 connected to a processing system 13, programmed to convert the thermal signal emitted by the cow and collected by thermal camera 11 into a diagnostic information about an existing pathology, if any.
Thermal camera 11 is associated with a structure 17 for constraining animal 15 into the desired location, e.g. a milking stall or robot for dairy cows, where also a support plane 19 for hoofs 15ps, 15pd of the rear limbs of animal 15 can be provided.
In the embodiment shown, the system includes a single thermal camera 11, positioned so as to simultaneously generate images of the distal parts 15ps, 15pd of both rear limbs of animal 15. Advantageously, thermal camera 11 can be fastened to structure 17 by known means, such as brackets, threaded pins and bolts. In the alternative, thermal camera 11 can be mounted on an own support, for instance a stand, in turn fastened to the floor.
In the embodiment shown, thermal camera 11 is located behind animal 15. The thermal camera is for instance located so that its focus is at a distance of 25 to 70 cm from rear limbs 15ps, 15pd of the animal. Moreover, thermal camera 11 is for instance located at a height of about 30 to 70 cm relative to plane 19 on which rear limbs 15ps, 15pd of animal 15 rest. Axis ‘S’ of thermal camera 11 is therefore for instance inclined by an angle α of about 20° to 70° relative to the vertical direction. Preferably moreover thermal camera 11 is installed so that its longitudinal axis ‘S’ lies in longitudinal plane ‘PL’ of the animal. In such a configuration, axis ‘S’ forms an angle β=0° with plane ‘PL’. Angles β in the range −75° to +75° relative to said longitudinal plane ‘PL’ are however compatible with the invention.
In other embodiments, two or more thermal cameras 11 can be provided, e.g. one camera for each limb. In yet other embodiments, one or more movable thermal cameras 11 can be provided, which are e.g. displaceable along a guideway or a track, or are rotatable or yet are mounted on retractile supports, and the or each thermal camera can be brought into position whenever the system is to take an image. The choice of the number and the arrangement of thermal cameras 11 will generally depend on the conditions of use of the apparatus.
The or each thermal camera 11 is arranged to generate a plurality of signals representative of the intensity of the electromagnetic radiation emitted in the infrared range and coming from a plurality of corresponding adjacent areas of the distal part of each rear limb of animal 15. Depending on the kind of thermal camera, a flow of discrete images, a continuous video flow, etc. can be generated.
Returning to
1.—physical interface with thermal camera 11 (connection 14), typically through an Ethernet interface; connection 14 could also be a wireless connection;
1.—execution of network protocols for communication with the thermal camera (e.g. Real Time Service Protocol, RTSP);
1.—execution of the algorithms for decoding the video flow(s) provided by thermal camera(s) 11, so as to decompose such flow(s) into a sequence of frames, relating to different instants of an observation period (session), which can be individually analysed; one such frame is denoted 30 in
1.—processing of frame 30, including:
1.—thermal mapping of the video flow and hoof identification;
1.—hoof validation, extraction and interpolation;
1.—calculation of indexes significant for the diagnosis;
1.—classification of the hoof pair and diagnosis;
1.—graphical display of the results on a screen and saving of such results into a data base accessible to the system itself and eventually from the outside of the system.
In order to perform such operations, system 13 includes the actual processing device 20, which may consist of a single unit performing the whole processing from video frame extraction to diagnosis, by using one or more internally stored programs, or may include multiple units, each performing a part of the processing. For instance, inside block 20, reference numerals 20A, 20B, 20C and 20D denote processing units or program routines performing frame extraction, hoof identification and validation, feature extraction and classification, respectively. System 13 further includes a first buffer 16 temporarily storing the results of all classifications performed for a same hoof pair during a session, for instance during the period the cow is staying in milking station 17, and a decision unit 21 that provides the diagnosis on the basis of the stored classifications. For instance, unit 21 can be a majority logic network. A second buffer 22 allows temporarily storing the validated images, for purposes that will be disclosed below.
Decision unit 21 sends the diagnosis to the storage device accommodating the data base and to the display device, said devices being jointly schematised by block 18.
The following data can be for instance stored in the data base:
1.—final diagnosis;
1.—diagnosis time;
1.—snapshot of the left and right hoofs;
1.—maximum temperature of the left and right hoofs;
1.—confidence of the diagnosis, based on the distribution of the provisional diagnoses.
Moreover, if the invention is included into a general monitoring system of the farm, such data can be associated with the animal's identity and integrated with information coming from other devices, for instance collars, pedometers, etc., in order to contribute to build a more complete clinical picture, or to allow interventions on the management of the individual animal.
Decision unit 21 can also be associated with a storage and signalling device 23 that receives the diagnoses issued by decision unit 21 and generates an alarm signal when a specific disease has been diagnosed for a predetermined number of consecutive observation periods. In this way, the number of false positives is reduced.
Referring to
Step 101 is the image decoding and frame extraction from the flow(s) coming from the thermal camera(s), and it is carried out by using wholly standard algorithms, well known to the skilled in the art of image processing: the choice will obviously depend on the video flow format (for instance, H264, MPEG, MJPEG . . . ). Preferably, the frames extracted are stationary images. If multiple video flows are generated, step 101 is performed for each flow, and the frames simultaneously extracted are combined into a single composite image on which the subsequent processing is performed: for instance, if two different flows are provided for the two hoofs, the frames relating to the individual hoofs extracted at a given instant will be juxtaposed as left and right halves of a single fictitious image containing the hoof pair (see
System 13 continues analysing the flow of extracted frames in order to detect the presence of an animal (step 102). This presence is signalled by a significant temperature variation in certain frame portions.
Once the presence of the animal has been detected (positive outcome of the check at step 102), the process proceeds to the identification and validation of hoofs 15ps, 15pd (step 103).
For the identification, it is first to be distinguished whether a point of the frame being processed actually belongs to cow 15 or is part of the environment. Different approaches are possible.
A first approach is based on calculating the average temperature of frame 30 (or even of only a portion thereof, shown by box 31 in
A second approach is based on building a histogram of the temperatures inside frame 30 (o portion 31 thereof), whereby minimum value TMIN in the histogram is associated with the environment temperature, whereas maximum value IMAX is associated with the animal's temperature. Based on the minimum and maximum temperature values, it is possible to define an adaptive threshold related with such values and, similarly to the first approach, to consider points where the temperature is at least equal to the threshold as belonging to the animal, and points where the temperature is below the threshold as belonging to the environment.
The third approach is similar to the second one, yet the histogram building and the adaptive threshold calculation are separately performed for both halves of a frame, in order to better take into account the different temperature statistics possibly present in the two limbs.
The second and third approaches are the preferred ones, in case of a frame obtained from a single video flow and in case of juxtaposed frames, respectively.
Initial steps 201, 202 are the temperature histogram building and the adaptive threshold definition. Taking into account the concerned temperatures, temperature intervals of the order of a few degrees, e.g. 5° C., and about ten intervals can be considered for building the histogram. As to threshold TS, in the preferred embodiment it is given by relation:
T
S
=T
MIN+(IMAX+TMIN)/K
where K is a parameter that has been selected in the range 2 to 4. Such a range has generally proven valid for the temperatures of the environment and the animal encountered during milking operations.
At this point, the process can proceed to identifying the rear hoofs in the image portion belonging to the animal. To this end, frame 30 or portion 31 thereof are scanned from the bottom upwards in order to search for the first transition point from a condition below the threshold to a condition above the threshold (step 203). Referring to
In case of the third approach, the process shown in
Returning to
In a preferred embodiment of the invention, validation is performed in two steps: in a first step, it is checked that what has been identified as a hoof by means of the previous operations is actually a hoof, and in a second step it is checked that the hoof identified is utilisable for the diagnostic operations.
In a preferred embodiment of the invention, the criteria used in the first step are as follows:
Such a criterion is based on the assumption that a pixel column, corresponding to the limb, with temperature not significantly lower than the hoof temperature, is to correspond to each actual hoof. Otherwise, the area being considered is not a hoof, but a hot area related for instance to dejections, parts of the milking apparatus and so on.
Such a criterion is based on the assumption that, even if the condition of exceeding the environment/animal threshold is met for a group of pixels, if the square built in correspondence of the hoof includes at least one point having a temperature not compatible with the cattle biology, then the area being considered is not a hoof.
Such a criterion is based on the assumption that, due to the features of thermal camera installation in milking station 17, the hoof cannot have a size exceeding a certain threshold typical of the particular installation.
The application conditions of the thermal camera in milking station 17 may involve that it is known in advance that, in certain areas of the thermographic image, no hoof can be present or elements can appear that could be erroneously interpreted as hoofs. An example of such a condition is the presence of the tubes conveying the milked milk, generally located centrally in the image, since the freshly milked milk can originate temperature features meeting the temperature criteria mentioned above.
In a preferred embodiment of the invention, the criteria used in order hoofs having complied with the criteria discussed above can be considered as acceptable are as follows:
An accurate diagnosis requires a minimum amount of information to be extracted from the hoof cut from the whole thermographic image. If the size of the hoof identified does not comply with such a condition, it is preferred to consider the hoof as unsuitable for the formulation of a diagnostic hypothesis and to wait for a hoof complying with the requirements, rather than to go on with a processing whose result could be unreliable. For instance, in case of a resolution 60×80 pixels, a hoof size of 12 to 25 pixels is considered acceptable.
1. II. Criterion of Distance from the Edge
In certain cases, the hoof could be located near the bottom or the side edge of the image. In such cases, the hoof could be not wholly included in the thermographic image. Also in this case, it is preferred to consider the hoof as unsuitable for the formulation of a diagnostic hypothesis if the minimum distance of the alleged hoof from the edge does not exceed a given threshold.
When a hoof is detected, it is associated with an angle estimating the hoof inclination with respect to a hypothetical axis vertically oriented relative to the ground. The angle is calculated as the angle included between the middle point of the bottom hoof edge and the middle point of the top hoof edge (see
A back-correction of the thermographic image by taking into account the angle measured could also be possible, but this approach is considered sub-optimal with respect to the simple rejection of excessively inclined images. Indeed, given the availability of a great amount of images from the thermal camera, it is preferred to take into account only the correct images, even if possibly they are a minority fraction, rather than to jeopardise the diagnostic accuracy.
In an embodiment of the invention, the above criteria are to be simultaneously complied with for both hoofs in order the validation takes place.
Yet, in some applications, a simultaneous validation can be difficult to obtain. For instance, in a rotary milking system, it may happen that one hoof is not shot at a certain instant. Similarly, in a stationary milking system, even if the thermal camera simultaneously shoots both hoofs, it may happen that only the image of one of them complies at a certain instant with the validity criteria. In order to take this into account, in the preferred embodiment, whenever a hoof has been validated, the image thereof is temporarily stored in buffer 22, in separate queues for the right and left hoofs. If the validated images of the hoofs of both limbs are simultaneously available, they are used for the subsequent classification and are deleted from buffer 22. If the hoof of only one limb has been validated or is available, the image thereof is kept in buffer 22 while awaiting the availability or validation of the hoof of the other limb. At that moment, the images of both hoofs are combined and the process goes on as if the images had been obtained at a same instant (delayed combination). This procedure allows reducing the number of samples to be processed in order to arrive at the diagnosis.
The delayed combination procedure is schematically shown in
In
In case of a rotary milking machine, the operation is wholly similar. Yet, it is to be taken into account that at some instants (for instance t1, t4 and t5) a hoof can be missing or the right hoof can be located in the left half of the frame (instant t1) or vice versa (instants t4, t5). Anyhow, missing and invalid hoofs are handled in the same manner. Moreover, device 20 is programmed so as to detect which hoof is located in a given half frame, so that, if the hoof is valid, the image can be stored in the proper queue.
Once the validation is over, extraction of the features or indexes to be used for the classification is performed (
In this respect, it is to be taken into account that, in general, the hoofs identified have an unknown and variable size, depending on the hoof shape, size and distance from the thermal camera. Yet, in order the diagnosis can be reasonably accurate, it is better to work onto images having the same sizes, measured as number of pixels. It is therefore necessary to carry out a resampling or interpolation of the hoof image so that the image size can be brought to a number of pixels identified as standard. That standard number of pixels has to be not lower than the number of pixels potentially present in the starting image, in order no useful information is destroyed. When using a thermal camera with resolution 60×80 pixels, the starting image is typically 25×25 pixels and, in practice, the standard hoof size will be at least 32×32 pixels (it is preferred to operate with sizes that are powers of 2). Even though obviously an interpolation operation does not add information, it has been noted that the resolution increase by mathematical way allows obtaining better diagnostic accuracies. Taking this into account, the size of the hoof extracted from the starting image is preferably standardised to 64×64 pixels, whichever the hoof starting size: a value of this kind does not significantly add to the processing burden.
A raster 35 (
1.—few cells do not allow a sufficient spatial resolution of the hoof; and
1.—too many cells make the algorithm computationally more burdensome and tend to cause a loss of generality of the indexes extracted, since the association of an index with adjacent cells will suffer from the uncertainty introduced by the animal shape and the shooting angle.
The nine cells shown in the drawing are a satisfactory compromise.
The bottom, left and right edges of raster 35 can for instance correspond with the bottom, left and right edges of square 33 in
In a preferred embodiment the indexes extracted are:
1.—absolute temperature indexes, which synthetically consider the minimum, maximum or average temperature for the cell being considered;
1.—temperature variation indexes, which take into account the thermal variability in the cell being considered, e.g. variance or entropy;
1.—temperature distribution indexes, which are obtained by comparison (or difference) of other temperature indexes in areas astride different cells in the same hoof;
1.—indexes obtained as difference between homologous indexes in left and right hoofs 15ps, 15pd; in most cases, the presence of a pathology, both an infective and a biomechanical one, gives rise to an asymmetry between the left and right hoofs, both because generally only one hoof is affected, and because, if both hoofs are affected, it is difficult that the pathology identically affects them, so that a difference between the hoofs is generally very significant;
1.—motion indexes, based on the analysis of the hoof coordinates in the image; such indexes exploit the well-known fact, exploited by diagnostic methods based upon the observation of the animal's behaviour, that a relation exists between the number and the type of hoof movements on the one side and the existence of a pathology on the other side.
By using the indexes extracted at step 105, the process proceeds to the classification (step 106), which preferably is performed by using machine learning techniques, in particular the neural network technique. In the case of diagnosis of the four pathologies mentioned above, each hoof is allotted one of five classes, e.g. class 0=healthy hoof, and classes 1, 2, 3, 4=hoof affected by digital dermatitis, digital phlegmon, sole ulcer and white line disease, respectively. Step 106 hence provides a diagnosis forecast at each instant of the observation period.
Steps 104 to 107 are automatically repeated several times while the animal is staying in observation location 17 (positive outcome of the new check on the presence of the animal, step 108). For instance, taking into account that a cow remains inside the milking robot for a time period of 6 to 8 minutes, the cycle can be repeated 10 to 50 times during such a period. At the end of the session, when cow 15 leaves location 17, decision unit 21 reconsiders all provisional diagnoses (forecasts) and, based on the distribution thereof and on other criteria, provides a final diagnosis (step 109). The simplest example of how this can be made is using a majority decision unit 21 that counts the number of occurrences of each of the five output values of the classifier and eventually selects the value with the highest number of occurrences.
Of course, it would also be possible to issue the diagnosis while the animal still is in the milking station, after a predetermined number of iterations.
More particularly, the slave level includes, in the embodiment shown, three neural networks 41, 42, 43, which receive the indexes extracted in step 105 (
1.—network 41 assigns the hoofs to one of two classes: healthy hoof (e.g. class 0), or hoof affected by a pathology (class 1);
1.—network 42 assigns the hoofs to one of three classes: healthy hoof (class 0), hoof affected by an infective pathology, e.g. digital dermatitis or digital phlegmon (class 1), hoof affected by a biomechanical pathology, e.g. sole ulcer or white line disease (class 2);
1.—network 43 assigns the hoofs to one of the five classes 0, 1, 2, 3, 4 mentioned above
Master level includes a single network 44 that receives both the indexes and the classification results provided by each slave network 41-43 and acts as an arbiter among the slaves, providing a diagnosis forecast relative to the current cycle that is stored in buffer 16 (step 107).
Table 1 below shows by way of example the results of three subsequent classifications as provided by classifier 20D during a field trial of the invention. In this trial, two thermal cameras 11 have been used, since the features of the milking robot with which the invention was associated did not allow satisfactorily taking images of both limbs by means of a single camera. The resolution of thermal cameras 11 was 60×80 pixels and, as said, hoof sizes of 12 to 25 pixels have been deemed acceptable.
Column ‘Classification counter’ shows the number of classification cycles performed up to that instant.
Column ‘Classification vector’ shows the distribution of the results among the five classes provided for.
Columns ‘Network 44’ etc. show the class allotted by each neural network to the hoof under examination in that particular cycle.
Column ‘Diagnosis forecast’ shows the final classification in each cycle (which in the example coincides with the classification allotted by network 44).
The Table shows that successive classifications generated by the classifier may be different and may be differently generated. For instance, the same class ‘0’ is obtained at cycle 57 with the agreement of all three slave networks, and at cycle 58 with a partial disagreement among them. Also in the case of cycle 59 a disagreement occurs among the three slave networks, yet, contrary to cycle 58, the classification decided by network 44 does not coincide with that of the majority of the slave networks.
The preceding description clearly shows that the invention provides a method and an apparatus that are non-invasive, cheap and readily applicable in zootechnical industry, have a continuous operation and allow obtaining in wholly automatic manner a reliable diagnosis of the possible presence of pathologies in quadrupeds. Given its non-invasive character, the invention can be repeatedly and frequently employed, and this makes possible an early diagnosis of the onset of pathologies.
It is also clear that the invention can be applied without difficulties to the diagnosis of other pathologies giving rise to thermal anomalies in the distal parts of cattle limbs. Moreover, even if only the rear limbs are of interest for diagnosing the cattle pathologies mentioned here by way of example, in case of other pathologies and other farm animals the method and the apparatus described can be used for diagnosing pathologies also or only in the fore limbs, by suitably arranging the thermal cameras.
It is also to be appreciated that, even if the use of the invention in a milking barn has been mainly described hereinbefore, the or each thermal camera 11 can be located in any area of the farm where cows individually pass, for instance in the passage corridor used for controlling the afflux to the milking barn. In this case, means will have to be provided for compelling the cow to a short stop, to allow taking the limb images. For instance, a timed output gate could be provided, which opens after a predetermined time such as to allow the acquisition of a number of frames (by way of indication only, assuming a time resolution of 10 frames per second, such time might be a few seconds). The gate will anyway open after the predetermined time has elapsed, even if frame acquisition did not occur. Anyhow, generally speaking, it is possible to create an ad hoc structure, with which the apparatus of the invention can be associated, for temporarily constraining individual animals. This clearly allows a more general use of the invention. It is to be appreciated that, in case of short stays of the animal in the observation area, the delayed combination procedure for hoof validation can be of particular interest.
Moreover, even if a fixed installation has been described above, the invention readily lends itself to make a portable device, thanks to the availability on the one side of thermal cameras associable with smart phones with different operating systems (for instance, thermal cameras Flir One or Seek Compact Thermal Imager) and on the other side of smart thermal cameras, i.e. thermal cameras provided with substantial processing capabilities (e.g. thermal camera Argus Mi-TIC-E). A portable, pocketsized device by which a diagnostic analysis can be performed whenever the need arises is clearly very attractive.
It is clear that the above description has been given only by way of non-limiting example and that changes and modifications are possible without departing from the scope of the invention as defined by the appended claims.
For instance, for hoof identification, known algorithms for detecting objects in computerised images, such as the Viola-Jones algorithm for human face detection, could be used in place of the algorithm disclosed with reference to
Moreover, a classifier 20D based on neural networks, instead of including networks organised on two levels as described, could include a plurality of networks organised on a single level and take a majority decision. As diagnosis forecast at a given instant, the forecast on which a predetermined number of the networks agree will be provided: e.g., five networks could be used and the diagnosis forecast provided could be that provided by at least four networks.
Moreover, classifier 20D, instead of being based on neural networks, could be a classifier based on different machine learning techniques, with or without supervision, such as an SVM, Bayes, Boost, Bagger Tree classifier or the like.
Furthermore, the indexes of interest for the diagnostic formulation, instead of being processed according to machine learning techniques, could be processed by means of logic operations explicitly expressed, as disclosed hereinbelow with reference to
The image portions corresponding to hoofs 15ps, 15pd of the animal, after having been validated, are still enclosed by processing device 20 into corresponding cell rasters 35A, the position of which is set in similar manner to what disclosed with reference to raster 35, by determining temperature transition zones, i.e. zones where a significant temperature difference, typically at least 1° C., is detected.
Preferably, rasters 35A and the individual cells have square or rectangular shape, and advantageously the cells have sizes lower than the thermal camera resolution. It is sufficient that each cell includes at last one pixel. For instance, for a thermal camera with resolution 320×220 pixels, each cell in the raster could contain 10×10=100 pixels. When using a thermal camera with resolution 60×80 pixels, as indicated for the previous embodiment, the number of pixels per cell can be reduced accordingly. Raster 35A could for instance include 18×18 cells. The cells in raster 35A are identified through their spatial coordinates on axes X and Y.
For classification, temperature Tx,y measured in the generic cell with coordinates x, y inside raster 35A is compared in device 20 with a temperature threshold TS1 and, depending on the outcome of the comparison, the hoof is assigned to either of two classes: healthy hoof (e.g. class 0), if Tx,y≤TS1, or hoof affected by a pathology (class 1), if Tx,y>TS1. Value Tx,y can be the temperature value measured at the cell centre, or any temperature value measured in the cell, or yet the average temperature value in the cell. Threshold TS1 can be the same for all cells in the raster, or it is possible to set different threshold values depending on the cells and hence on the spatial coordinates of the cells in raster 35A. Preferably, threshold TS1 is set to value TM+TK, where TM is the measured temperature and TK is a correcting factor. TM may be the ambient temperature TA and correcting factor TK is in the range 3 to 20° C. and more preferably is about 9° C. As an alternative, TM is skin temperature TC of animal 15 under observation and correcting factor TK is in the range 10° C. to 30° C. and more preferably is about 6° C. Both ambient temperature TA and skin temperature TC could even be measured. In the latter case, two temperature thresholds TS11 and TS12 will be provided, and threshold TS1 is obtained as the average of thresholds TS11 and TS12. Threshold TS1 could even have a fixed value, for instance 22° C. Reference numeral 25 in
Spatial coordinates x, y of the cells in raster 35A where threshold TS1 has been exceeded are also compared with spatial coordinates x, y of cells denoting the presence of a particular pathology that may affect the distal part of the animal's limb. The spatial coordinates of those cells are stored in a storage unit 26, e.g. a programmable read only memory, accessible by processing device 20. In storage unit 26 the cells are grouped into cell groups or strings, each associated with a specific pathology W0, W1, W2 . . . Wn. A same cell may belong to multiple strings, yet the strings will differ by at least one cell. Strings W0 . . . Wn associated with the homonymous pathologies are stored into unit 26 in a programming step of same. When the coordinates of the cell where Tx,y>TS1 correspond with the coordinates of one of the cells of the strings stored in unit 26, device 20 classifies the hoof as affected by pathology W0 . . . Wn.
For instance,
The coordinates of a cell where threshold TS1 has been exceeded may also be processed jointly with the coordinates of the other cells where Tx,y>TS1. Those ‘positive’ cells form cell strings that are compared with the cell strings associated with pathologies W0 . . . Wn and stored in storage unit 26. In such case, in unit 26, the coordinates of such cells are also associated with an index or weight of the degree of disease development. Processing device 20 is programmed so as to sum the weights associated with the coordinates of the cells in which temperature threshold TS1 has been exceeded and which correspond to cells stored in unit 26, and to signal both the pathology detected and the development degree thereof, the latter being proportional to the sum of the weights of the cells in unit 26 for which the correspondence has occurred and which belong to the string associated with the pathology.
The processing of the classifications generated in this manner in order to arrive at the diagnosis takes then place as described above.
Number | Date | Country | Kind |
---|---|---|---|
16178313.9 | Jul 2016 | IT | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/IB2017/054069 | 7/6/2017 | WO | 00 |