alphanumericslab / OSET

http://sameni.org/OSET/
BSD 3-Clause "New" or "Revised" License
45 stars 27 forks source link

Data-drive GP filter four pager article corresponding implementation #5

Closed MircDumitru closed 2 years ago

MircDumitru commented 2 years ago

The Functions & Scripts used for results reported in the A Data-Driven Gaussian Process Filter for Electrocardiogram Denoising four page article.

The main function, i.e. the GP filter: GaussianProcessFilterInPhaseDiagFast.py -corresponds to the diagonal case, as reported in the article; -corresponds to the Algorithm 1 from the article

The script generating the CSV files corresponding to the GP filtered signals: GenerateCSVRawNoisyAndGPPhaseFilteredSignals.ipynb -Basically a two for loops applying the GP filter function for selected levels of noise and repetitions; -Contains the full pipe-line, i.e. the baseline wander removal, the R-peak detection; -It generates also the pure/noisy corresponding signals (used as inputs for when applying the wavelet function in Matlab) -The GP filtered signals, the noise signals, the noisy signals are all saved as .csv files containing the GP filtered signals or noise signals or noisy signals for all records in the database (in this case QT database) for all leads (in this case 2 leads).

The script generating the CSV files corresponding to the Wavelet filtered (I.e. the benchmark) : WaveletFilter.m -using the specific wavelet denoiser reported by Prof. Sameni as being the most efficient (hence the use as benchmark); -producing a corresponding .csv file with the wavelet filtered signals;

The script generating the CSV files corresponding to the Prof. Sameni GP implementation: RezaFilter.m

The script generating the CSV files corresponding to the QT estimations: QTEstimationForGPFilter.m

FIG3: the script generating the individual ECG comparisons (measurements vs. filter) for Prior, Posterior and Wavelet filtered signals ArticleECGFigsGeneration2

FIG4: the script generating the SNR curves comparing the GP filter and wavelet filter performances for all selected levels of noise & all repetitions AnalyseGPPhaseFiltAndWaveletFiltCSVFiles2.ipynb

FIG5: the script generating the QT IQR comparing the GP filter & wavelet filter performances for all selected levels of noise & all repetitions QTIQRFigureGenerator.ipynb

ADDENDUM The script allowing to see how the GP filter behaves on one signal, i.e. visualize the filtered compared with the pure/noisy signals and the SNR improvement for any chosen signal from the database, use: testGPPhaseModels4.ipynb -uses the main GaussianProcessFilterInPhaseDiagFast.py function;

The script allowing to see how how Prof. Sameni's implementation behaves depending on the baseline wander removal method: test_MAPFilter_QT_analysisMircea.m

MENTIONS: -all functions used by the Python GP filter implementation are using .py functions (i.e. the baseline wander removal, the R-peak, the transformation matrices, etc);

rsameni commented 2 years ago

From Dr Mircea Dumitru's Gaussian Process ECG filtering paper