BackgroundSepsis is an uncontrolled reaction to infection that causes severe organ dysfunction and is a primary cause of ARDS. Patients suffering both sepsis and ARDS have a poor prognosis and high mortality. However, the mechanisms behind their simultaneous occurrence are unclear.MethodsWe acquired sepsis and ARDS datasets from GEO and Arrayexpress databases and screened hub genes by WGCNA and machine learning algorithm. For diagnosis and prognosis, ROC curve and survival analysis were used. We performed GO, KEGG, GSEA, immune cell infiltration, drug prediction, molecular docking, transcription factor prediction, and constructed PPI and ceRNA networks to explore these genes and the common mechanisms of sepsis and ARDS. Single-cell data analysis compared immune cell profiles and hub gene localization. Finally, RT-qPCR and H&E staining confirmed the reliability of hub genes using PBMCs samples and mouse models.ResultsWe identified 242 common differentially expressed genes in sepsis and ARDS. WGCNA analysis showed that the turquoise module in GSE95233 is strongly linked to sepsis occurrence and poor prognosis, while the black module in GSE10474 is associated with ARDS. Using WGCNA and three machine learning methods (LASSO, random forest and Boruta), we identified three key genes CX3CR1, PID1 and PTGDS. Models built with them showed high AUC values in ROC curve evaluations and were validated by external datasets, accurately predicting the occurrence and mortality. We further explored the immunological landscape of these genes using immune infiltration and single-cell analysis. Then, the ceRNA, predicted drugs and molecular docking were analyzed. Ultimately, we demonstrated that these genes are expressed differently in human and mouse samples with sepsis and ARDS.ConclusionThis study identified three molecular signatures (CX3CR1, PID1 and PTGDS) linked to the diagnosis and poor prognosis of sepsis and ARDS, validated by RT-qPCR and H&E staining in both patient and mouse samples. This research may be valuable for identifying shared biological mechanisms and potential treatment targets for both diseases.