Research opens new path for diagnosing and treating diabetes