Diagnosis of autism has always been difficult and often the condition remains unrecognised until too late for treatment to have a maximum effect.
But now researchers at Imperial College London have discovered a potential way of spotting the disorder in children as young as six months old.
They have found that children with autism spectrum disorder (ASD) also suffer from disorders in their gut and that this can be detected with a simple urine test.
That would mean that intensive behavioural and social treatment could begin before the disease has caused any permanent psychological damage.
Professor Jeremy Nicholson, the author of the study, said: "Children with autism have very unusual gut microbes which we can test for before the full blown symptoms of the disease come through.
"If that is the case then it might become a preventable disease."