Justin Bieber was allegedly speeding hours before he was arrested in Miami last month.

The 19-year-old star was charged with driving under the influence (DUI), resisting arrest and driving with an invalid licence on January 23, but the singer's yellow rented Lamborghini reached 136 MPH at 1.23 a.m., long before he was pulled over by police shortly after 4 a.m.

According to data, obtained by TMZ.com, from the car's built-in GPS tracking system, which recorded its speed and location at all times, the vehicle clocked 108 MPH on the Julia Tuttle Causeway in Miami Beach and accelerated to 136 MPH within a minute while being driven to Set nightclub, where the singer arrived at 2.27 a.m. and partied for an hour before leaving.

But the data also shows that Justin was cruising under the speed limit at 27 MPH when he was arrested and accused of drag racing at between 55 and 60 MPH for 15 blocks.

The 'Heartbreaker' hitmaker is set to appear in court in Florida in relation to the charges on March 3.

Justin's lawyer Roy Black has already filed a written plea of not guilty.

Meanwhile, his lawyers are fighting to stop half-naked pictures of the star in police custody being published.

The images were taken when he was arrested and sources say they expose ''intimate'' parts of his body.