This paper proposes a machine learning model called STAP for predicting the status of virtual machines in dynamic and heterogeneous cloud environments, which enhances service reliability. The authors highlight issues with existing prediction methods and demonstrate STAP's ability to learn item representations and their correlations to accurately forecast machine statuses in real time. Experimental results show that STAP consistently outperforms baseline models, validating its effectiveness for cloud environment applications.