Real-Time Sleep Stage Estimation from Biological Data with Trigonometric Function Regression Model