The aim of this paper is to develop an assistant analysis pillow for sleep apnea syndrome based on snoring recognition.After the system recognizes snoring,it adjusts the head posture by adjusting the pillow height,expands the respiratory tract to alleviate snoring symptoms.At the same time,the system counts and analyses the information of snoring interval,and gives suggestions on whether the user has sleep apnea syndrome.The system also presents these data to users to provide data support for treatment.The main work of this paper is as follows:This paper studies the detection and recognition method of snoring signal.By comparing the advantages and disadvantages of these schemes,the double threshold method based on short-time energy and short-time zero-crossing rate is determined as the endpoint recognition method,Mel frequency cepstrum coefficient is determined as the characteristic parameter,and K-nearest neighbor algorithm is determined as the snore recognition algorithm.At the same time,in view of whether the user has sleep apnea syndrome,this paper adopts an analysis method based on the frequency of apnea events.This paper carries on the system scheme design and function module analysis.The whole system is divided into two parts: device-side and server-side.The device-side carries out snoring signal detection and recognition,hardware control and data interaction with the server-side.The server-side receives the data sent by the device-side,and carries on the analysis and display of the data.In this paper,the hardware and software of the system device-side are designed.The hardware design includes the separate design of each module and the circuit connection between each module.Software design includes embedded transplantation of snoring algorithm,data communication with server-side and control logic of hardware peripherals.At the same time,in order to improve the real-time performance,this paper also optimizes the software through fixed-point floating-point operation.This paper designs the system server-side software.Server-side software design includes user registration and login module,user management module,snoring data communication module,snoring data query module and notification reminder module.At the same time,this paper also designs and optimizes the server-side database to meet the needs of user data storage.This paper carries out system simulation and test.Through the simulation of snoring signal detection and recognition algorithm and the test of the whole system,the final system test result shows that the snoring recognition accuracy rate of this paper reaches 94.76%,and the whole system can achieve long-term stable operation and achieve the desired objectives of this paper. |