Background: Glucose intolerance (GI), defined as either prediabetes or diabetes, promotes cardiovascular events in patients with myocardial infarction (MI). Using the pooled clinical data from patients with MI and GI in the completed ABC and PPAR trials, we aimed to identify their clinical risk factors for cardiovascular events. Methods: Using the limitless-arity multiple testing procedure, an artificial intelligence (AI)-based data mining method, we analyzed 415,328 combinations of <4 clinical parameters. Findings: We identified 242 combinations that predicted the occurrence of hospitalization for (1) percutaneous coronary intervention for stable angina, (2) non-fatal MI, (3) worsening of heart failure (HF), and (4) all causes, and we analyzed combinations in 1,476 patients. Among these parameters, plasma glucose levels >200 mg/dl after 2 hours of a 75g oral glucose tolerance test or the use of proton pump inhibitors (PPIs) predicted the coronary events of (1, 2). Plasma BNP levels >200pg/dl predicted coronary and cardiac events of (1, 2, 3). Diuretics use, advanced age, and lack of anti-dyslipidemia drugs were predictors of cardiovascular events of (1, 3). These factors were linked to (4). Importantly, each finding was verified by independently drawn Kaplan–Meier curves, indicating that the determined factors accurately predicted cardiovascular events. Interpretation: In most previous MI patients with GI, progression of GI or PPI use predicted the occurrence of coronary stenosis; recurrent MI and high plasma BNP levels predicted the subsequent worsening of HF. We emphasize that use of AI is effective to comprehensively uncover the clinical risk factors of cardiovascular events. Trial Registration: This study was a sub-analysis of the ABC Study (Alpha-glucosidase-inhibitor Blocks Cardiac Events in Patients with Myocardial Infarction and Impaired Glucose Tolerance; ClinicalTrials.gov identification number: NCT00212017) and the Pioglitazone Protects DM Patients Against Re-Infarction Study (PPAR; Clinicaltrials.gov identification number: NCT00212004 and UMIN: No. 000091). Funding Statement: Grants-in-Aid from the Ministry of Health, Labour and Welfare of Japan; Grants-in-Aid from the Ministry of Education, Culture, Sports, Science and Technology of Japan; and Grants-in-Aid from the Japan Agency for Medical Research and Development. Declaration of Interests: No relationship to industry for K.S., H.F, Y.M.,J.K., S.I, and T.W. MK reports grants from Japanese government, grants from Japan Heart Foundation, grants from Japan Agency for Medical Research and Development , personal fees from Daiichi-Sankyo, personal fees from Pfizer, grants and personal fees from Ono, personal fees from Bayer, grants and personal fees from Novartis, grants and personal fees from Bheringer, grants and personal fees from Tanabe-Mitubishi, personal fees from Japan Medical Data Center, grants and personal fees from Takeda, grants and personal fees from Astra Zeneca, outside the submitted work. Ethics Approval Statement: Approval was obtained from the institutional review boards and ethics committees of all involved hospitals and all patients provided written informed consent. The study was performed in accordance with the principles of the Declaration of Helsinki and the Japanese Ethical Guidelines for Clinical Research.