The embodiment of the invention provides a disease prediction method, device, a medium and electronic equipment. The disease prediction method comprises steps: activity trajectories of multiple usersare acquired; if a patient diagnosed with an infectious disease appears in the multiple users, based on the activity trajectories of the multiple users in a predetermined time period, the position relationship between other users in the multiple users and the patient in each time point is determined; according to the position relationship between other users and the patient in each time point, thecontact degrees between other users and the patient are calculated; and target users with the contact degrees with the patient higher than a predetermined threshold are predicted as a high-risk diseased population. In the technical scheme provided by the embodiment of the invention, persons closely contacted with the infection source of the infectious disease (that is, the patient) are determinedthrough the position information of the user, persons at risk of infection can be further accurately determined, corresponding measures are taken timely, and the health control level of the user is improved.