Before revision:  Three binary cross-entropy loss functions corresponding to sleep/wake, arousal presence/absence and apnea-hypopnea/normal detection tasks are summed up to generate our overall network loss function that is optimized using the Adam method.
After revision:  Three binary cross-entropy loss functions corresponding to sleep/wake, target arousal and apnea-hypopnea/normal detection tasks are summed up to generate our overall network loss function that is optimized using the Adam method.