Device usage patterns analysis