Reciprocating positive-displacement diaphragm pump (1) intended for liquids and for medical use, has a driving part (10) within which there are an electromagnetic actuator (11), incorporating at least one coil (12) and activating a piston (14) of a moving member (15) capable of cyclic linear motion. The pump comprises a pump body (20) within which there is a pre-loaded diaphragm (22) able to undergo a translational movement by elastic deformation from a normal rest position to an adjacent position through the transmission of the work from a piston (14). It incorporates a device (30) for detecting out-of-tolerance variations in the intensity of the supply current by measurements (33), a device (40) for continuously measuring the position of the moving member (15) and devices (30, 45) for processing and analyzing the measurements, which are able to generate at least one malfunctioning alarm signal (35) indicating the detection of at least one malfunction of the pump.