Many science researchers believe that a healthy thinking depends on the quality of human sleep. Giving importance to the quality sleeps, several systems for the measurement of sleep quality were developed. All the systems can be divided into two sections -Wearable Devices & Automated devices. Exact estimation of the sleep quality by both the systems is quite difficult. Accurate assessment the quality of sleep depends on many physical and environmental factors such as dimension of bed, light effects, room temperature, any type of disease, oxygen level, etc. Accurately measurement these factors and establishing their relationship with sleep quality is a complex process. Measuring sleep quality through the systems currently available is not only complicated but also to a large extent expensive. This research attempts to summarize the systems available at present in measuring sleep quality. It divides the entire sleep-period into 4 parts and compares the accuracy of the predictions of the sleep related diseases at the end of each interval by applying machine-learning algorithms to the data of different time periods. In this research, diseases such as Insomnia and Bruxism have been included as a data set. With the results it is found that the slot 1 (12:00 -1:20) is the most important one in the processes of measuring sleep quality.