This paper presents a detailed theoretical and simulation-based comparison between the BB84 quantum key distribution (QKD) protocol and a proof-of-concept contextuality-based QKD protocol (CTX-QKD) under depolarizing noise. We begin by contrasting classical cryptography’s computational security with quantum cryptography’s information-theoretic guarantees. The physics of quantum cryptography, including superposition, entanglement, and the no-cloning theorem, is explored, followed by a mathematical analysis of BB84 and a proposed CTX-QKD framework. Performance metrics include the quantum bit error rate (QBER) for BB84 and contextuality violation measures for CTX-QKD, with confidence intervals derived from proper statistical bounds. A comprehensive simulation methodology using QuTiP, NumPy, and SciPy is described. Simulation results demonstrate that while BB84 shows expected noise tolerance up to 11% QBER, the CTX-QKD protocol maintains strong contextuality violations of the fundamental security condition under high noise conditions where BB84 fails. This study highlights the potential of contextuality as a resource for quantum cryptography and demonstrates a proof-of-concept for physics-based cryptographic security beyond traditional approaches.
This work compares two common approaches for classifying schizophrenia from EEG data—EEGNet, a compact convolutional neural network, and a Random Forest trained on spectral features—with an emphasis on how well they generalize across datasets. The models were trained on the ASZED-153 dataset using subject-level stratified cross-validation and then evaluated on a completely separate Kaggle EEG dataset collected under different recording conditions. While internal validation appeared reasonably encouraging (70.7% accuracy for EEGNet and 66.8% for Random Forest), performance dropped sharply on the external dataset (54.6% and 45.4%, respectively). This 16–21 percentage point decline was consistent with Maximum Mean Discrepancy results (MMD=0.0914), indicating meaningful distribution differences between datasets. A simple domain adaptation attempt (correlation alignment) provided only a modest improvement (about +1.2 percentage points) and did not recover internal performance levels. Overall, these findings highlight the practical challenge of developing EEG-based classifiers that remain reliable across recording sites and underscore the importance of external validation and more robust cross-site training strategies before considering any clinical deployment.