The objective of this study was to explore the application value of intracavitary electrocardiogram- (IEGM-) guided diagnosis of occult heart disease and conventional electrocardiogram (EGM) in the diagnosis of occult coronary heart disease (CHD) based on the classification and regression tree (CART) mining algorithm, hoping to provide a more effective basis for clinical diagnosis of the occult CHD. In this study, 100 patients with occult CHD admitted to our hospital from February 2016 to December 2020 were selected as the research objects. Based on the random number table method, 100 patients were randomly rolled into two groups, each with 50 cases. The patients diagnosed with conventional ECG were set as the control group, and patients in the experimental group were diagnosed with IEGM under the data mining algorithms. The diagnostic effects of the two groups were compared. The results showed that the processing effect of the CART algorithm (94%) was much better than that of the multiple linear regression algorithm (78%) and the random forest algorithm (69%) (
P
<
0.05
), the agreement between the results of the experimental group and the results of coronary angiography (80%) and Kappa (0.7) was higher than those of the control group (55%, 0.45), and the difference was statistically significant (
P
<
0.05
). In addition, the sensitivity (93%) and accuracy (80%) of the experimental group were obviously higher than those of the control group (62% and 55%), and the differences were remarkably significant (
P
<
0.05
). In conclusion, the consistency ratio of the IEGM examination was higher, showing high accuracy; the intracavitary examination was invasive, so IEGM was not recommended when the diagnosis result of the examination may cause more harm than good.