Lecturer stabs his asian wife 76 times because he wrongly thought he was not father to their children
Robert Kerr attacked Xin Xin Liu, 39, at their home in the suburb of Newton Mearns, near Glasgow.
Kerr, also 39, killed his wife while his two sons slept upstairs.
The court heard how he then went on to make himself a hot drink while Xin Xin lay dead.
A judge heard how the mum suffered more than 70 wounds during the horrific killing in April this year.
Kerr today faced a murder allegation as he appeared at the High Court in Glasgow.
Police discovered Xin Xin lying on the kitchen floor with a knife still in her body.
After being held, Kerr then told officers: "I found out tonight they were not mine."
Jane Farquharson, prosecuting, said he had "suspicions" that a friend was the dad of his children.
Miss Farquharson told the court: "A paternity test recently carried out...has since confirmed that Robert Kerr is the biological father."
A number of blood-stained items were found at the couple's house including a milk carton.
The advocate depute said: "Kerr has since admitted that he had made himself a hot drink after this incident."
A post mortem later revealed Xin Xin had suffered a total of approximately 76 wounds.
The court heard that Kerr has since been receiving treatment at the State Hospital at Carstairs.
A doctor concluded that his "ability to control his conduct" that night was "substantially impaired by reason of abnormality of mind".
He was said to be suffering from a "delusional disorder" including his belief about the paternity of his children.
Judge Lord Boyd today imposed an interim compulsion order for Kerr to remain at Carstairs.
The case was adjourned until November.