DEREK operates by using a knowledge base of toxicological data and structure-activity relationships (SARs). It identifies structural alerts, which are specific chemical substructures known to be associated with toxic effects. These alerts are derived from a compilation of scientific literature, expert opinions, and historical data. When a chemical is input into the system, DEREK checks for these alerts and provides a prediction on its potential toxicity.