A method of performing failure prediction on an optical transceiver , comprising: recording an output optical power and an operational current associated with a transmission optical sub-assembly (TOSA_A, TOSA_B) in the optical transceiver during an operational period of the optical transceiver ; characterized by comprising: acquiring a first average slope of the operational current and a second average slope of the output optical power which are recorded during a first time period; acquiring a third average slope of the operational current and a fourth average slope of the output optical power which are recorded during a second time period; calculating a first ratio by dividing the third average slope by the first average slope; calculating a second ratio by dividing an absolute value of the second average slope by an absolute value of the fourth average slope; and sending a failure advance notice when determining that a product of the first ratio and the second ratio is larger than a threshold value, wherein the first time period and the second time period correspond to a same environmental temperature, and the first time period is a reference time period which occurs earlier than the second time period. recording an output optical power and an operational current associated with a transmission optical sub-assembly (TOSA_A, TOSA_B) in the optical transceiver during an operational period of the optical transceiver ; characterized by comprising: acquiring a first average slope of the operational current and a second average slope of the output optical power which are recorded during a first time period; acquiring a third average slope of the operational current and a fourth average slope of the output optical power which are recorded during a second time period; calculating a first ratio by dividing the third average slope by the first average slope; calculating a second ratio by dividing an absolute value of the second average slope by an absolute value of the fourth average slope; and sending a failure advance notice when determining that a product of the first ratio and the second ratio is larger than a threshold value, wherein the first time period and the second time period correspond to a same environmental temperature, and the first time period is a reference time period which occurs earlier than the second time period. acquiring a first average slope of the operational current and a second average slope of the output optical power which are recorded during a first time period; acquiring a third average slope of the operational current and a fourth average slope of the output optical power which are recorded during a second time period; calculating a first ratio by dividing the third average slope by the first average slope; calculating a second ratio by dividing an absolute value of the second average slope by an absolute value of the fourth average slope; and sending a failure advance notice when determining that a product of the first ratio and the second ratio is larger than a threshold value, wherein the first time period and the second time period correspond to a same environmental temperature, and the first time period is a reference time period which occurs earlier than the second time period. <EOS>