1. A computer-based method for mediating tasks in real-time for safety-related concerns, comprising: determining a nature of a primary task related to safety; determining a nature of a secondary task that draws attention away from the primary task; determining a risk factor for a potential lack of cognitive resources by applying the nature of the primary task and the nature of the secondary task to a trained risk factor model, using a computer-based processor; and applying the risk factor to one or more safety-related systems in real-time.