AI technology transforms hair analysis for health diagnostics and forensics