This paper presents a two-level self-supervised model for relation extraction from Medline using the Unified Medical Language System (UMLS) knowledge base, aimed at improving knowledge discovery in the biomedical domain. By integrating techniques like data mining and machine learning, the model enhances the extraction of semantic relationships between biomedical entities and outperforms existing methods in precision and recall metrics. The findings highlight UMLS as a valuable resource for automating relation extraction processes in biomedical literature.