To get started create a new Microbit AI project.
https://createai.microbit.org/
Select Get Started and New Session.
Click the Connect Button along the bottom of the screen and follow the steps on screen to connect your Micro:Bit wirelessly to your device!
Shake your Micro:Bit and see how the Live Data Graph on your webpage responds.
Rename the action 1 as 'Earthquake'.
Click the red Record button and shake the Micro:Bit around while it records the movement.
Repeat this at least two more times to collect more data.