Why It's Done. The ESR is useful in detecting inflammation in the body that may be caused by infection, some cancers, and certain autoimmune diseases such as juvenile idiopathic arthritis, lupus, and Kawasaki disease. The ESR alone can't be used to diagnose any one specific disease, however.