How hard would this be for a starter?

I want to track sleep movements for research. So the piece of hardware would stay somewhere in the bed, and keep tracking and logging the body movements.
Thats why I dont need direction of movement. All I need is to know is if there is movement, and how much movement (subject in deep sleep or rolling in bed, etc).