AimTo develop and employ machine learning (ML) algorithms to analyse electrocardiograms (ECGs) for the diagnosis of cardiac autonomic neuropathy (CAN).Materials and MethodsWe used motif and discord extraction techniques, alongside long short‐term memory networks, to analyse 12‐lead, 10‐s ECG tracings to detect CAN in patients with diabetes. The performance of these methods with the support vector machine classification model was evaluated using 10‐fold cross validation with the following metrics: accuracy, precision, recall, F1 score, and area under the receiver‐operating characteristic curve (AUC).ResultsAmong 205 patients (mean age 54 ± 17 years, 54% female), 100 were diagnosed with CAN, including 38 with definite or severe CAN (dsCAN) and 62 with early CAN (eCAN). The best model performance for dsCAN classification was achieved using both motifs and discords, with an accuracy of 0.92, an F1 score of 0.92, a recall at 0.94, a precision of 0.91, and an excellent AUC of 0.93 (95% confidence interval [CI] 0.91–0.94). For the detection of any stage of CAN, the approach combining motifs and discords yielded the best results, with an accuracy of 0.65, F1 score of 0.68, a recall of 0.75, a precision of 0.68, and an AUC of 0.68 (95% CI 0.54–0.81).ConclusionOur study highlights the potential of using ML techniques, particularly motifs and discords, to effectively detect dsCAN in patients with diabetes. This approach could be applied in large‐scale screening of CAN, particularly to identify definite/severe CAN where cardiovascular risk factor modification may be initiated.