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
Fine for most on Monday but turning increasingly windy
Five people have been rescued from a small leisure boat on the Solent, after its engine failed and it began taking in water.
A US doctor has been accused of killing a lion during an illegal hunt, a week after it emerged dentist Walter Palmer killed Cecil the lion.