This study explores the factors associated with the development of thyroid-related adverse events in patients administered anti-PD-1/PD-L1 agents using training predictive models through various machine learning approaches. Here, PDCD1 is linked to thyroiditis.