A living area, which comprises a lying and eating area and a milking area, is connected to a separation area by means of a selection device. A subgroup of dairy animals to be separated is determined as well as an end time at which it is desired that the dairy animals to be separated are located in the separation area. An individual separation period is determined for each individual dairy animal from the subgroup to be separated separately, which runs from an individually determined start time to the end time. A dairy animal that has walked to the selection device is led through the selection device to the separation area if that dairy animal belongs to the subgroup of dairy animals to be separated and that dairy animal is at the selection device in the individual separation period determined for that dairy animal. Activity of each dairy animal from the group of dairy animals is observed by means of a observation system while that dairy animal is in the lying and eating area. The individual separation period of each individual dairy animal from the subgroup to be separated is dependent on that activity of that dairy animal observed by the observation system.Een verblijfsruimte, die een lig- en vreetruimte en een melkruimte omvat, is door middel van een selectie-inrichting verbonden met een separatieruimte. Bepaald worden een te separeren subgroep melkdieren alsmede een eindtijd waarop gewenst is dat de te separeren melkdieren zich in de separatieruimte bevinden. Voor elk individueel melkdier uit de te separeren subgroep afzonderlijk wordt een individuele separatieperiode bepaald, die loopt vanaf een individueel bepaalde starttijd tot de eindtijd. Een melkdier dat naar de selectie-inrichting is gelopen, wordt door de 10 selectie-inrichting naar de separatieruimte geleid als dat melkdier bij de te separeren subgroep melkdieren behoort en dat melkdier in de voor dat melkdier bepaalde individuele separatieperiode bij de selectie-inrichting staat. Activiteit van elk melk