The judge said that the experience of being locked in a windowless room in "appalling conditions" had taken a physical and psychological toll on the child victim.
Doctors who examined the boy said he was underweight and below average height for his age, and treated him for anaemia.
But Judge Norman Wright said that while the physical effects have been remedied, the psychological harm "will be unknown".
"It is bound, in my judgment, to be profound," he said.
More top news
The triggering of Article 50 has dominated newspaper headlines on Thursday, with many focusing on a possible threat over security by Ms May.
Twelve people have been killed and three injured after a pick-up truck and a church minibus crashed head-on in Texas.
Revenge porn offenders who attempt to magnify their targets' humiliation will face the toughest penalties under new sentencing proposals.