A system that attached to mechanized milking equipment allows its automation that solves the subclinical mastitis by “differentiating” among each individual mammary quarter the time when teat cups must be removed after the milk is over, in an asynchronous and independent manner from other teat cups. Minimize the negative consequences of over-milking as a results of not removing teat cups on time after the milk flow has stopped reduces economic, financial and productivity problems arisen as a result of subclinical mastitis mainly caused by over-milking thus improving the product quality and amount. Mastitis produces somatic cells in milk, the greater the amount of these cells the lower the price received by the producer. Damage to the mammary gland may be permanent resulting in the loss of the gland and may be contagious.The system includes teat cups, tubes, collector, discrete flow sensor, vacuum sensor, command control, software comprising as a part thereof the mammary quarters with physiological and anatomical characteristics thereof.