AUTHOR=Jin Jingyun , Qin Shuyan , Fu Qiang , Yu Changzhi , Wu Hongjin TITLE=Identification of biomarkers and immune microenvironment associated with heart failure through bioinformatics and machine learning JOURNAL=Frontiers in Molecular Biosciences VOLUME=Volume 12 - 2025 YEAR=2025 URL=https://www.frontiersin.org/journals/molecular-biosciences/articles/10.3389/fmolb.2025.1580880 DOI=10.3389/fmolb.2025.1580880 ISSN=2296-889X ABSTRACT=BackgroundHeart failure (HF) is the end stage of various cardiovascular diseases. Identifying new biomarkers is essential for early diagnosis, prognosis, and treatment. This study applied bioinformatics to identify potential HF biomarkers and explore the role of the immune microenvironment.MethodsGene expression data were obtained from the Gene Expression Omnibus (GEO) database. Differential expression analysis and Weighted Gene Co-expression Network Analysis (WGCNA) were used to identify key genes. Gene Ontology (GO), Kyoto Encyclopedia of Genes and Genomes (KEGG), and Gene Set Enrichment Analysis were performed. Feature genes were further determined using two machine learning algorithms, Random Forest (RF) and Least Absolute Shrinkage and Selection Operator (LASSO), with diagnostic accuracy assessed via Receiver Operating Characteristic (ROC) curves and nomograms to screen hub genes, and external datasets further were used for validation. Quantitative reverse transcription polymerase chain reaction (RT-qPCR) was used to validate the expression levels of hub genes in clinical samples. Single Sample Gene Set Enrichment Analysis and CIBERSORT algorithm were applied to evaluate immune cell infiltration in HF and its relationship with hub genes.ResultsDifferential analysis identified 165 differentially expressed genes (DEGs), and WGCNA revealed the “blue” module showing a significant correlation with HF. Integration of the DEGs and the “blue” module genes identified 28 common genes. KEGG pathway enrichment analysis suggested that these genes may be involved in the cytoskeleton in muscle cells pathway. Lasso and RF algorithms confirmed 7 key genes as potential biomarkers for HF, and further analysis using the ROC curve identified 4 hub genes with good diagnostic value, namely, High mobility group N 2 (HMGN2), Myosin Heavy Chain 6 (MYH6), High temperature requirement A1 (HTRA1), and Microfibrillar-associated protein 4 (MFAP4), which were validated in an external dataset and by RT-qPCR. Immune infiltration analysis revealed significant infiltration of immune cells in HF. T cells, NK cells, monocytes, and M2 macrophages play important roles in the development of HF, and the hub genes were closely associated with multiple immune cell types.ConclusionThis study identifies HMGN2, HTRA1, MFAP4, and MYH6 as novel diagnostic biomarkers and potential therapeutic targets for HF. These genes are closely related to the immune microenvironment, providing new insights into the early diagnosis, treatment, and mechanistic exploration of HF.