METHOD AND DEVICE FOR AUTOMATICALLY PLACING TEAT CUPS ONTO TEATS OF A MILK-PRODUCING ANIMAL
20180213742 ยท 2018-08-02
Inventors
- Jarek Jagodzinski (Gelsenkirchen, DE)
- Magnus Wiethoff (Welver-Dinker, DE)
- Clemens Renner (Dortmund, DE)
Cpc classification
International classification
Abstract
The invention relates to a method for automatically placing teat cups (7) onto teats of a milk-producing animal, in particular a cow, comprising the following steps: producing a two-dimensional image of teats of the animal, wherein distance information is present for at least a plurality of pixels of the two-dimensional image; evaluating the two-dimensional image and the distance information and establishing at least one position of at least one of the teats in a predetermined coordinate system; determining a further position of further one of the teats on the basis of the at least one previously ascertained position using the stored relative position information relating to a relative position of the teats of the animal in relation to one another; and applying one of the teat cups (7) to the further teat using the further position. The invention further relates to a device for automatically placing teat cups (7) onto teats of a milk-producing animal, in particular a cow, comprising a present process controller configured to carry out such a method, said process controller evaluating the information from the sensor and actuating the placement device.
Claims
1. A method for automatically placing teat cups (7) onto teats of a milk-producing animal, in particular a cow, the method comprising the steps: creating a two-dimensional image of a plurality of teats of the animal, wherein distance information for a plurality of image points of the two-dimensional image is available; evaluating the two-dimensional image and the distance information and ascertaining a position of a first teat in a specified coordinate system; determining a position of a second teat on the basis of the previously ascertained first teat position using stored relative position information that relates to relative positions of teats of the animal; and placing a teat cup onto the second teat using the determined position of the second teat.
2. The method of claim 1, wherein the first teat is a front teat with respect to an imaging sensor, and the second teat is a rear teat with respect to the imaging sensor.
3. The method of claim 1, wherein the stored relative position information is established on the basis of at least one previously created two-dimensional image and associated distance information of at least two teats.
4. The method of claim 3, and further comprising the step of: offsetting an ascertained position and the stored relative position information against one another to change the stored relative position information.
5. The method of claim 4, wherein the step of offsetting the ascertained position and the stored relative position information comprises the step of: forming an average value of relative positions.
6. The method of claim 5, wherein the step of forming an average value comprises the step of: forming a weighted average of relative positions.
7. The method of claim 1, wherein the two-dimensional image is created using a time-of-flight sensor having a plurality of image points, wherein distance information is ascertained in a phase detection method for each of the image points.
8. The method of claim 1, wherein a teat cup to be placed on a teat is also captured in the two-dimensional image, and the method further comprises the step of: ascertaining a position of the teat cup.
9. The method of claim 8, wherein the teat cup is moved considering an ascertained position of the teat in the specified coordinate system and the ascertained position of the teat cup in the same coordinate system.
10. The method of claim 1, wherein the relative position information for at least one of the teats is stored in the form of a vector, wherein the vector indicates a relative position of the teat with respect to a specified reference point.
11. The method of claim 10, wherein the specified reference point is selected to be equal to the position of one of the teats.
12. A device for automatically placing teat cups onto teats of a milk-producing animal, in particular a cow, the device comprising: a placement device; and a sensor for capturing a two-dimensional image of the teats of the animal and distance information for at least a plurality of image points of the two-dimensional image; and a sequence control, set up to perform a method comprising the steps of: creating a two-dimensional image of a plurality of teats of the animal, wherein distance information for a plurality of image points of the two-dimensional image is available; evaluating the two-dimensional image and the distance information and ascertaining a position of a first teat in a specified coordinate system; determining a position of a second teat on the basis of the previously ascertained first teat position using stored relative position information that relates to relative positions of teats of the animal; and placing a teat cup onto the second teat using the determined position of the second teat.
13. The method of claim 1, wherein the stored relative position is changed on the basis of at least one previously created two-dimensional image and associated distance information of at least two teats.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The invention will be explained in more detail below on the basis of an exemplary embodiment with reference to figures, in which:
[0023]
[0024]
DETAILED DESCRIPTION OF THE DRAWINGS
[0025]
[0026] In the illustrated exemplary embodiment, the milking cluster 6 comprises four teat cups 7, which are connected to a milking apparatus (not illustrated here either) by milk and vacuum tubes 8. The four teat cups 7, shown in the illustrated exemplary embodiment, serve for milking cows, for example. For other animals, for example goats or sheep, a different number of, for example two, teat cups can be provided in the milking cluster.
[0027] The teat cups 7 in the illustrated exemplary embodiment are mounted on the milking cluster carrier 5 by way of a segment element 9. The segment element 9 comprises a plurality of annular hollow segments, through which, inside the segment element 9, a pulling means, for example a rope or chain, extends that can be tensioned via an actuator. In the depiction of
[0028] Furthermore arranged on the milking cluster carrier 5 is an imaging sensor 10 which is a TOF sensor in the present case and is correspondingly able to create a two-dimensional (2D) image with a specified number of image points (pixels), wherein in each case distance information for the distance between the image sensor 10 and the object, imaged by the respective pixels, is additionally provided for the image points. In this sense, the imaging sensor 10 can also be considered to be a 3D sensor, since it provides lateral and depth information. For this reason, the sensor 10 will also be referred to below as 3D sensor 10.
[0029] Arranged around the 3D sensor 10 are light sources 11 that serve for illuminating the field of view captured by the 3D sensor 10. The arrangement and orientation of the 3D sensor 10 are selected such that, with appropriate orientation of the milking cluster carrier 5, in principle all teats of the animal to be milked can be in the field of view of the 3D sensor 10. Aside from possible obscuration of the teats, the 3D sensor 10 thus provides information from which the position and orientation of all teats of the milk-producing animal can be ascertained at the same time. The image section is preferably also chosen such that even teat cups 7 in the raised position can be captured by the 3D sensor 10.
[0030] In connection with a flowchart represented in
[0031] However, it is to be understood that the method according to the invention can also be performed with devices of different design. For example, the robot arm that is used to move the teat cups 7 can differ from the one illustrated in
[0032] For the placement method described below, the assumption is made that a milk-producing animal enters or has entered an automated milking parlor. Upon entry or after the entry of the animal into the milking parlor, the animal is identified in a first step S1. Various methods are known for this purpose, for example the animal carries an RFID (radio frequency identification) tag that is captured in the milking parlor or upon entry into the milking parlor by a receiver, wherein an identification number of the animal is transmitted.
[0033] In a next step S2, animal-specific data is retrieved from a local or central data store on the basis of the received identification number of the animal. The animal-specific data, subsequently also referred to as animal data, includes information relating to the positioning of the animal in the milking parlor, a preferential position adopted by the robot arm, for example the robot arm 1, and the milking cluster carrier 5 as an animal-specific standard position, and relative position information of the teats of the animal with respect to one another. The various pieces of information and the meaning thereof for the present method will be explained in more detail below.
[0034] In a next step S3, the animal is positioned within the milking parlor using the received position information. This can be done, for example, by bringing a feed trough arranged in the milking parlor into a suitable longitudinal position. In other configurations of the milking parlor, provision may be made to bring, instead of the feed trough, a positioning via a bar which rests on the hindquarters of the animal and is settable with respect to its position inside the milking parlor into a suitable position. It should be pointed out that in further alternative configurations, step S3 for positioning can be omitted, for example if a device for recognizing the adopted animal position is present, which performs pre-positioning of the robot arm in subsequent method steps.
[0035] In a next step S4, the robot arm is displaced to the preferential position, which was received in step S2, under the animal to be milked.
[0036] In a next step S5, the 3D sensor 10 is used to record a first 2D image including distance information of the udder of the animal by way of the 3D sensor 10. The image is examined in terms of whether typical structures of the teats of the animal are visible. To this end, known image analysis methods can be used, for example those for edge detection. If it is not possible to identify any structures that correspond to a teat, a search method can be interposed, in which the milking cluster carrier 5 and/or the robot arm 1 is pivoted and/or tilted and/or varied in terms of its height until a structure that corresponds to the udder and to the teats lies in the field of view of the imaging sensor 10.
[0037] If teats can be identified in the 2D image, the number and the respective position of a possibly identified teat are extracted from the 2D image information and the distance information provided by the 3D sensor. If the number of structures that have been identified as possible teats exceeds the number of teats that are actually present, which may have likewise been retrieved in step S2 specific to the animal, a corresponding number of structures that have the highest probability level (significance level) of actually corresponding to a teat is selected.
[0038] In a next step S6, it is ascertained whether one of the teats on which placement is to be performed next is visible in the image of the 3D sensor 10. In the geometry of the robot arm 1 shown in
[0039] If at least one suitable teat (i.e. initially one of the two rear teats) could be found in step S6, the method branches to a next step S7, in which the teat cup 7 that is assigned to the found teat is raised by actuating the corresponding actuator and is placed onto the teat. This is preferably done with continuous observation by the 3D sensor 10, wherein both the teat and the corresponding teat cup 7 are identified in the image and their positions are ascertained from the image and the distance information.
[0040] Any angled position of the teats can also be detected here and be taken into consideration in an exact determination of the position of the tips of the teats. The robot arm 1 is then actuated on the basis of the relative position of teat to teat cup 7.
[0041] In a next step S8, it is determined whether all teat cups 7 have been placed onto the number of available teats. If so, the method terminates and the milking process can begin or continue if after successful placement on one of the teats milking of the corresponding teat has already started. If not all teat cups 7 have yet been placed, the method branches from step S8 back to step S5, wherein once again an image of the teats is taken by the 3D sensor 10 and analyzed in step S6 as to whether the second of the rear teats is visible. If so, the second rear teat cup 7 is placed in step S7 and the method is repeated, wherein in that case the two teat cups that are assigned to the front teats are then to be placed one after the other.
[0042] Provision is advantageously made for placement to be performed first on the two rear teats and only then on the two front teats. Whether placement is first performed on the left one or on the right one of the rear teats, and later of the front teats, is dependent on which of the teats is more easily visible.
[0043] If during the placement on one of the two rear teats it is found that the targeted teat is not visible, for example because it is obscured by one of the front teats, the method branches from step S6 first to a step S9, instead of step S7.
[0044] In this step S9, it is ascertained whether the position of at least one, preferably of two, of the other teats can be determined. If not, the placement method must be terminated in a step S10 and possibly restarted.
[0045] If at least one, preferably one further, teat is visible, for example the two front teats during the placement on one of the rear teats, the position of the non-visible teat is calculated in a step S11 on the basis of the position of the one or the two visible teats using the stored animal-specific relevant position information. Using the calculated position, the placement method is continued in step S7, wherein in that case only the teat cup 7 is monitored in its position using current information of the 3D sensor 10 and the robot arm 1 is actuated such that the teat cup 7 with the observed position is moved to the calculated position of the non-visible teat.
[0046] The method is then continued with step S8, from where it is possibly terminated or branches back once more to step S5.
[0047] In the method discussed above, it is assumed that relative position data for the corresponding animal is already available. Provision may be made for steps S9 to S10 to be excluded until this condition is in fact met. Provision may furthermore be made in an advantageous configuration of the method for the relative position data to be updated during each placement process. To this end, in step S5 an interrogation can be performed as to whether position information is present with respect to at least two, preferably more, of the teats because the teats are identifiable at the same time in an image of the 3D sensor 10 and distance information is available. It is possible to ascertain, from position information of at least two teats, a relative position of one of the teats relative to the other. The relative position information comprises for example, in vectorial illustration, the stored relative positions of the teats with respect to one another. For example, one of the teats can be considered the reference teat and the position of the other teats relative to the former can be indicated in each case in the form of a vector with three components, with one component for each spatial direction x, y, z. If the relative position of one of the teats relative to the reference teat is currently available, this information can be used to update the stored relative positions. It may be advantageous here not to wholly adopt the current position information and overwrite the stored relative position therewith, but instead for an average value to be formed from the stored and from the current relative position and be stored as the new value. Provision may be made for the influence of the two input variables the previously stored relative position and the currently ascertained relative position not to be taken into consideration in the same way in the average value formation. It may be advantageous to this end for a weighting factor to be specified that describes the weighting of one of the two input variables.
[0048] For illustration purposes, a one-dimensional example is given below, in which it is assumed that two of the teats are at a distance from one another in only one spatial direction. The distance stored in the relative position information will be designated x.sub.a below. From the current evaluation of the information of the imaging sensor, a currently measured distance of x.sub.m is obtained. Next, an average distance value x which is to be newly stored can be given as:
x=((1g).Math.x.sub.a+g.Math.x.sub.m)/2,
wherein the weighting factor g is selected from a range of 0 to 1 and determines the magnitude of the influence of the previously stored distance value and the currently measured distance value on the distance value that is to be newly stored.
[0049] A value of g=0.5 corresponds to a regular average value formation. For a value g>0.5, the currently measured distance value has a stronger weighting, and for a value g<0.5, the stored distance value has a stronger weighting. It has been shown that a value from a range of 0.25>g>0.5 and preferably of 0.3>g>0.35 is particularly suitable. Values from the stated ranges represent a good compromise in which random fluctuations of the measurement values are not excessively weighted and in which the stored values still adapt to current measurement values with a minor time delay.
[0050] In the method illustrated in