Cleaners caught Mr Stewart simulating sex with a bike

Robert Stewart, 51, admitted a sexually aggravated breach of the peace by conducting himself in a disorderly manner and simulating sex.

Sheriff Colin Miller also placed Stewart on the Sex Offenders Register for three years.

Mr Stewart was caught in the act with his bicycle by cleaners in his bedroom at the Aberley House Hostel in Ayr.

Gail Davidson, prosecuting, told Ayr Sheriff Court: "They knocked on the door several times and there was no reply.

"They used a master key to unlock the door and they then observed the accused wearing only a white t-shirt, naked from the waist down.

"The accused was holding the bike and moving his hips back and forth as if to simulate sex."

Both cleaners, who were "extremely shocked", told the hostel manager who called police.

Sheriff Colin Miller told Stewart: "In almost four decades in the law I thought I had come across every perversion known to mankind, but this is a new one on me. I have never heard of a 'cycle-sexualist'."

Stewart had denied the offence, claiming it was caused by a misunderstanding after he had too much to drink.

The bachelor had been living in the hostel since October 2006 after moving from his council house in Girvan.

He now lives in Ayr.