This disclosure provides a method for adaptive
vertical handover in heterogeneous
wireless networks, a terminal device, and a computer-readable storage medium. The method includes: acquiring a
time series of the received
signal strength of a first network; obtaining a predicted value of the received
signal strength based on the
time series; obtaining a prediction error based on the measured value of the received
signal strength and the predicted value of the received
signal strength, and obtaining a link fluctuation index based on the prediction error at multiple times; calculating a
threshold shift amount based on the link fluctuation index, and synchronously shifting the reference
handover threshold and reference
handover back threshold of the first network by the
threshold shift amount to generate a dynamic
handover threshold and a dynamic handover back threshold; and when the terminal is currently connected to the first network, switching from the first network to a second network in response to the predicted value of the received
signal strength being less than the dynamic handover threshold; and when the terminal is currently connected to the second network, switching from the second network to the first network in response to the measured value of the current received
signal strength of the first network being greater than or equal to the dynamic handover back threshold.