27
Cognify: Revolutionary Prison Concept Uses AI and Brain Implants to Fast-Track Criminal Rehabilitation
(www.sciencetimes.com)
This is a most excellent place for technology news and articles.
Similar style, but that was a mini-series (for lack of a better description).
This was a movie (IIRC), and she was held in a prison in her mind (so she thought), I can't remember the details. Futuristic, but not very far into the future.