Defect LED detection for car lights
The voltage of diodes and transistors might vary significantly with temperature, not to mention the variation between different pieces and types, and therefore I do not think that you can do anything better than measuring both the current and voltage, save them and compare to their previous values. You have to do these all in a relatively noisy environment. Not an easy task!