The Thai woman allegedly cooked and ate her children, aged one and five, and was found by police sleeping in her home surrounded by their body parts.
The woman, a member of a hill tribe from the mountainous region of Chiang Main near the Burmese border, had been suffering from mental illness since 2007 but had recently stopped taking her medication.
She had been left alone with her sons as her husband left for a few days to get her medication.
He said: “I had to go out of town for a couple of days. I told her that I would bring back the medication she needs.
“I never imagined that something like this would happen.”
Dr Kiattiphum Wongrachit from the Mental Health Department said: “The woman killed her children because she didn’t continue her treatment and didn’t take her medication.”
He added that it is believed that in her hallucinogenic state she thought her children were pigs and that she has yet to realise that she killed her children.
A hospital report from her treatment in 2007 stated that the woman suffered from hallucinations and believed someone was coming to hurt her.
The woman, whose name has not been released for her family’s protection, has been charged with murder, although details of the charge have yet to be released.
She has been deemed mentally unfit to fight her case and has been sent to Suan Prung Psychiatric Hospital in Chiang Mai for treatment.