He also pleaded guilty to behaving in a threatening and abusive manner likely to cause fear or alarm by repeatedly struggling with police officers and shouting, swearing and making sexual remarks. His not guilty plea to cycling under the influence of alcohol was accepted by the court.

Defence agent Nigel Bruce said that although his client accepted his behaviour, he believed the police officers were “making a point”.

He said: “He wanted to go on his way, and they said ‘you’re not going anywhere’.

“He was manhandled, and had injuries to his hand, bruises to his body, and was taken to the police office.”

Mr Bruce said his client felt that the officers were “cheeky” to him when he told them he suffered from depression.

He added: “He accepts what he did and he spent a night in the cells to reflect on it.”

Sheriff Frank Crowe fined Haddow £200 and told him: “You may not think it’s an offence but if you cycle through a red light at night when you have had something to drink, if you are knocked down or injured by another vehicle, the focus is on the driver, but if you don’t comply with the rules of the road, then it is likely this will happen. Police officers were right to take you aside.”

Last winter, police in the Capital launched a crackdown on cyclists caught skipping red lights and cycling along pavements in busy areas such as Haymarket and the West End.

Officers said “ignorance would be no excuse” for anyone caught breaking the rules, whether on two wheels or four.

Police Scotland figures revealed that 193 riders were responsible for paying almost £6000 in fines for traffic offences in 2012-13.