Computer-implemented method for influencing traffic, wherein a) traffic data relating to an environment of a traffic signal generator (S1-S4) are captured, b) a signal phase specification distinguishing various signal phases of the traffic signal generator (S1-S4) is captured, wherein the signal phase specifications indicate, for a traffic signal generator (S1-S4), the signal phase the traffic signal generator (S1-S4) is currently in, and wherein two signal phases that are complementary to one another are distinguished in the traffic signal generator (S1-S4), and a first signal phase "green" is provided for unimpeded travel and a second signal phase "non-green" that is complementary thereto is provided for blocked travel, c) the traffic data are supplied, as input data, to an artificial neural network comprising a first subnetwork and a second subnetwork that differs from the latter as well as a combination network for combining output data (PIA, P2A, P1B, P2B) from both subnetworks (TNA, TNB), wherein the combination network combines the output data (PIA, P2A) from the first subnetwork with the output data (P1B, P2B) from the second subnetwork by way of an addition, wherein the artificial neural network is trained to reproduce a time still remaining to a phase change of the traffic signal generator (S1-S4) on the basis of traffic data, wherein the first subnetwork is specifically optimized for predictions of the remaining time for the green phase and the second subnetwork is specifically optimized for predictions of the remaining time for the non-green phase, d) output of the output data (PIA, P2A) from the first subnetwork and output of the output data (P1B, P2B) from the second subnetwork are controlled in a manner complementary to one another on the basis of the signal phase specification in such a manner that - in the first signal phase, the first subnetwork outputs a prediction value and the second subnetwork outputs a neutral value (P1B) to the combination network, and - in the second signal phase, the second subnetwork outputs a prediction value (P2B) and the first subnetwork outputs a neutral value (P2A) to the combination network, - wherein a numeric or logical zero is output as the neutral value (P1B, P2A), and e) output data from the combination network or prediction data derived therefrom are transmitted to a means of transport (F1, F2) or to a road user as a prediction of the remaining time (RP1, RP2) for influencing traffic. a) traffic data relating to an environment of a traffic signal generator (S1-S4) are captured, b) a signal phase specification distinguishing various signal phases of the traffic signal generator (S1-S4) is captured, wherein the signal phase specifications indicate, for a traffic signal generator (S1-S4), the signal phase the traffic signal generator (S1-S4) is currently in, and wherein two signal phases that are complementary to one another are distinguished in the traffic signal generator (S1-S4), and a first signal phase "green" is provided for unimpeded travel and a second signal phase "non-green" that is complementary thereto is provided for blocked travel, c) the traffic data are supplied, as input data, to an artificial neural network comprising a first subnetwork and a second subnetwork that differs from the latter as well as a combination network for combining output data (PIA, P2A, P1B, P2B) from both subnetworks (TNA, TNB), wherein the combination network combines the output data (PIA, P2A) from the first subnetwork with the output data (P1B, P2B) from the second subnetwork by way of an addition, wherein the artificial neural network is trained to reproduce a time still remaining to a phase change of the traffic signal generator (S1-S4) on the basis of traffic data, wherein the first subnetwork is specifically optimized for predictions of the remaining time for the green phase and the second subnetwork is specifically optimized for predictions of the remaining time for the non-green phase, d) output of the output data (PIA, P2A) from the first subnetwork and output of the output data (P1B, P2B) from the second subnetwork are controlled in a manner complementary to one another on the basis of the signal phase specification in such a manner that - in the first signal phase, the first subnetwork outputs a prediction value and the second subnetwork outputs a neutral value (P1B) to the combination network, and - in the second signal phase, the second subnetwork outputs a prediction value (P2B) and the first subnetwork outputs a neutral value (P2A) to the combination network, - wherein a numeric or logical zero is output as the neutral value (P1B, P2A), and - in the first signal phase, the first subnetwork outputs a prediction value and the second subnetwork outputs a neutral value (P1B) to the combination network, and - in the second signal phase, the second subnetwork outputs a prediction value (P2B) and the first subnetwork outputs a neutral value (P2A) to the combination network, - wherein a numeric or logical zero is output as the neutral value (P1B, P2A), and e) output data from the combination network or prediction data derived therefrom are transmitted to a means of transport (F1, F2) or to a road user as a prediction of the remaining time (RP1, RP2) for influencing traffic.