METHOD, CONTROL UNIT AND COMPUTER PROGRAM FOR CONTROLLING MILK EXTRACTION VIA AN AUTOMATIC MILKING MACHINE

20210345577 · 2021-11-11

    Inventors

    Cpc classification

    International classification

    Abstract

    An automatic milking machine extracts milk from the teats of an animal by applying a milking vacuum to a respective teat receiving cavity of a teat cup (111, 112, 113, 114) each in which one of the teats is located during a milking session. The milking session includes a boost phase (TBOOST) and is concluded by an exit phase (TEXIT). During the boost phase (TBOOST), the milking vacuum is applied at an elevated pressure level. During the exit phase, the milking vacuum is applied at one or more levels, each of which is lower than the elevated pressure level. The operation of the automatic milking machine transitions from the boost phase (TBOOST) to the exit phase (TEXIT) when (t2) a temporal criterion is fulfilled.

    Claims

    1. A method implemented in a control unit for controlling an automatic milking machine to extract milk from teats of an animal during a milking session (T.sub.M) by applying a milking vacuum (P) to a respective teat receiving cavity of a teatcup (111, 112, 113, 114) each in which one teat of said teats is located, the method comprising: a boost phase (T.sub.BOOST) of the control unit causing the automatic milking machine to apply the milking vacuum (P) at an elevated pressure level (P.sub.B); and following the boost phase (T.sub.BOOST), an exit phase (T.sub.EXIT) that concludes the milking session (Tm), in the exit phase (T.sub.EXIT) the control unit causing the automatic milking machine to apply the milking vacuum (P) at one or more levels (PX; PX1, PX2), which one or more levels (PX; PX1, PX2) each is lower than the elevated pressure level (P.sub.B), wherein, the control unit causes the automatic milking machine to transition from the boost phase (T.sub.BOOST) to the exit phase (T.sub.EXIT) when (t.sub.2) a temporal criterion is fulfilled, a condition for fulfilling the temporal criterion being based on data (D1) having been registered during one of more previous milking sessions (T.sub.M).

    2. The method according to claim 1, comprising calculating the condition for fulfilling the temporal criterion based on the data (D1; D2) registered during the one or more previous milking sessions (T.sub.M), the data (D1; D2) being milk flow data (D1; D2).

    3. The method according to claim 2, comprising: retrieving, from a memory unit (160), data (D2) reflecting respective individual milk flow profiles of each of the animal's teats, which data (D2) have been registered during at least one previous milking session (T.sub.M), each of said individual milk flow profiles representing a respective milk flow (F.sub.a, F.sub.b, F.sub.c, F.sub.d) as a function of time (t); and calculating the condition for fulfilling the temporal criterion based on said individual milk flow profiles.

    4. The method according to claim 2, wherein the calculating of the condition for fulfilling the temporal criterion comprises: retrieving, from a memory unit (160), data (D1) reflecting an overall milk flow profile from the animal's udder, which data (D1) have been registered during at least one previous milking session (T.sub.M), said overall milk flow profile representing a combined milk flow (F) from all the animal's teats as a function of time (t); and calculating the condition for fulfilling the temporal criterion based on said overall milk flow profile.

    5. The method according to claim 1, any one of the preceding claims, wherein the temporal criterion is calculated such that the temporal criterion is fulfilled when a particular fraction of an expected total milk yield has been extracted since the milking session (T.sub.M) was initiated (t.sub.0).

    6. The method according to claim 1, wherein the temporal criterion is calculated such that the temporal criterion is fulfilled when a period of time (TP) has elapsed since an estimated incline stage (t′1) in the milk flow (F) occurred, and the method further comprises: deriving the estimated incline stage in the milk flow (F) based on data (D1; D2) registered during at least one previous milking session (T.sub.M), which data (D1; D2) describe at least one milk flow profile representing a milk flow (F) as a function of time (t).

    7. The method according to claim 1, further comprising an initiating phase (T.sub.INIT) proceeding the boost phase (T.sub.BOOST) during which initiating phase (T.sub.INIT) at least one action is performed for stimulating the production of Oxytocin in the animal.

    8. The method according to claim 7, wherein the at least one action for stimulating the production of Oxytocin in the animal comprises at least one of: applying the milking vacuum (P) at an initial pressure level (P.sub.i) while the teats are located in the teat receiving cavities, which initial pressure level (P.sub.i) is lower than the elevated pressure level (P.sub.B); subjecting the teats to a cleaning procedure; and scrubbing the teats with at least one brush.

    9. The method according to claim 8, wherein the cleaning procedure involves using at least one dedicated cleaning cup which is different from the teat receiving cavities (111, 112, 113, 114) used for extracting milk from the teats.

    10. The method according to claim 7, comprising transitioning from the initiating phase (T.sub.INIT) to the boost phase (T.sub.BOOST) in response to at least one of: expiry of a time period (TI) since the milking session started, and registering a milk flow (F) above a threshold level (F.sub.TH).

    11. The method according claim 1, comprising applying the milking vacuum (P) at one fixed level (PX) throughout the exit phase (T.sub.EXIT).

    12. The method according to claim 1, comprising adjusting the level (FX1, FX2) of the milking vacuum (P) during the exit phase (T.sub.EXIT) in response to at least one measured milk flow (F; F.sub.a, F.sub.b, F.sub.c, F.sub.d).

    13. The method according to claim 1, comprising stopping the milking session (T.sub.M) in response to an end criterion being fulfilled during the exit phase (T.sub.EXIT).

    14. The method according to claim 1, comprising: registering, during the milking session (T.sub.M), data (D1, D2) reflecting at least one milk flow (F; F.sub.a, F.sub.b, F.sub.c, F.sub.d) as a function of time (t), the registered data (D1; D2) representing either a respective individual milk flow profile of each of the animal's teats, or an overall milk flow profile of the animal's udder; and storing the registered data in a memory unit (160).

    15. A non-transitory computer-readable medium on which is stored a computer program (157) loadable into a non-volatile data carrier (153) communicatively connected to a control unit (150), the computer program (157) comprising software that performs the method according to claim 1 when executed by a processing unit (155) in the control unit (150).

    16. (canceled)

    17. A control unit (150) for controlling an automatic milking machine to extract milk from the teats of an animal during milking session (T.sub.M) by applying a milking vacuum (P) to a respective teat receiving cavity of a teatcup (111, 112, 113, 114) in which one of said teats is located, the milking session (T.sub.M) comprising a boost phase (T.sub.BOOST) and being concluded by an exit phase (T.sub.EXIT), and the control unit (150) being configured to cause the automatic milking machine to: apply the milking vacuum (P) at an elevated pressure level (P.sub.B) during the boost phase (T.sub.BOOST), and apply the milking vacuum (P) at one or more pressure le¬vels (PX; PX1, PX2) during the exit phase (T.sub.EXIT), which one or mo¬re pressure levels (PX; PX1, PX2) each is lower than the ele¬vated pressure level (P.sub.B), wherein the control unit (150) is further configured to cause the automatic milking machine to transition from the boost phase (T.sub.BOOST) to the exit phase (T.sub.EXIT) when (t.sub.2) a temporal criterion is fulfilled, a condition for fulfilling the temporal criterion being based on data (D1) having been registered during one or more previous milking sessions (T.sub.M).

    18. The control unit (150) according to claim 17, comprising a processing unit (155) configured to calculate the condition for fulfilling the temporal criterion based on the one or more previous milking sessions (T.sub.M).

    19. The control unit (150) according to claim 18, wherein the control unit (150) is communicatively connected to a memory unit (160), and the processing unit (155) is configured to: retrieve, from the memory unit (160), data (D2) reflecting respective individual milk flow profiles of each of the animal's teats, which data (D2) have been registered during at least one previous milking session (T.sub.M), each of said individual milk flow profiles representing a respective milk flow (F.sub.a, F.sub.b, F.sub.c, F.sub.d) as a function of time (t); and calculate the condition for fulfilling the temporal criterion based on said individual milk flow profiles.

    20. The control unit (150) according to claim 18, wherein the control unit (150) is communicatively connected to a memory unit (160), and the processing unit (155) is configured to: retrieve, from the memory unit (160), data (D1) reflecting an overall milk flow profile from the animal's udder, which data (D1) have been registered during at least one previous milking session (T.sub.M), said overall milk flow profile representing a combined milk flow (F) from all the animal's teats as a function of time (t); and calculate the condition for fulfilling the temporal criterion based on said overall milk flow profile.

    21. The control unit (150) according to claim 17, wherein the processing unit (150) is configured to calculate the temporal criterion such that the temporal criterion is fulfilled when a particular fraction of an expected total milk yield has been extracted since the milking session (T.sub.M) was initiated (t.sub.0).

    22. The control unit (150) according to claim 17, the processing unit (150) is configured to: calculate the temporal criterion such that the temporal criterion is fulfilled when a period of time (TP) has elapsed since an estimated incline stage (t′1) in the milk flow (F) occurred; and derive the estimated incline stage in the milk flow (F) based on data (D1; D2) registered during at least one previous milking session (T.sub.M), which data (D1; D2) describe at least one milk flow profile representing a milk flow (F) as a function of time (t).

    23. The control unit (150) according to claim 17, wherein the control unit (150) is configured to control the automatic milking machine to perform at least one action for stimulating the production of Oxytocin in the animal by at least one of: applying the milking vacuum (P) at an initial level (P.sub.i) while the teats are located in the teat receiving cavities, which initial level (P.sub.i) is lower than the elevated pressure level (P.sub.B); subjecting the teats to a cleaning procedure; and scrubbing the teats with at least one brush.

    24. The control unit (150) according to claim 23, wherein the control unit (150) is configured to control the cleaning procedure such that at least one dedicated cleaning cup is used which is different from the teat receiving cavities (111, 112, 113, 114) used for extracting milk from the teats.

    25. The control unit (150) according to claim 17, wherein the control unit (150) is configured to control the milking machine to apply the milking vacuum (P) at one fixed level (PX) throughout the exit phase (T.sub.EXIT).

    26. The control unit (150) according to claim 17, wherein the control unit (150) is configured to adjust the level (FX1, FX2) of the milking vacuum (P) during the exit phase (T.sub.EXIT) in response to at least one measured milk flow (F; F.sub.a, F.sub.b, F.sub.c, F.sub.d).

    27. The control unit (150) according to claim 17, wherein the control unit (150) is configured to control the automatic milking machine to stop the milking session (T.sub.M) in response to an end criterion being fulfilled during the exit phase (T.sub.EXIT).

    28. The control unit (150) according to claim 17, wherein the control unit (150) is configured to control: registering, during the milking session (T.sub.M), of data (D1, D2) reflecting at least one milk flow (F; F.sub.a, F.sub.b, F.sub.c, F.sub.d) as a fun¬ction of time (t), the registered data (D1; D2) representing either a respective individual milk flow profile of each of the ani¬mal's teats, or an overall milk flow profile of the animal's udder; and storing the registered data (D1, D2) in a memory unit (160).

    Description

    BRIEF DESCRIPTION OF THE DRAWINGS

    [0024] The invention is now to be explained more closely by means of preferred embodiments, which are disclosed as examples, and with reference to the attached drawings.

    [0025] FIG. 1 shows a first embodiment of the invention, wherein the control unit controls an automatic milking machine in milking-cluster operation;

    [0026] FIG. 2 shows a second embodiment of the invention, wherein the control unit controls an automatic milking machine in quarter-milking operation;

    [0027] FIG. 3a shows a diagram exemplifying a milk flow profile of an animal;

    [0028] FIG. 3b shows a diagram illustrating how a corresponding milking vacuum is varied over time;

    [0029] FIG. 4 shows an example of an udder-milk-flow profile for an animal;

    [0030] FIGS. 5a-d exemplify milk flow profiles of the individual teats corresponding to the milk flow profile in FIG. 4;

    [0031] FIG. 6 illustrates, by means of a flow diagram, a method according to one preferred embodiment of the invention.

    DETAILED DESCRIPTION

    [0032] FIG. 1 shows a milking cluster for udder milking, i.e. wherein milk is extracted jointly from all the teats of an animal's udder 105 based on variations in a pressure common to all teats. Here, a pulsator controller 135 is arranged to control a pulsator vacuum from a vacuum pump 130 to be applied repeatedly to pulsation chambers formed between each teatcup and its respective liner therein. The milking claw 115 is connected to teat receiving cavities in the form of a set of four teatcups 111, 112, 113 and 114 via respective milk hoses. The teatcups 111, 112, 113 and 114, in turn, are attached to a respective teat of the udder 105. The pulsator controller 135 is configured to apply the pulsator vacuum to all the four teatcups 111, 112, 113 and 114 while a milking vacuum prevails in the milk hoses. Milk is extracted from the udder 105, withdrawn by the milking vacuum, collected in the milking claw 115 and forwarded through a milk conduit 120. A flow meter 125 registers a parameter representing a measured milk flow F in the milk conduit 120. The measured milk flow F may be registered either continuously or repeatedly at discrete time instances. In any case, the parameter representing the measured milk flow F is forwarded to a control unit 150.

    [0033] According to one embodiment of the invention, the control unit 150 is configured to control registering of data D1, which reflect the milk flow F as a function of time t during a milking session T.sub.M. FIG. 4 shows one such example, i.e. a so-called milk flow profile. Typically, the milk flow profile has as an incline stage during which the milk flow increases, a plateau stage during which the milk flow is relatively constant, and a decline stage during which the milk flow would finally decrease down to a minimal level at some point in time t.sub.E, i.e. the animal's milk secretion rate. However, due to inter alia animal-health and efficiency reasons, the milking never continues until t.sub.E. Instead, the milking session T.sub.M ends at an appropriate earlier point in time. In FIG. 1, the registered data D1 represent an overall milk flow profile of the animal's udder 105, such as the one illustrated in FIG. 4. The control unit 150 is further configured to control the storing of the registered data D1 in a memory unit 160.

    [0034] According to the invention, the control unit 150 generally controls an automatic milking machine to extract milk from the teats of an animal during a milking session by applying a milking vacuum P to extract milk via the teat receiving cavities 111, 112, 113 and 114 respectively each in which one of the animal's teats is located. In FIGS. 1 and 2, this functionality is symbolized by a signal Ctrl from the control unit 150.

    [0035] Referring now to FIG. 3a, we see another example of a milk flow F as a function of time t during a milking session T.sub.M. The milking session T.sub.M may contain an initiating phase T.sub.INIT, during which for example various actions are performed to stimulate the production of Oxytocin in the animal. In any case, the milking session T.sub.M contains a boost phase T.sub.BOOST (following the initiating phase T.sub.INIT if any), and the milking session T.sub.M is concluded by an exit phase T.sub.EXIT.

    [0036] The control unit 150 is specifically configured to cause the automatic milking machine to apply the milking vacuum P at an elevated pressure level P.sub.B during the boost phase T.sub.BOOST. This is illustrated in FIG. 3b. Compared to a typical prior-art main phase vacuum pressure level, the elevated pressure level P.sub.B is relatively high. The elevated pressure level P.sub.B may be in the order of 48 kPa to 52 kPa, whereas in the prior-art, the main phase vacuum pressure level normally lies around 42 kPa. The inventor has found that the elevated pressure level P.sub.B better matches the animal's initial high delivery of milk when the alveoli production is in full progress. On the other hand, as will be explained below, the boost phase T.sub.BOOST is usually shorter than the duration of the typical main phase vacuum pressure level according to the prior art.

    [0037] During the exit phase T.sub.EXIT, the control unit 150 is configured to apply the milking vacuum P at one or more levels, here exemplified by P.sub.X or P.sub.X1 and P.sub.X2 respectively, which each is lower than the elevated pressure level P.sub.B. The control unit 150 is specifically configured to cause the automatic milking machine to transition from the boost phase T.sub.BOOST to the exit phase T.sub.EXIT when a temporal criterion is fulfilled.

    [0038] For illustration purposes, the example represented in FIG. 3a shows the optional initiating phase T.sub.INIT. This phase T.sub.INIT of the milking session T.sub.M starts at to; and at t.sub.1, the boost phase T.sub.BOOST begins. Then, at t.sub.2, we assume that the temporal criterion is fulfilled, and therefore the procedure transitions to the exit phase T.sub.EXIT. Finally, at t.sub.4, the exit phase T.sub.EXIT ends and the milking session T.sub.M stops.

    [0039] If the milking session T.sub.M includes the initiating phase T.sub.INIT, the operation of the milking machine preferably involves transitioning from the initiating phase T.sub.INIT to the boost phase T.sub.BOOST at the expiry of a time period T.sub.I since the milking session T.sub.M started, say 30 to 60 seconds later. Alternatively, the initiating phase T.sub.INIT may transition into the boost phase T.sub.BOOST at in response to registering a milk flow F above a threshold level F.sub.TH, i.e. an indicator of that the alveoli milk production is in progress.

    [0040] The horizontal axis of the diagram in FIG. 3a represents time t, and the vertical axis represents the registered milk flow F as a function of time t. Similarly, in FIG. 3b, the horizontal axis represents time t and the vertical axis represents the milking pressure P.

    [0041] Preferably, the control unit 150 contains a processing unit 155 in order to calculate a condition for fulfilling the temporal criterion. The condition is calculated based on one or more previous milking sessions T.sub.M.

    [0042] To enable such calculations, according to one embodiment of the invention, the control unit 150 is communicatively connected to a memory unit 160. The processing unit 155 is further configured to retrieve data D1 from the memory unit 160, which data D1 reflect an overall milk flow profile from the animal's udder 105, and which data D1 have been registered during at least one previous milking session T.sub.M. The overall milk flow profile represents a combined milk flow F from all the animal's teats as a function of time t, i.e. milk-flow measurements that have registered in a setup illustrated in FIG. 1.

    [0043] Referring now to FIG. 2, we see a quarter-milking setup, i.e. wherein milk is extracted individually from each of the animal's teats based on separate pressure variations in each teat receiving cavity. Thus, here, the pulsator controller 135 is arranged to control a pulsator vacuum from the vacuum pump 130 to be individually applied repeatedly to each pulsation chamber formed between each teatcup and its respective liner therein. Teat receiving cavities in the form of a set of four teatcups 111, 112, 113 and 114 are connected to a respective milk conduit 121, 122, 123 and 124. The teatcups 111, 112, 113 and 114 are further attached to a respective teat of the udder 105. Milk is extracted from the udder 105, withdrawn by the milking vacuum, and forwarded through the milk conduits 121, 122, 123 and 124. Flow meters 126, 127, 128 and 129 register parameters representing a respective measured milk flow F.sub.a, F.sub.b, F.sub.c and F.sub.d in the milk conduits 121, 122, 123 and 124 respectively from each of the teatcups 111, 112, 113 and 114. The measured milk flows F.sub.a, F.sub.b, F.sub.c and F.sub.d may be registered either continuously or repeatedly at discrete time instances. In any case, the registered parameters representing the measured milk flows F.sub.a, F.sub.b, F.sub.c and F.sub.d are forwarded to the control unit 150, and further fed to the memory unit 160 for storage as data D2.

    [0044] FIGS. 5a, 5b, 5c and 5d illustrate examples of the individual milk flow profiles of the teats in the animal's udder 105 registered via the milk flows F.sub.a, F.sub.b, F.sub.b and F.sub.d respectively. This means that, if added together, the milk flow profiles in FIGS. 5a, 5b, 5c and 5d would result in the milk flow profile of FIG. 4. As can be seen in this example, for two of the teats, the plateau stage is somewhat longer. In other words, the decline stage begins later, at T.sub.decl-a and T.sub.decl-b respectively, than for the other two teats, where the decline stage begins at T.sub.decl-c and T.sub.decl-d respectively. This is because the alveoli connected to the former teats contain more milk, and thus contributes more to the overall milk yield. The corresponding theoretical end points time t.sub.Ea and t.sub.Eb respectively also occur later for the former teats than for the latter ditto t.sub.Ec and t.sub.Ed respectively. Of course, detail knowledge about the teats' individual milk flow profile is therefore useful when calculating the temporal condition for transitioning from the boost phase T.sub.BOOST into the exit phase T.sub.EXIT.

    [0045] Depending on whether the retrieved data D1 or D2 reflect an overall milk flow profile or respective individual milk flow profiles of each of the animal's teats, the processing unit 155 is configured to either calculate the condition for fulfilling the temporal criterion based on the overall milk flow profile or the individual milk flow profiles. In any case, in the light of the historic data provided by the at least one previously registered milk flow profile, the processing unit 155 sets a point in time t.sub.2 when the boost phase T.sub.BOOST shall transition into the exit phase T.sub.EXIT. For example, this may occur a time T.sub.B after a point in time t.sub.1 when the boost phase T.sub.BOOST began. Alternatively, the boost phase T.sub.BOOST may transition into the exit phase T.sub.EXIT a period of time T.sub.P has elapsed since t′.sub.1 an estimated incline stage in the milk flow F occurred. In other words, the temporal criterion is calculated such that the temporal criterion is fulfilled when the period of time T.sub.P has elapsed since the point in time t′.sub.1. The processing unit 155 is configured to derive the estimated incline stage in the milk flow F based on data D1 or D2 respectively registered during at least one previous milking session T.sub.M.

    [0046] As yet another alternative, the processing unit 150 may be configured to calculate the temporal criterion such that the temporal criterion is fulfilled when a particular fraction of an expected total milk yield has been extracted since the milking session T.sub.M was initiated t.sub.0. In this case, the expected total milk yield is also estimated based on one or more milk flow profiles registered during at least one previous milking session. At a point in time t.sub.2 when 50% of the expected total milk yield have been extracted may be appropriate to end the boost phase T.sub.BOOST. However, according to the invention, any other fraction is equally well conceivable as a set point for the temporal criterion.

    [0047] Irrespective of on which basis the temporal criterion is set, the boost phase T.sub.BOOST, according to embodiments of the invention, the boost phase T.sub.BOOST ideally has an extension in time T.sub.B of around 50 to 100 seconds.

    [0048] As mentioned above, and as is apparent from FIGS. 3a and 3b, the boost phase T.sub.BOOST may be preceded by an initiating phase T.sub.INIT. In FIG. 3a, this phase extends from t.sub.0 to t.sub.1. According to one embodiment of the invention, the control unit 150 is configured to control the automatic milking machine to perform at least one action for stimulating the production of Oxytocin in the animal to be milked.

    [0049] Oxytocin is a peptide hormone and neuropeptide, which is released into the bloodstream in response to inter alia tactile stimulation of the teats. Among other things Oxytocin assists in instigating the lactation process. Therefore, the control unit 150 is preferably configured to control the automatic milking machine to apply the milking vacuum P at an initial pressure level P.sub.i while the teats are located in the teat receiving cavities 111, 112, 113 and 114 respectively. Namely, this results in tactile stimulation of the teats. The initial pressure level P.sub.i is relatively low, and clearly lower than the elevated pressure level P.sub.B.

    [0050] Alternatively, or additionally, the control unit 150 is configured to control the automatic milking machine to subject the teats to a cleaning procedure. Preferably, the cleaning procedure is effected by supplying cleaning and rinsing fluids to the teat receiving cavities 111, 112, 113 and 114. However, according to one embodiment of the invention, the control unit 150 is configured to control the cleaning procedure such that at least one dedicated cleaning cup is used which is different from the teat receiving cavities 111, 112, 113 and 114 used for extracting milk from the teats.

    [0051] Alternatively, or additionally, the control unit 150 is configured to control the automatic milking machine to scrub the animal's teats with one or more brushes to accomplish the desired tactile stimulation.

    [0052] The control unit 150 is preferably configured to control the milking machine throughout the entire milking session T.sub.M. According to one embodiment of the invention, this means that, during the exit phase T.sub.EXIT, the control unit 150 controls the milking machine to apply the milking vacuum P at one fixed level P.sub.X throughout the exit phase T.sub.EXIT. Alternatively, the control unit 150 controls the milking machine to adjust the level of the milking vacuum P during the exit phase T.sub.EXIT in response to at least one measured milk flow, for example F and F.sub.a, F.sub.b, F.sub.c, and F.sub.d respectively in FIGS. 1 and 2. FIG. 3b exemplifies two such differently adjusted pressure levels in the form of F.sub.X1 and F.sub.X2. During the exit phase T.sub.EXIT, the control unit 150 sets the milking vacuum P to a level that is adapted to the somewhat lower milk production in the later stages of the milking session T.sub.M. Thus, in the exit phase T.sub.EXIT, the milking vacuum P is lower than in the boost phase T.sub.BOOST.

    [0053] Preferably, the control unit 150 is further configured to control the automatic milking machine throughout the exit phase T.sub.EXIT, and thus cause the milking session T.sub.M to stop in response to fulfillment of an end criterion.

    [0054] It is generally advantageous if the above-described control unit 150 is configured to effect the above-mentioned procedure in an automatic manner by executing a computer program 157. Therefore, the control unit 150 may include a memory unit, i.e. nonvolatile data carrier 153, storing the computer program 157, which, in turn, contains software for making processing circuitry in the form of at least one processor in the control unit 150 execute the above-described actions when the computer program 157 is run on the at least one processor.

    [0055] In order to sum up, and with reference to the flow diagram in FIG. 6, we will now describe one preferred embodiment of the method according to the invention for controlling an automatic milking machine to extract milk from the teats of an animal during a milking session by applying a milking vacuum to a respective teat receiving cavity each in which the teats are located.

    [0056] In a first step 610, it is checked if the milk flow profile from at least one previous milking session is available; and if so, a step 620 follows. Otherwise, the procedure loops back and stays in step 610.

    [0057] In step 620 a temporal criterion is calculated, which temporal criterion determines when the operation of the milking machine shall transition from the boost phase to the exit phase. Thereafter, the milking session starts, either in a step 630, which is optional; or in a step 640. Step 630 involves executing an initiating phase to stimulate the production of Oxytocin in the animal to be milked.

    [0058] The boost phase follows in a step 640, either directly after step 620, or after step 630. Here, the milking vacuum is applied at an elevated pressure level.

    [0059] Subsequently, a step 650 checks if the temporal criterion is fulfilled. If so, a step 660 follows; and otherwise, the procedure loops back to step 640 for continued execution of the boost phase. In step 660, the exit phase is executed, and thereafter the procedure ends. During the exit phase, the milking vacuum is applied at one or more levels, which each is lower than the elevated pressure level.

    [0060] All of the process steps, as well as any sub-sequence of steps, described with reference to FIG. 6 may be controlled by means of a programmed processor. Moreover, although the embodiments of the invention described above with reference to the drawings comprise processor and processes performed in at least one processor, the invention thus also extends to computer programs, particularly computer programs on or in a carrier, adapted for putting the invention into practice. The program may be in the form of source code, object code, a code intermediate source and object code such as in partially compiled form, or in any other form suitable for use in the implementation of the process according to the invention. The program may either be a part of an operating system, or be a separate application. The carrier may be any entity or device capable of carrying the program. For example, the carrier may comprise a storage medium, such as a Flash memory, a ROM (Read Only Memory), for example a DVD (Digital Video/Versatile Disk), a CD (Compact Disc) or a semiconductor ROM, an EPROM (Erasable Programmable Read-Only Memory), an EEPROM (Electrically Erasable Programmable Read-Only Memory), or a magnetic recording medium, for example a floppy disc or hard disc. Further, the carrier may be a transmissible carrier such as an electrical or optical signal which may be conveyed via electrical or optical cable or by radio or by other means. When the program is embodied in a signal which may be conveyed directly by a cable or other device or means, the carrier may be constituted by such cable or device or means. Alternatively, the carrier may be an integrated circuit in which the program is embedded, the integrated circuit being adapted for performing, or for use in the performance of, the relevant processes.

    [0061] The term “comprises/comprising” when used in this specification is taken to specify the presence of stated features, integers, steps or components. However, the term does not preclude the presence or addition of one or more additional features, integers, steps or components or groups thereof.

    [0062] The invention is not restricted to the described embodiments in the figures, but may be varied freely within the scope of the claims.