What kind of sensor that can detect prolonged contact?
You could use a force-sensitive resistor. They come in a variety of shapes and sizes. Their resistance will vary based on the actual force, so with appropriate thresholds you should be able to detect whether the backpack is being worn.

There are also sensors that detect bends, known as flex sensors, but I'm not sure they would be appropriate here.