Automated Detection And Prediction Of Sleep Apnea Events