A MAN killed his partner before confessing to his mother days later that he had “done something terrible”, a court heard.

David Anderson strangled Louise O’Brien at their flat in Perth in April this year.

She was later discovered dead on a bed with a heart-shaped chocolate beside her.

Anderson, 41, is thought to have then used Ms O’Brien’s phone to contact her 11 year-old son, making it look like she was still alive. He went on to carry out a web search trying to discover if murder accused are locked up before he eventually confessed what he had done to his mother.

The High Court in Glasgow heard the couple had been together for about a year before the killing.

They were known to fall out, but Anderson was described by one person as the “best boyfriend” Ms O’Brien had met.

In a text message sent weeks before the attack, Anderson told her: “I’ve given my life to you. I have no interest in anyone else.”

However, the call centre worker later told a colleague he was going to leave Miss O’Brien and move to Dundee.

Prosecutor Bernard Ablett said the exact date of the killing was not known.

Ms O’Brien was last seen on 24 April, four days before her body was found. Mobile phone records show that it was used in the intervening period.

During that time, Anderson called in sick to work claiming he had an upset stomach.

He was described as “sounding lost” and not his usual “chirpy self” and was seen wandering around the streets of Perth on his own.

Anderson also made a series of web searches including: “If you are accused of murder, are you automatically put in prison?”

The court was told that he contacted his mother.

He told her: “I’ve done something terrible and I’ve been unable to deal with it mentally for days.

“I tried to hurt myself because I could not deal with it. I don’t want to tell you, but it’ll come out anyway. I have broken the law. It is very serious.”

Police were alerted and officers discovered Ms O’Brien’s body in a bedroom.

A court was told her family was still too upset to give a victim impact statement.

Mr Ablett told the court: “A chocolate sweet wrapped in red foil and in the shape of a heart was found on the bed beside the body.”

Ms O’Brien’s mobile phone was later checked and a number of messages to her son were found.

The advocate depute said: “It is suspected that Anderson was responsible for sending these texts to give the appearance that Louise was still alive.”

The court was told the exact cause of death was “less clear”, but that Ms O’Brien had injuries consistent with “manual strangulation”.

Mr Ablett explained: “The pathologists consider it more likely that there was a firm grip maintained until death.

“This could have occurred as soon as 15 seconds after the pressure was applied.”

Anderson had originally faced a murder charge, but prosecutors accepted his guilty plea to the reduced charge of culpable homicide.

Judge Lord Boyd deferred sentencing for reports until next month and Anderson was remanded in custody.