Early-stage Alzheimer's disease (AD) and frontotemporal dementia (FTD) share similar symptoms, complicating their diagnosis and the development of specific treatment strategies. Our study evaluated multiple feature extraction techniques for identifying AD and FTD biomarkers from electroencephalographic (EEG) signals. We developed an optimised machine learning architecture that integrates sliding windowing, feature extraction, and supervised learning to distinguish between AD and FTD patients, as well as from healthy controls (HCs). Our model, with a 90% overlap for sliding windowing, SVD entropy for feature extraction, and K-Nearest Neighbors (KNN) for supervised learning, achieved a mean F1-score and accuracy of 93% and 91%, 92.5% and 93%, and 91.5% and 91% for discriminating AD and HC, FTD and HC, and AD and FTD, respectively. The feature importance array, an explainable AI feature, highlighted the brain lobes that contributed to identifying and distinguishing AD and FTD biomarkers. This research introduces a novel framework for detecting and discriminating AD and FTD using EEG signals, addressing the need for accurate early-stage diagnostics. Furthermore, a comparative evaluation of sliding windowing, multiple feature extraction, and machine learning methods on AD/FTD detection and discrimination is documented.