MINNEAPOLIS – When Philando Castile saw the flashing lights in his rearview mirror, it wasn’t unusual. He had been pulled over at least 52 times in recent years in and around the Twin Cities and given citations for minor offences including speeding, driving without a muffler and not wearing a seat belt.

He was assessed at least $6,588 in fines and fees, although more than half of the total 86 violations were dismissed, court records show.

Was Castile an especially bad driver or just unlucky? Or was he targeted by officers who single out black motorists like him for such stops, as several of his family members have alleged?

The answer may never be known, but Castile’s stop for a broken tail light Wednesday ended with him fatally shot by a suburban St. Paul police officer and his girlfriend livestreaming the chilling aftermath. The shooting has added a new impetus to a national debate on racial profiling.

Story continues below advertisement

“The video is pretty horrific,” said Gavin Kearney, who in 2003 co-authored a report to the Minnesota Legislature on racial profiling in the state. “There are things we don’t know about it. But we know there are certain assumptions and biases — whether explicit or implicit — about black men that affect how police officers interpret their actions. And we know white drivers are less likely to be pulled over.”

Court records dating to 2002 show Castile, a 32-year-old school cafeteria supervisor, averaged more than three traffic stops per year and received citations for misdemeanours or petty misdemeanours.

Many charges were dismissed, but Castile pleaded guilty to some, mostly for driving after his license was revoked and driving with no proof of insurance. However, those two charges also were the most frequently dismissed, along with failing to wear a seat belt.

Story continues below advertisement

The records show no convictions for more serious crimes.

WATCH: How many black people have been killed by police in the U.S.? Depends who’s counting 2:18 Police shootings of black men highlight longstanding race relations issue Police shootings of black men highlight longstanding race relations issue

No recent information is available on the racial breakdown of drivers stopped or ticketed by police in Falcon Heights, the mostly white suburb where the shooting occurred, or in other Minnesota towns. Minnesota is not among the handful of states that require police to keep such data.

But in 2001, the Legislature asked for a racial profiling study and it fell to Kearney, then at the Institute on Race & Poverty at the University of Minnesota Law School, to conduct it. His study, using information supplied voluntarily by 65 law enforcement jurisdictions in the state, found a strong likelihood that racial and ethnic bias played a role in traffic stop policies and practices. Overall, officers stopped minority drivers at greater rates than whites and searched them at greater rates, but found contraband in those searches at lower rates than whites.

Story continues below advertisement

The analysis found the pattern was more pronounced in suburban areas. In Fridley, New Hope, Plymouth, Sauk Rapids and Savage combined, blacks were stopped about 310 per cent more often than expected.

The St. Anthony Police Department, which employs the officer who shot Castile, did not participate in the study. St. Anthony officials have not commented on Castile’s stop since shortly after the shooting.

WATCH: Video of Philando Castile police shooting aftermath sparks outrage. Aarti Pole reports 3:33 Video of Philando Castile police shooting aftermath sparks outrage Video of Philando Castile police shooting aftermath sparks outrage

It was not immediately clear how much money governments in the Minneapolis-St. Paul area generate from traffic violations. A U.S. Department of Justice investigation following the 2014 police shooting death of Michael Brown, a black, unarmed 18-year-old, in Ferguson, Missouri, found law enforcement efforts were focused on generating revenue for that city. Most of the tickets and fines were going to blacks.

Castile’s girlfriend, Diamond Reynolds, a passenger in the car, said the two officers who stopped them said the vehicle had a broken tail light. She said one of the officers shot him “for no apparent reason” after he reached for his ID.

Story continues below advertisement

Valerie Castile said she thinks her son “was just black in the wrong place.” Minnesota Gov. Mark Dayton said he did not believe it would have happened to a white motorist.

The officers’ races are not known.

“Police understand the concerns about choices made about who gets stopped and what happens when they get stopped,” said Darrel Stephens, executive director of the Major Cities Chiefs Association.

But the statistics can’t simply be attributed to racial bias among police.

RELATED: Police officer blasts ‘racist’ colleagues after Alton Sterling’s death 2:02 If you’re ‘afraid of people that don’t look like you, you have no business in that uniform’: Cleveland police officer If you’re ‘afraid of people that don’t look like you, you have no business in that uniform’: Cleveland police officer

“When people call the police, they provide a description of somebody engaged in a crime. The police respond to those descriptions,” said Stephens, a former Charlotte, North Carolina, police chief. “That counts for part of the disproportionality that we see in those numbers.”

Story continues below advertisement

Last year, the President’s Task Force on 21st Century Policing recommended police departments collect and analyze demographic data on all stops, searches and seizures.

Nationally, 13 per cent of black drivers were pulled over at least once in 2011, compared with 10 per cent of the white drivers, according to a survey by the U.S. Justice Department’s Bureau of Justice Statistics.

READ MORE: ‘Stop the Killing Inc.’: How an anti-violence group filmed the Alton Sterling shooting

The survey shows 68 per cent of black drivers considered the stops legitimate compared with 84 per cent of white drivers.

The precise reasons why certain motorists are pulled over more than others are difficult to identify, said Lorie Fridell, an associate professor of criminology at the University of South Florida, who trains police departments through a program called Fair and Impartial Policing.

“Our implicit biases are most likely to impact us when we’re facing ambiguous situations,” Fridell said. “A person reaching into a pocket is ambiguous. If I, as a white, middle-aged woman, reach into my pocket most people aren’t going to experience fear. For a black male with dreadlocks, that ambiguous action would produce fear in many people.”

___

Associated Press writer Jason Keyser in Chicago and AP data journalists Meghan Hoyer in Washington and Larry Fenn in New York contributed to this report. Johnson reported from Chicago.