THBD can be used as a potential diagnostic marker for AMI. This study provides new insights for future AMI diagnosis and molecular mechanism research. Moreover, immune cell infiltration plays an essential role in the occurrence and development of AMI.