But if you did this, there’s no guarantee at all that the punishments would be perceived as “fair”. Even the teachers might regard them as unfair. But they would be effective. So there would be a conflict: make the regime fairer, and run the risk of a general deterioration in behaviour, or generate bottled-up resentment instead. Which would you choose?
Children tend to respond favourably to fairness so a fair system of punishments would, in my opinion, tend to cause a general improvement in behaviour. Individualised punishments might be the most effective for the individual when applied in isolation but their effectiveness would be significantly reduced, or even nullified, if they’re perceived as being unfair when compared to those received by others. The bottled up resentment of an unfair system would, itself, produce a general deterioration in behaviour and, when the lid finally blows, you have real problems.