Patent attributes
A data processing system is configured to sense a pressure readings of an air-mattress. If the pressure readings are below a target pressure value representing a desired pressure for the air-mattress, the data processing system can transmit, to an air-pump, first instructions to increase the air pressure of the air mattress and determine a replacement value representing the amount of air pumped into the air mattress by the air-pump. The data processing system can compare the replacement value to a slow-leak threshold and to a catastrophic-leak threshold. The data processing system can, responsive to a determination that the replacement value is greater than the slow-leak value and less than the catastrophic-leak value, transmit, to the air-pump, second instructions to increase the air pressure of the air mattress to replace air in the air mattress lost to a slow leak so as to maintain the desired pressure for the air-mattress.