Abstract
In this study, we propose a new simple degree-of-freedom fluctuation model that accurately reproduces the probability density functions (PDFs) of human–bicycle balance motions as simply as possible. First, we measure the time series of the roll angular displacement and velocity of human–bicycle balance motions and construct their PDFs. Next, using these PDFs as training data, we identify the model parameters by means of particle swarm optimization; in particular, we minimize the Kolmogorov–Smirnov distance between the human PDFs from the participants and the PDFs simulated by our model. The resulting PDF fitnesses were over for all participants, indicating that our simulated PDFs were in close agreement with human PDFs. Furthermore, the Kolmogorov–Smirnov statistical hypothesis testing was applied to the resulting human–bicycle fluctuation model, showing that the measured time responses were much better supported by our model than the Gaussian distribution.
1. Introduction
Bicycles provide a useful means of short-distance transportation, and their utilization is expected to contribute to building a healthy and environmentally friendly society [1]. However, at least on Japanese roads, bicycle transportation is not always necessarily safe due to collisions with automobiles. The Japan National Police Agency reported that over 83% of bicycle accidents in Japan in the last ten years have involved automobiles [2]. To avoid such accidents, autonomous vehicle technology will play an important role; if it can predict bicycle motions, the resulting self-driving cars may reduce such accidents. For this purpose, accurate simulation models of bicycle motions are required, and they should be provided as simply as possible for the potential use of electronic control units in self-driving cars.
Bicycle motions with human riders in traffic seem to be broadly classified into two types: voluntary and involuntary. The former comprises purposeful motions such as right and left turning at a street intersection. Google [3] reported that their sensors can detect a cyclists’ hand signals as an indication of an intention to make a turn or shift over. The latter comprises unconscious motions such as human fluctuated balance motions, which have already been found universally in human quiet standing [4,5,6], human stick balancing [7,8], human visuomotor tracking [9,10,11], and so on.
In this study, we propose a simple stochastic model that allows us to simulate the latter type of bicycle motion, i.e., involuntary fluctuated human–bicycle balance motions. To this end, we have conducted an experiment in which each human participant rides a bicycle on bicycle-trainer rollers, allowing it to move without rolling or yawing constraints. During this experiment, we measured the bicycle’s rolling motion using a three-dimensional motion sensor attached to it. The measured time-series of the rolling motion are characterized by their probability density functions (PDFs). Next, we designed our proposed human–bicycle model as a simple pendulum mechanism controlled by our human controller model, which was successfully used in our previous study [11] to simulate random human fluctuations during a visuomotor tracking task. We then identified the model parameters based on the measured PDFs as training data, using particle swarm optimization (PSO) to minimize the Kolmogorov–Smirnov (KS) distance between the measured PDFs and those simulated by our proposed human–bicycle model. The results show that our proposed model successfully reproduces the measured PDFs with fitnesses of over . Furthermore, we conducted a statistical hypothesis test called the KS test [12,13] on our results to check their stochastic reliability, showing that the measured time series were much better supported by our model than the Gaussian distribution.
Our stochastic human-modeling approach sharply contrasts with other studies in the fields of autonomous or unmanned bicycle-control systems [14,15,16,17,18,19,20,21,22] because their models have been deterministic and not designed to have randomly fluctuating terms. Our approach also differs from Google’s study on voluntary bicycle motions, as mentioned above [3]. Although there has been another study on the stochastic modeling of bicycle fluctuated motion [23], it addressed large-scale bicycle running paths, unlike our study, which deal with small fluctuations.
The rest of the paper is structured as follows: Section 2 describes the experimental test of human–bicycle balance motions. In Section 3, our proposed stochastic model of these motions is presented. In Section 4 and Section 5, we describe the method of parameter identification and the identification results are presented with the KS testing results. Section 6 concludes our study.
2. Human–Bicycle Balance Experiment
2.1. Experimental Setup and Procedure
Figure 1 shows a photograph of our experimental device, a participant, and an experimenter. The experimental device consists of four units: a bicycle (BE-ELL03, Panasonic, Osaka, Japan), a set of bicycle-trainer rollers (E-MOTION, Elite, Italy), a three-dimensional motion sensor (CSM-MG100, Tokyo Aircraft Instrument, Tokyo, Japan), and a computer.
Figure 1.
Photograph of our experimental device, a human participant, and an experimenter.
The experimental participants were eight healthy males in their early twenties. They were first instructed on the operation of the experimental device, the number of trials, and the duration of each trial. The experiment was performed according to the principles of the Declaration of Helsinki, and informed consent was obtained.
In each trial, the participant rode a bicycle on trainer rollers for significantly more than 180 s at a speed of about 15 km/h. Several practice trials were performed prior to measurement. The air pressure of the tires was set to 300 kPa.
Note that, in our setup, the bicycle is constrained on the stationary trainer. This may cause our measured motion to differ from free motions on the road. Such potential discrepancy, however, did permit a three-minute safety trial without external disturbances and was minimized by using a roller-type trainer known to have fewer constraints than other types of trainers.
2.2. Experimental Data
During each trial, the time series of the measurement vector,
(hereafter, denotes a transpose), was obtained by the motion sensor. Here, [rad] is the roll angle from the vertical line to the bicycle’s vertical axis, and [rad/s] is the corresponding angular velocity. Figure 2 schematically shows the definition of the roll angle in the front view of the bicycle. The bicycle’s vertical axis was nominally determined based on the direction of the bicycle frame. The motion sensor was initially calibrated to output when the bicycle’s vertical axis was parallel to the vertical line. Therefore, does not indicate the upright equilibrium of the unmanned bicycle. Nevertheless, since the resulting calibration setting was commonly maintained for all participants and trials, the obtained datasets can be compared with each other.
Figure 2.
Schematic front view of the bicycle during the experiment.
Throughout the experiment, were stored in the computer in the following form:
where [s] is a discrete time with a sampling period of [s], I is the length of the time series, s and S are an index and the number of participants, respectively, and n and N are an index and the number of trials, respectively.
For this study, we chose s and to obtain the physical data length s. The number of participants was , and the number of trials undertaken by each participant was .
Figure 3 shows the measured time series for , i.e., for the first participant’s first trial. The result clearly exhibits fluctuations specific to human balancing motions in which large-amplitude spikes intermittently arise among the moderate-amplitude fluctuation process, which has already been recognized as temporal intermittency in the field of nonlinear physics [6,7,8]. Thus, we obtained the time series for all and .
Figure 3.
The measured time series of the human–bicycle balance for .
As shown in the upper graph of Figure 3, the vibrational center of is shifted from the origin, . This is mainly because the calibrated does not indicate the vertical equilibrium of the bicycle, as mentioned above. We statistically evaluate these shifts by identifying them as the mean roll angles given by
which is the temporal average of the sth participant’s , further averaged over all of his trials. The resulting values are listed in Table 1 with standard deviations given by
Table 1.
The mean roll angle of the sth participant.
Viewing the average over all participants’ values, takes about , indicating that the actual equilibrium angle of the bicycle was approximately at rad (or ) in our setup. In addition, each value is slightly different due to the respective riding forms of the participants.
2.3. Construction of Measured PDFs
First, we obtain , the joint PDF with respect to the components of the time series in (2) for the sth participant’s nth trial, by normalizing the two-dimensional histogram of with bin width (). Here, is the number of histogram bins and and are the upper and lower limits of , respectively.
Next, the resulting is averaged over all trials to obtain the sth participant’s joint PDF as
We call (5) the measured PDF of the sth participant.
Figure 4 shows the measured PDF of all participants (). In this study, we commonly set , , and for all PDFs, as was done in Figure 4.
Figure 4.
The measured joint probability density functions (PDFs) from all participants ().
3. Fluctuation Model of the Human–Bicycle Balance
In this section, we propose a new fluctuation model that allows us to reproduce the measured PDFs obtained above as simply as possible.
3.1. A Human–Bicycle Fluctuation Model
In view of our setup in Figure 2, we model the human–bicycle mechanics by a simple inverted pendulum about the contact point of the bicycle wheel. Based on the time series statistics in Table 1, we also assume that the roll angle about the equilibrium is sufficiently small; the maximal three standard deviation indicates rad (or deg). Therefore, we model the bicycle’s rolling motion by a linearized inverted pendulum of the form:
where m [kg] and r [m] are the mass and length of the pendulum, respectively, m/s is the gravitational acceleration, T [Nm] is a torque input, and [rad] is the equilibrium angle. The equation of motion (6) is nondimensionalized and represented in the following state-space form:
where , , and .
Next, we specify u to simulate the human fluctuation during human–bicycle motion. As successfully demonstrated in our previous study [11], some human fluctuations can be accurately simulated by the following state-feedback mechanism:
where and are independent white Gaussian noises with zero mean and unit variance. The first coefficient represents a random proportional gain with mean and variance . The second coefficient is a deterministic derivative gain. The third term represents an additive random perturbation.
Finally, we substitute (8) into (7), rewrite it to reduce the dependency between parameters, and propose a human–bicycle fluctuation model of the form
with the generalized parameter vector
which parameterizes the equivalent properties of human–bicycle motion. Here, and are a mean and a standard deviation of the randomly fluctuating stiffness of the human–bicycle motion, respectively, is a deterministic viscous damping, and is an additive random fluctuation strength.
3.2. Calculation of Simulated PDFs
Using given and , we obtain samples of the stationary numerical solution of (9) as
by means of a fourth-order Runge–Kutta–Gill method with time step s, the same as the experimental sampling period. To generate these samples, different sequences of normal pseudo-random numbers [24],
are used to simulate the independent white Gaussian noises and by
where is the numerical factor required for integrating stochastic differential equations [25].
From the simulated time series in (11), we construct the th sample’s joint PDF using the same procedure and conditions as applied for deriving the measured PDF in Section 2.3. We also take the average over all samples by
We call (14) the simulated PDFs for and , which are to be compared with the measured .
4. Method of Parameter Identification
In this section, we formulate the identification problem of an unknown parameter vector that allows the simulated to reproduce the measured .
4.1. Parameter Identification Problem
We solve the optimization problem
with the cost function
Equation (16) is known as a two-dimensional Kolmogorov–Smirnov (KS) distance [12] and is used for two-dimensional goodness-of-fit testing between the empirical distribution of data and a hypothetical density law or between two distributions of separate data [12,13]. Here, and () are the cumulative distribution functions (CDFs) with respect to the four quadrants about on the -plane, i.e.,
with their domains , , , and , respectively. The cost function (16) evaluates the CDFs’ reproduction error and satisfies if . Hence, it also indicates the PDFs’ reproduction error.
4.2. Particle Swarm Optimization (PSO)
We employ PSO [26] to solve (15). Consider a swarm of M candidate solutions,
which are called particles. Each component of is recursively updated by
where denotes the jth component of at iteration k; is the corresponding velocity; , and are system parameters of PSO; and are random numbers independently generated by [24] for each i, j, and k with a uniform distribution in ; and and are the jth components of the vectors and , respectively.
is the position of the particle taking the lowest cost among those at ; this is called the personal best. is the position of the particle with the lowest cost among all particles for all iterations up to k; this is called the global best. For sufficiently large K, is expected to be close to the optimal solution .
5. Identification Results
5.1. Identification Condition
In our PSO application, the number of particles was set to , and the initial particles , were given by random points uniformly distributed within the four-dimensional hyperrectangle
The number of iterations is . We set the number of the simulated samples in (14) to , the same as the number of experimental trials par participant.
We hereafter denote by the optimized solution obtained from the sth participant’s data: and . We also use the notation for the simulated PDFs derived from the sth participant’s data.
5.2. Identification Results
Table 2 lists the identified vector components of by PSO for all participants and the corresponding KS cost value . The seventh column indicates the cost value as a PDF fitness value of the form
which indicates the accuracy of our human–bicycle fluctuation model (9) in terms of the reproducibility of PDFs. The best and worst results are indicated by “**” and “*”, respectively. The second-last and the last columns show the cost value and the corresponding fitness value, respectively, between the measured and the mathematical two-dimensional Gaussian PDF with the same mean vector and covariance matrix as those of the measured .
Table 2.
Identified and its cost value for the sth participant. “**” denotes the best result and “*”, the worst. The last two columns show the corresponding Gaussian results.
The results clearly show that our proposed model (9) successfully achieved over 98.7% PDF fitness, even in the worst case (). This implies that it provides much better fitness than conventional Gaussian models.
Next, the left column of Figure 5 shows the difference of our simulated from the measured , and the right column shows that for the Gaussian PDF , for all s. The plot ranges are the same as those of all plots.
Figure 5.
Difference of our simulated from the measured (left column) and that of the equivalent Gaussian PDF (right column), for all s.
As already indicated by the fitness values in Table 2, our simulated PDFs agree well with the measured PDFs, compared to the Gaussian PDFs. As the shapes of Gaussian PDFs are symmetric by definition, the right column’s results imply that our measured PDFs have asymmetric shapes, as indicated by the deep-colored peaks and troughs.
Therefore, our proposed model properly reproduced such asymmetric shapes, which were barely reproduced by the Gaussian distribution.
5.3. KS Test
Up to this point, we have found that our simple model (9) provides high reproducibility of the PDF shapes of the human–bicycle fluctuation. However, this does not directly support the stochastic reliability of our model. Therefore, in this section, we conduct a statistical-hypothesis test called the KS test [12,13] on our results to check their stochastic reliability.
As described in [12], the statistic of the one-sample KS test is provided by
where E is the KS distance already given in (16), and n is the number of samples. On the other hand, the two-sample KS test employs the following statistic:
where and are the numbers of two independent samples. Under the null hypothesis (the sample follows a given distribution or the two samples follow the same distribution) and for large n (or and ), the random variable Z follows the following CDF [12,13]:
where the lowercase z denotes a value of Z. The value of is called the p-value of the observed z. If this p-value is smaller than a pre-defined called a significance level, the null hypothesis is rejected.
In Figure 6, the solid curve shows . The small circles plot the p-values between and at using listed in Table 2, the measured data length , and the simulated . Under the significance level , the null hypothesis is rejected for , and 8; that is to say that three of the eight measurements cannot be said to follow our simulated distributions. On the other hand, the cross marks show the results between and at using the E values listed in Table 2 and . In this Gaussian case, the null hypothesis is rejected for all s; i.e., no measurements can be said to follow these Gaussian distributions.
Figure 6.
Kolmogorov–Smirnov (KS) testing results. The solid curve plots , the KS statistic cumulative distribution function (CDF). The small circles indicate the p-values between measured and our proposed , and the cross marks indicate those between and Gaussian .
Given the above, we conclude in terms of statistical hypothesis testing that our simple model (9) can simulate the time series of human–bicycle fluctuations much better than the Gaussian distribution.
Note that our proposed model can separately fit the measurements of individual participants; it does not provide a general description of human–bicycle fluctuation. Conversely, it provides a means of mechanical parameterization of individual difference. The obtained parameter vector is useful for comparing individuals and seeing how they differ, in a mechanical manner.
6. Conclusions
In this study, we have constructed a simple degree-of-freedom human–bicycle fluctuation model that accurately reproduces the PDFs of experimentally measured human–bicycle balance motions.
First, we measured the time series of the roll angular displacement and the velocity of the human–bicycle balance motions and constructed their PDFs. Using these PDFs as the training data, we identified the model parameters by PSO, minimizing the KS distance between the measured PDF from the participant and the simulated PDF from our model. The resulting PDF fitnesses were over , indicating that the simulated PDFs were in close agreement with the measured ones.
Next, we applied the KS statistical hypothesis test to our results, showing that our model simulated the time series of human–bicycle fluctuation much better than the Gaussian distribution.
The above result leads to the conclusion that our proposed model can provide an accurate single-degree-of-freedom model of human–bicycle fluctuations.
In future work, using our model parameters, we plan to compare various cyclists of different ages and genders who ride different types of bicycles in different environments. We also plan to develop a multi-degree-of-freedom fluctuation model of human–bicycle balance motions, making it possible to simulate fluctuating bicycle running paths based on physically identified human–bicycle parameters.
Author Contributions
Conceptualization, K.Y.; methodology, K.Y. and Y.Y.; software, K.Y. and K.S.; validation, K.Y., K.S. and Y.Y.; formal analysis, K.Y. and Y.Y.; investigation, K.Y. and K.S.; resources, K.Y.; data curation, K.S.; writing—original draft preparation, K.Y.; writing—review and editing, K.Y.; visualization, K.Y. and K.S.; supervision, K.Y.; project administration, K.Y.; funding acquisition, K.Y. and Y.Y.
Funding
This work was funded by JSPS KAKENHI Grant Numbers JP18H01391 and JP17H06552.
Acknowledgments
We wish to express our gratitude to the members of the System Dynamics Group at Utsunomiya University for their participation and cooperation as participants in this study.
Conflicts of Interest
The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.
References
- Japan Ministry of the Environment. Building a Low Carbon Society. 2007. Available online: https://www.env.go.jp/earth/info/pc071211/en.pdf (accessed on 11 March 2019).
- Japan National Police Agency. Traffic Accident Statistics Annual Report. 2019. Available online: https://www.e-stat.go.jp/en/stat-search/files?lid=000001223644 (accessed on 11 March 2019).
- Google Self-Driving Car Project Monthly Report. 2016. Available online: https://www.google.com/selfdrivingcar/files/reports/report-1016.pdf (accessed on 11 March 2019).
- Collins, J.J.; De luca, C.J. Random Walking during Quiet Standing. Phys. Rev. Lett. 1994, 73, 764–767. [Google Scholar] [CrossRef] [PubMed]
- Winter, D.A.; Patla, A.E.; Prince, F.; Ishac, M.; Gielo-Perczak, K. Stiffness Control of Balance in Quiet Standing. J. Neurophysiol. 1998, 80, 1211–1221. [Google Scholar] [CrossRef] [PubMed]
- Rhea, C.K.; Silver, T.A.; Hong, S.L.; Ryu, J.H.; Studenka, B.E.; Hughes, C.M.L.; Haddad, J.M. Noise and complexity in human postural control: interpreting the different estimations of entropy. PLoS ONE 2011, 6, e17696. [Google Scholar] [CrossRef] [PubMed]
- Cabrera, J.L.; Militon, J.G. On-Off Intermittency in a Human Balancing Task. Phys. Rev. Lett. 2002, 89, 158702. [Google Scholar] [CrossRef] [PubMed]
- Cabrera, J.L.; Milton, J.G. Human stick balancing: Tuning Lévy flights to improve balance control. Chaos 2004, 14, 691–698. [Google Scholar] [CrossRef] [PubMed]
- Bormann, R.; Cabrera, J.L.; Milton, J.G.; Eurich, C.W. Visuomotor tracking on a computer screen—An experimental paradigm to study the dynamics of motor control. Neurocomputing 2004, 58, 517–523. [Google Scholar] [CrossRef]
- Yoshida, K.; Higeta, A. Toward Stochastic Explanation of a Neutrally Stable Delayed Feedback Model of Human Balance Control. Int. J. Innov. Comput. Inf. Control 2012, 8, 2249–2259. [Google Scholar] [CrossRef][Green Version]
- Matsumoto, S.; Yoshida, K.; Sekikawa, M. Stochastic dynamic modeling of human visuomotor tracking task of an unstable virtual object. Trans. Inst. Syst. Control Inf. Eng. 2018, 31, 209–219. [Google Scholar] [CrossRef][Green Version]
- Peacock, J.A. Two-dimensional goodness-of-fit testing in astronomy. Mon. Not. R. Astron. Soc. 1983, 202, 615–627. [Google Scholar] [CrossRef]
- Fasano, G.; Franceschini, A. A multidimensional version of the Kolmogorov–Smirnov test. Mon. Not. R. Astron. Soc. 1987, 225, 155–170. [Google Scholar] [CrossRef]
- Getz, N.H. Control of balance for a nonlinear nonholonomic non-minimum phase model of a bicycle. In Proceedings of the 1994 American Control Conference—ACC ’94, Baltimore, MD, USA, 29 June–1 July 1994; Volume 1, pp. 148–151. [Google Scholar] [CrossRef]
- Getz, N.H.; Marsden, J.E. Control for an autonomous bicycle. In Proceedings of the 1995 IEEE International Conference on Robotics and Automation, Nagoya, Japan, 21–27 May 1995; Volume 2, pp. 1397–1402. [Google Scholar] [CrossRef]
- Lee, S. Self Stabilizing Strategy in Tracking Control of Unmanned Electric Bicycle with Mass Balance. In Proceedings of the IEEE/RSJ International Conference on Intelligent Robots and Systems, Lausanne, Switzerland, 30 September–4 October 2002. [Google Scholar]
- Chen, C.K.; Dao, T.S. Fuzzy Control for Equilibrium and Roll-Angle Tracking of an Unmanned Bicycle. Multibody Syst. Dyn. 2006, 15, 321–346. [Google Scholar] [CrossRef]
- Meijaard, J.; Papadopoulos, J.M.; Ruina, A.; Schwab, A. Linearized dynamics equations for the balance and steer of a bicycle: a benchmark and review. Proc. R. Soc. A Math. Phys. Eng. Sci. 2007, 463, 1955–1982. [Google Scholar] [CrossRef]
- Hwang, C.; Wu, H.; Shih, C. Fuzzy Sliding-Mode Underactuated Control for Autonomous Dynamic Balance of an Electrical Bicycle. IEEE Trans. Control Syst. Technol. 2009, 17, 658–670. [Google Scholar] [CrossRef]
- Kooijman, J.D.G.; Meijaard, J.P.; Papadopoulos, J.M.; Ruina, A.; Schwab, A.L. A Bicycle Can Be Self-Stable Without Gyroscopic or Caster Effects. Science 2011, 332, 339–342. [Google Scholar] [CrossRef] [PubMed]
- Tan, J.; Gu, Y.; Liu, C.K.; Turk, G. Learning Bicycle Stunts. ACM Trans. Graph. 2014, 33, 50. [Google Scholar] [CrossRef]
- Kim, Y.; Kim, H.; Lee, J. Stable control of the bicycle robot on a curved path by using a reaction wheel. J. Mech. Sci. Technol. 2015, 29, 2219–2226. [Google Scholar] [CrossRef]
- Randløv, J.; Alstrøm, P. Learning to Drive a Bicycle Using Reinforcement Learning and Shaping. In Proceedings of the Fifteenth International Conference on Machine Learning, Madison, WI, USA, 24–27 July 1988; Morgan Kaufmann Publishers Inc.: San Francisco, CA, USA, 1998; pp. 463–471. [Google Scholar]
- Matsumoto, M.; Nishimura, T. Mersenne Twister: A 623-dimensionally Equidistributed Uniform Pseudo-random Number Generator. ACM Trans. Model. Comput. Simul. 1998, 8, 3–30. [Google Scholar] [CrossRef]
- Higham, D.J. An Algorithmic Introduction to Numerical Simulation of Stochastic Differential Equations. SIAM Rev. 2012, 43, 525–546. [Google Scholar] [CrossRef]
- Shi, Y.; Eberhart, R. A modified particle swarm optimizer. In Proceedings of the 1998 IEEE International Conference on Evolutionary Computation Proceedings, IEEE World Congress on Computational Intelligence, Anchorage, AK, USA, 4–9 May 1998; pp. 69–73. [Google Scholar] [CrossRef]
© 2019 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).