Existing monitors for apnea miss many serious events because they do not adequately distinguish the heart signal in chest impedance from the respiratory signal. Described herein is a respiratory monitoring system and method for improved detection and response to apnea, particularly in a NICU setting but also useful in a home setting. This method filters from the chest impedance the part of the impedance that is caused by the beating of the heart in a human subject, and then identifies in real time significant silence in the filtered chest impedance signal, including determining the probability of apnea. If the probability of apnea exceeds a threshold value, the apneic subject can be stimulated using automated interactions such as a vibrating mattress or air blower.