The present invention relates to a peritoneal dialysis machine for the carrying out of a peritoneal dialysis treatment having recurring cycles, the cycles comprising an inflow phase, a dwell period and a drainage phase for the dialysis fluid, wherein the machine has a control unit and a measurement apparatus for determining the inflow and/or drainage rate of the dialysis fluid to and from a patient, wherein the control unit is configured to carry out a comparison between a time progression curve of the inflow rate and/or of the drainage rate determined by the measurement apparatus during an inflow phase and/or a drainage phase and a corresponding reference curve and to recognize on the basis of this comparison a disturbance in the inflow and/or drainage of the dialysis fluid to and from the patient.