ObjectiveTo evaluate the association between acromegaly and cancer and different types of cancer by using natural language processing systems and big data analytics. Material and methodsWe conducted an observational, retrospective study utilizing data from the electronic health records (EHRs) of Hospital Universitario Puerta de Hierro Majadahonda, Madrid, Spain. Information from the EHRs was extracted using artificial intelligence techniques and analyzed using Savana Manager 4.0 software. ResultsOut of a total of 708,047 registered patients (54.7% females), 544 patients (0.08%; 330 women, 60.7%; mean age at diagnosis 53.0±15.8 yr) were diagnosed with acromegaly. The incidence of cancer was higher in patients with acromegaly vs those without this condition (7.7% vs 3.9%, p<0.001; OR, 2.047, 95%CI, 1.493–2.804). Male acromegalic patients had a higher prevalence of cancer vs females (57.1% vs 42.9%, p=0.012). A significantly higher prevalence of colorectal cancer (2.9% vs 1.4%, p=0.006), bladder cancer (1.1% vs 0.3%, p=0.005), and lymphoma (1.1% vs 0.3%, p=0.009) was observed in patients with acromegaly vs those without the condition. Acromegalic men had significantly higher prevalence rates of colorectal cancer (4.7% vs 1.3%, p=0.001), bladder cancer (2.8% vs 0.4%, p<0.001), breast cancer (0.9% vs 0.2%, p=0.042), gastric cancer (0.9% vs 0.1%, p=0.011), lymphoma (1.4% vs 0.3%, p=0.037), and liver cancer (0.9% vs 0.1%, p=0.012) vs non-acromegalic men. On the other hand, acromegalic women showed a higher prevalence of thyroid cancer (1.2% vs 0.4%, p=0.043) vs non-acromegalic women. ConclusionOur study, based on artificial intelligence techniques and analysis of real-world data and information, revealed a significant association between acromegaly and cancer in our hospital population, mainly acromegalic men, with a higher frequency of colorectal cancer, bladder cancer and lymphoma in particular.