It's a temperature thing, if they're failing then they've reached their lowest-available-power level by about 2-4am depending on house conditions. Then when they warm up again later the beeping stops, until the next night. Crude test for a suspect alarm if you can't exactly monitor the battery voltage is to put it in the fridge for a few hours.