A Florida judge has determined a South Carolina mother was insane when she drove her three children into the ocean off Daytona Beach earlier this year.

Circuit Judge Leah Case ruled Friday that Ebony Wilkerson was not guilty by reason of insanity of three counts of child abuse. Prosecutors, in turn, dropped three attempted murder counts against her.

The judge ordered a hearing next week during which she'll determine whether Wilkerson needs to be hospitalized for treatment or can be released with court supervision.

Wilkerson's attorney says the plea deal was reached after a psychologist hired by prosecutors agreed with a defense psychologist that Wilkerson had a psychotic break during the incident.

Wilkerson, of Myrtle Beach, South Carolina, drove her van into the surf in March. Bystanders and officers pulled her and her children from the van.