There are lots of ways to filter this type of data. The mean is one but you can also use median or an FIR filter. Take a look 🤗 Fábio Dias