Background: Recorded brain activity analysis is a major tool used in modern medicine and sleep-based research. However, the volume and complexity of the data make manual investigation difficult. Furthermore, high inter-subject variability presents a challenge to deep learning techniques, especially in the detection of sleep-related EEG patterns and artifacts. Methods: Sleep Pattern Identifier (SPI), a hybrid classifier, was used in this study to address the aforementioned issues. SPI tests the efficacy of artifact detection while examining strategies and tactics used in real-world sleep research. A focus was on inter-subject variability, especially in data gathered from participants suffering from sleep disorders. For comparison and visual inspection of the data, formal statistical measures like accuracy, model loss, precision, recall, and ROC were employed. Results: With an accuracy of 94.85%, the suggested model outperformed current techniques and demonstrated higher accuracy. Further, the Sleep-EDF dataset was used in this investigation. Conclusion: The conclusion highlights the effectiveness of the SPI hybrid classifier in identifying EEG patterns, especially in situations where sleep research is conducted in the real world. Research methodologies based on sleep have made significant progress in handling artifacts and adapting to inter-subject variability.