Swimming behavior analysis based on bacterial chemotaxis in solution