Skip to content
Ananda Technologies Pvt. Ltd.
  • M.Tech
  • AI & ML
  • Python
  • In build

Sleep Apnea Detection · M.Tech Project

Matrix Profile ECG Features with a Lightweight CNN-Attention Model and Severity Scoring

Sleep apnea detection M.Tech project with source code: matrix profile distance features and RR-interval series feed a light CNN with channel attention that marks apnea minutes in single-lead ECG and grades each night. Includes thesis and IEEE paper.

Platform
AI & ML + Python
Thesis delivery
3–5 days, for you
1-on-1 setup
AnyDesk / Meet
Support
Till your viva

About this project

FULL PROJECT TITLE

Sleep Apnea Detection M.Tech Project: Matrix Profile ECG Features with a Lightweight CNN-Attention Model and Severity Scoring

Use this title in your synopsis and report.

Sleep apnea detection M.Tech project with source code: matrix profile distance features and RR-interval series feed a light CNN with channel attention that marks apnea minutes in single-lead ECG and grades each night. Includes thesis and IEEE paper.

About the sleep apnea detection M.Tech project

Many people stop breathing for short spells during sleep and never find out. The standard lab test is costly, so most cases stay undiagnosed. This sleep apnea detection M.Tech project works with only one ECG lead, the kind a patch or a home device can record, and asks a clear research question: can richer waveform features, minute-to-minute context and a small model give a reliable per-minute label and a per-night severity score that a doctor can trust?

Research behind it

Base paper. MPCNN: A Novel Matrix Profile Approach for CNN-based Single Lead Sleep Apnea in Classification Problem, IEEE Journal of Biomedical and Health Informatics, 2024. It computes minimum, maximum and mean distance profiles from ECG subsequences and feeds them to a modified LeNet-5 and two light networks, tested on Apnea-ECG and UCDDB.

Research gap. The distance profiles are used on their own and are not joined with RR-interval and amplitude features. Each one-minute segment is judged alone, without the minutes around it. There is no explained severity score, and CPU cost for home devices is not studied with detection quality.

Proposed system and novelty. Every minute of ECG becomes two inputs: matrix profile distance profiles, and the RR-interval and R-amplitude series. A two-branch 1D CNN with channel attention encodes both, and a small temporal block looks at neighbouring minutes. Minute labels are summed into a nightly apnea index and mapped to normal, mild, moderate or severe. An int8 copy is timed on a plain CPU.

Models compared. RR features with Random Forest and SVM, a plain 1D CNN, a CNN-LSTM and the base MPCNN method rebuilt on the same subject-wise split. The ablation tests each feature branch alone, removes channel attention and minute context, and compares the float model with the int8 one.

Students who like medical signals and tabular risk models together can also look at the stacked ensemble project for diabetes, heart and kidney risk.

How it works

  • An overnight record from PhysioNet Apnea-ECG is read, filtered and split into one-minute segments.
  • R-peaks are detected and noisy minutes are dropped.
  • Matrix profile distance features and RR-interval series are built for each minute.
  • The two-branch model labels each minute as apnea or normal, using the minutes on either side.
  • Minute labels give an hourly apnea count, a nightly index and a severity group.
  • The doctor sees the ECG with apnea minutes shaded and downloads the report.

Users and modules

The doctor or sleep technician adds a patient, uploads a recording, studies the shaded ECG and the hourly chart, reads the index and severity group and saves a PDF report. The admin manages users, switches between the float and int8 models, sets severity cut-offs and opens the comparison page. Everything runs on a normal laptop; the CNN-LSTM baseline is trained once on a free cloud notebook.

What you get

  • Phase 1 Research: Literature survey of 15-20 recent ECG apnea papers; Base paper (IEEE JBHI, 2024) with research gap and novelty; Apnea-ECG data study with signal and label EDA; Problem statement and objectives; Synopsis and Phase-1 report.
  • Phase 2 Implementation: Flask web app with doctor and admin panels; ECG filtering, R-peak detection and minute segmentation; Matrix profile distance and RR-interval feature builder; Baselines: RR features with RF / SVM, 1D CNN, CNN-LSTM, base MPCNN; Proposed two-branch CNN with channel attention and minute context; Severity module, int8 model and MySQL database.
  • Results: Accuracy, sensitivity, specificity, F1 and AUC per minute; Per-night apnea index correlation and severity accuracy; Ablation: feature branches, attention, context, int8; Model size and CPU time per night table; results.xlsx and all graphs in high resolution.
  • Thesis and paper: Thesis written for you (about 90 pages); IEEE conference paper draft; Journal paper draft; Publication guide.
  • Reviews, viva and support: PPTs for Review 1, Review 2 and final viva; Viva book with 50+ questions; A1 poster and project diary; Demo and code walkthrough videos; 1-on-1 setup, 2 revisions and support till viva.

Who can use this project

M.Tech and M.E. students of CSE and IT who want a biomedical signal dissertation with real deep learning work will find a good fit here. It also suits searches for sleep apnea detection using deep learning or a single-lead ECG classification project.

Who can take it

M.Tech CSE and M.Tech IT students who need a complete dissertation: research, working project, thesis and paper.

Your thesis stays unique

  • Different title variant for every student
  • Thesis and paper written fresh for you
  • Checked against all earlier copies
  • Same college, same year never repeated

Research behind it

Sleep Apnea Detection from Single-Lead ECG using Matrix Profile Distance Features and a Lightweight CNN-Attention Model with Per-Recording Severity

BASE PAPER

MPCNN: A Novel Matrix Profile Approach for CNN-based Single Lead Sleep Apnea in Classification Problem

Hieu X. Nguyen, Duong V. Nguyen, Hieu H. Pham, Cuong D. Do

IEEE Journal of Biomedical and Health Informatics, IEEE, 2024

DOI link Free copy

EXISTING SYSTEM

Home screening models mostly read R-peaks and RR intervals and drop the rest of the ECG waveform. A recent IEEE model adds matrix profile distance features but uses them alone, judges each minute in isolation and gives no per-night severity report.

PROPOSED SYSTEM

A two-branch 1D CNN with channel attention reads matrix profile distance features together with RR-interval and R-amplitude series, and a small temporal block adds context from neighbouring minutes. Minute outputs are summed into a nightly apnea index and severity group, and an int8 version is timed on a CPU.

RESEARCH GAP

  • The distance profiles are used alone and are not combined with RR-interval and amplitude features in one model.
  • Each one-minute segment is classified on its own, without the context of neighbouring minutes.
  • Per-recording results are reported, but an explained severity score for a clinician is not provided.
  • Model size and CPU inference time for home devices are not studied together with detection quality.

NOVELTY

  • Two-branch fusion of matrix profile distance features with RR-interval and R-amplitude series for each minute.
  • A light 1D CNN with channel attention plus a temporal block over neighbouring minutes.
  • A per-recording severity module that estimates an apnea index and maps it to normal, mild, moderate and severe groups.
  • A size versus quality study with an int8 quantised model timed on a CPU for low-power devices.

What you get

25 items, in the order you need them during M.Tech. This project is being built: the free abstract is ready now, and our team delivers everything below after you book.

Phase 1 Research

  • Literature survey of 15-20 recent ECG apnea papers
  • Base paper (IEEE JBHI, 2024) with research gap and novelty
  • Apnea-ECG data study with signal and label EDA
  • Problem statement and objectives
  • Synopsis and Phase-1 report

Phase 2 Implementation

  • Flask web app with doctor and admin panels
  • ECG filtering, R-peak detection and minute segmentation
  • Matrix profile distance and RR-interval feature builder
  • Baselines: RR features with RF / SVM, 1D CNN, CNN-LSTM, base MPCNN
  • Proposed two-branch CNN with channel attention and minute context
  • Severity module, int8 model and MySQL database

Results

  • Accuracy, sensitivity, specificity, F1 and AUC per minute
  • Per-night apnea index correlation and severity accuracy
  • Ablation: feature branches, attention, context, int8
  • Model size and CPU time per night table
  • results.xlsx and all graphs in high resolution

Thesis and paper

  • Thesis written for you (about 90 pages)
  • IEEE conference paper draft
  • Journal paper draft
  • Publication guide

Reviews, viva and support

  • PPTs for Review 1, Review 2 and final viva
  • Viva book with 50+ questions
  • A1 poster and project diary
  • Demo and code walkthrough videos
  • 1-on-1 setup, 2 revisions and support till viva

Included free with this project

1-on-1 setup session on AnyDesk or Google Meet

After you buy, we schedule a session at a time that suits you. Our developer installs the complete project on your own laptop, runs it with you and explains it — so you can present it with confidence.

  1. 1

    Pick a time

    We call or WhatsApp you to fix the slot

  2. 2

    We install it

    Full setup on your system over AnyDesk

  3. 3

    We explain it

    Flow, modules and database on Google Meet

Modules inside

14 working modules — each one is explained in the report.

  • Doctor: login and add patients with basic sleep details
  • Doctor: upload an overnight single-lead ECG record
  • Doctor: ECG viewer with apnea minutes shaded in red
  • Doctor: hourly apnea count chart for the whole night
  • Doctor: per-night apnea index with normal, mild, moderate or severe group
  • Doctor: download a PDF sleep report for the patient
  • Doctor: report history per patient with index trend across nights
  • Doctor: notification when a recording finishes processing
  • Admin: dashboard with recordings, patients and severity mix
  • Admin: manage doctors, sleep technicians and patients
  • Admin: upload and switch model versions (float or int8)
  • Admin: model comparison page with all baselines and the base paper method
  • Admin: settings for severity cut-offs and segment length
  • Profile, change password and notifications for every role

Want an extra module or a change?

We can add the features your guide asked for. Tell us what to change and get a quote on WhatsApp.

Customise this project

Technology used

Built with
Python 3.11, Flask (blueprints), Jinja2wfdb and NeuroKit2 for ECG reading, filtering and R-peak detectionstumpy for matrix profile distance featuresPyTorch (CPU) for the CNN, CNN-LSTM and attention modelsPyTorch dynamic quantisation for the int8 modelscikit-learn for Random Forest, SVM and metricsMySQL (XAMPP) with PyMySQLBootstrap 5 and Chart.js (local copies)Jupyter Notebook and Google Colab for training
Documents
Project abstract (2 pages, Word and PDF), Synopsis (Word and PDF), Phase-1 report (Word and PDF), Thesis / dissertation written for you (Word and PDF, about 90 pages), IEEE conference paper draft (Word), Journal paper draft (Word), Publication guide, Review 1, Review 2 and final viva PPTs, Viva book with 50+ questions and answers, A1 poster (PDF and PPTX), Project diary / logbook and guide meeting record, Setup guide with first-run checklist (Word and PDF), Project explanation with code walkthrough, Demo video and code walkthrough video

How buying works

  1. 1

    Read the free abstract

    Show it to your guide first

  2. 2

    Book on WhatsApp

    Sign in and tap Book

  3. 3

    Our team calls you

    Price, timeline and your details

  4. 4

    Project built for you

    Code, results and videos

  5. 5

    Thesis and paper

    Written with your details

  6. 6

    1-on-1 setup

    Installed and explained

How to run it

An overview — the full guide comes with the project, and we help you if anything doesn’t start.

  1. 1Install Python 3.11 (tick "Add to PATH") and XAMPP; start MySQL in XAMPP.
  2. 2Extract the project ZIP to a short path such as D:\MTech\.
  3. 3Open phpMyAdmin, create the database mtech_sleepapnea and import Database\mtech_sleepapnea.sql.
  4. 4Check config.py (default XAMPP user root with an empty password).
  5. 5Double-click Web_App\sleep_apnea_detection\run.bat: it creates the virtual environment and installs the requirements the first time.
  6. 6The browser opens at http://127.0.0.1:5000; log in with the demo accounts from README.txt.
  7. 7Trained models are already in the models folder, so no training is needed for the demo.
  8. 8Full steps with screenshots and the first-run checklist are in SETUP_GUIDE.pdf.

Questions about Sleep Apnea Detection M.Tech Project

Which dataset and base paper does the sleep study use?

It uses the open PhysioNet Apnea-ECG Database, with minute-by-minute apnea labels for the released recordings, and UCDDB as an optional outside test. The base paper is the 2024 IEEE JBHI MPCNN study, rebuilt as a baseline from its public code.

Will my thesis match another student's thesis?

No. You get your own title variant and a different model change or test set, and the thesis is written fresh for you. It is compared with every earlier copy of this project and has to stay under 10% match.

How do I present this work in the three reviews?

Review 1 covers the survey, signal plots, the preprocessing plan and the first screens. Review 2 shows the baselines, the rebuilt base paper features and a working upload-to-prediction flow. The final review presents the proposed model, the ablation table, int8 timing and the full app.

Why does the model look at neighbouring minutes of ECG?

An apnea event changes the heart rhythm for a stretch of time, not for one isolated minute. Reading nearby minutes cuts single-minute false alarms.

Can a doctor use the severity group as a final diagnosis?

No. It is a screening aid that shows who may need a full sleep study, and each report says so.

Sleep Apnea Detection M.Tech Project is "in build" — what does that mean?

The free abstract is ready now; the code, model and results are being built. Sign in and tap Book this project on WhatsApp: our team calls you, confirms the price and timeline, and delivers the project, thesis, papers and PPTs with your details.

Do I need a GPU or to train the model?

No. The trained model comes with the project. We install and run it on your own laptop in the free 1-on-1 setup session.

My university needs its own thesis format.

Upload your university format in the details form after you pay. Your thesis is written in that format.

Can I see something before buying?

Yes. Sign in and download the free abstract from this page, and check it with your guide first. All sales are final.

Can you publish the paper for me?

You get IEEE conference and journal format drafts and a publication guide with a journal list. Submitting and publishing is done by you and your guide; we do not promise acceptance.

Similar projects

All AI & ML projects →
M.TechIn buildAI & ML40% OFF

Network Intrusion Detection M.Tech Project: Hybrid Chi-Square and Mutual Information Filter with XGBoost-RFE and SHAP

Network intrusion detection M.Tech project with source code: rank-fused Chi-square and mutual information filtering, XGBoost-driven RFE and cost-sensitive XGBoost detect attacks on CIC-IDS2017 and UNSW-NB15, with SHAP reasons. Includes thesis and IEEE paper.

Free abstract· Download₹0
Book on WhatsApp₹15,000₹25,000View Project
M.TechIn buildAI & ML40% OFF

Code Vulnerability Detection M.Tech Project: Code Graph Neural Network Fused with Pretrained Code Embeddings and Line Highlighting

Code vulnerability detection M.Tech project with source code: C functions become code property graphs, a gated GNN and a pretrained code encoder are fused to flag risky functions and highlight suspect lines. Includes thesis and IEEE paper.

Free abstract· Download₹0
Book on WhatsApp₹15,000₹25,000View Project
M.TechIn buildAI & ML40% OFF

Parkinson's Disease Detection M.Tech Project: Calibrated Late Fusion of Voice Features and Smartphone Spiral Drawing on Android

Parkinson's disease detection M.Tech project with source code: an Android app records a sustained vowel and a finger-drawn spiral, and calibrated late fusion of XGBoost voice and MobileNetV3 spiral models gives a screening score. Includes thesis and IEEE paper.

Free abstract· Download₹0
Book on WhatsApp₹15,000₹25,000View Project
None of these fit your topic?Send your idea — we build it and share the quote first.Request custom project

Get Sleep Apnea Detection M.Tech Project for your submission

Leave your details and a counsellor will call to confirm your branch, any changes your guide needs, and how you want to pay.