An implantable drug delivery device and method that includes a sensor device for detecting the motion of a diaphragm of an accumulator over time. Sensor data from the sensor device may enable indirect measurement of the flow conditions of the device. A processor within the implantable drug delivery device may use the sensor data to detect when motion of the diaphragm of the accumulator over time is outside normal or acceptable parameters and take an action in response.