Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
PROCESSING DATA FROM A PORTABLE PROCESSING DEVICE
Document Type and Number:
WIPO Patent Application WO/2016/184951
Kind Code:
A1
Abstract:
Data generated by a portable processing device is processed to a) control the portable processing device to switch the portable processing device from a lower-energy data generating state to a higher-energy data generating state, and from the higher-energy data generating state to the lower-energy data generating state, b) determine the mode of transport, c) determine when the portable processing device has begun a journey and ended a journey, and/or d) determine whether the portable processing device has moved more than a threshold distance.

Inventors:
PARKINSON SAMUEL DAVID (GB)
Application Number:
PCT/EP2016/061227
Publication Date:
November 24, 2016
Filing Date:
May 19, 2016
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
DRAYSON TECH (EUROPE) LTD (GB)
International Classes:
G06F1/32; G01C21/10; G01C21/34
Domestic Patent References:
WO2013093785A12013-06-27
WO2011038269A12011-03-31
Foreign References:
US20130085861A12013-04-04
US20010018636A12001-08-30
US20140159952A12014-06-12
US20100127926A12010-05-27
US20130073202A12013-03-21
US20120172017A12012-07-05
US20120290252A12012-11-15
JP2005236491A2005-09-02
Other References:
BEN NHAM ET AL: "Predicting Mode of Transport from iPhone Accelerometer Data", 1 January 2009 (2009-01-01), pages 1 - 5, XP055217182, Retrieved from the Internet [retrieved on 20150930]
MARIA FRENDBERG: "Determining Transportation Mode through Cellphone Sensor Fusion", 1 June 2011 (2011-06-01), XP055307213, Retrieved from the Internet [retrieved on 20161003]
WANG KAIJING ET AL: "GPS/INS integrated urban navigation system based on vehicle motion detection", PROCEEDINGS OF 2014 IEEE CHINESE GUIDANCE, NAVIGATION AND CONTROL CONFERENCE, IEEE, 8 August 2014 (2014-08-08), pages 667 - 670, XP032722174, ISBN: 978-1-4799-4700-3, [retrieved on 20150112], DOI: 10.1109/CGNCC.2014.7007294
Attorney, Agent or Firm:
SPROSTON, David et al. (Arabellastraße 30, Munich, DE)
Download PDF:
Claims:
CLAIMS

1. A computer-implemented method of controlling a portable processing device to switch the portable processing device from a lower-energy data generating state to a higher-energy data generating state, the method comprising : processing data generated by the portable processing device in the lower-energy data generating state to determine whether the portable processing device has moved more than a threshold distance; and when it is determined that the portable processing device has moved more than the threshold distance, switching the portable processing device to the higher- energy data generating state.

2. A method according to Claim 1, wherein: data generated by the portable processing device in the lower-energy data generating state is processed to determine whether the portable processing device has moved more than the threshold distance in a predetermined time; and when it is determined that the portable processing device has moved more than the threshold distance in the predetermined time, the portable processing device is switched to the higher-energy data generating state.

3. A method according to Claim 2, wherein the processing of data generated by the portable processing device in the lower-energy data generating state to determine whether the portable processing device has moved more than a threshold distance comprises: receiving data generated by the portable processing device defining a sequence of positions and, for each respective position, an accuracy of the position; for each of a plurality of positions in the sequence, processing the data defining the position and the accuracy of the position as well as the data defining a preceding position in the sequence and the accuracy of the preceding position, to determine whether the position is more than a first threshold distance from the preceding position; processing data defining a time-ordered set of the positions for which it was determined that the position is more than the first threshold distance from the preceding position, to determine whether a distance between the position at the latest time in the set and any position at an earlier time in the set is greater than a second threshold distance; and wherein, when it is determined that a distance between a position at the latest time in the set and any position at an earlier time in the set is greater than the second threshold distance, the portable processing device is switched from the lower-energy data generating state to the higher-energy data generating state.

A method according to Claim 3, wherein the processing to determine whether the position is more than a first threshold distance from the preceding position comprises : calculating a position difference between the position and the preceding position; calculating an accuracy difference between the accuracy of the position and the accuracy of the preceding position; and comparing the position difference and the accuracy difference to determine whether the position is more than the first threshold distance from the preceding position .

5. A method according to Claim 4, wherein the first threshold distance is a function of the accuracy of the position and the accuracy of the preceding position.

6. A method according to Claim 4 or Claim 5, wherein the processing to determine whether the position is more than a first threshold distance from the preceding position comprises determining whether:

I x2— i I > ( 2— <¾) k where x2 is the position, x1 is the preceding position, a2 is the accuracy of the position, ax is the accuracy of the preceding position, and k is a constant , a2 and x comprising values which decrease as the accuracy increases.

7. A method according to Claim 6, wherein 0.5 < k < 5.

8. A computer-implemented method of controlling a portable processing device to switch the portable processing device from a higher-energy data generating state to a lower-energy data generating state, the method comprising : processing data generated by the portable processing device in the higher-energy data generating state to determine whether the portable processing device has moved more than a threshold distance; and when it is determined that the portable processing device has not moved more than the threshold distance, switching the portable processing device to the lower- energy data generating state.

A method according to Claim 8, wherein: data generated by the portable processing device in the higher-energy data generating state is processed to determine whether the portable processing device has moved more than the threshold distance in a predetermined time; and when it is determined that the portable processing device has not moved more than the threshold distance in the predetermined time, the portable processing device is switched to the lower-energy data generating state.

10. A method according to Claim 9, wherein the processing of data generated by the portable processing device in the higher-energy data generating state to determine whether the portable processing device has moved more than a threshold distance comprises: receiving data generated by the portable processing device defining a sequence of positions and, for each respective position, an accuracy of the position; for each of a plurality of positions in the sequence, processing the data defining the position and the accuracy of the position as well as the data defining a preceding position in the sequence and the accuracy of the preceding position, to determine whether the position is more than a first threshold distance from the preceding position; for the positions for which it is determined that the position is more than the first threshold distance from the preceding position in the sequence, generating a time-ordered set of positions; and processing data defining the time-ordered set of positions to determine whether a distance between the position at the latest time in the set and any position at an earlier time in the set is greater than a second threshold distance; and wherein, when it is determined that a distance between a position at the latest time in the set and each position at an earlier time in the set is not greater than the second threshold distance, the portable processing device is switched from the higher-energy data generating state to the lower-energy data generating state.

A method according to Claim 10, wherein the processing to determine whether the position is more than a first threshold distance from the preceding position comprises : calculating a position difference between the position and the preceding position; calculating an accuracy difference between the accuracy of the position and the accuracy of the preceding position; and comparing the position difference and the accuracy difference to determine whether the position is more than the first threshold distance from the preceding position.

12. A method according to Claim 11, wherein the first threshold distance is a function of the accuracy of the position and the accuracy of the preceding position. 13. A method according to Claim 11 or Claim 12, wherein the processing to determine whether the position is more than a first threshold distance from the preceding position comprises determining whether: I x2— i I > (<¾— <¾) k where x2 is the position, x1 is the preceding position, a2 is the accuracy of the position, ax is the accuracy of the preceding position, and k is a constant, a2 and x comprising values which decrease as the accuracy increases. 14. A method according to Claim 13, wherein 0.5 < k < 5 .

15. A method according to any of claims 10 to 14, wherein the processing to determine whether the position is more than the first threshold distance from the preceding position further comprises: calculating a calculated speed of the portable processing device travelling from the preceding position to the position; and determining whether the calculated speed is less than a threshold speed.

A method according to any of claims 10 to 15, wherein the processing to determine whether the position is more than the first threshold distance from the preceding position further comprises: calculating a calculated acceleration of the portable processing device travelling from the preceding position to the position; and determining whether the calculated acceleration is less than a threshold acceleration.

A method according to any of claims 10 to 16, wherein the time-ordered set of positions is generated by: processing each position for which it is determined that the position is more than the first threshold distance from the preceding position in the sequence to: calculate a projected position in dependence upon the preceding position and a speed at the preceding position defined by data generated by the portable processing device; and calculate a filtered position by combining the projected position and the position in dependence upon the accuracy of the preceding position and the accuracy of the position; and generating a time-ordered set of the filtered positions. 18. A storage medium storing computer program instructions which, when executed by a processing apparatus, cause the processing apparatus to perform a method according to at least one of claims 1 to 7.

A signal carrying computer program instructions which, when executed by a processing apparatus, cause the processing apparatus to perform a method according to at least one of claims 1 to 7.

A storage medium storing computer program instructions which, when executed by a processing apparatus, cause the processing apparatus to perform a method according to at least one of claims 8 to 17.

A signal carrying computer program instructions which, when executed by a processing apparatus, cause the processing apparatus to perform a method according to at least one of claims 8 to 17.

Processing apparatus operable to control a portable processing device to switch the portable processing device from a lower-energy data generating state to a higher-energy data generating state, the processing device comprising: a position change detector operable to process data generated by the portable processing device in the lower-energy data generating state to determine whether the portable processing device has moved more than a threshold distance; and a data-generating-state controller operable to switch the portable processing device to the higher-energy data generating state when it is determined that the portable processing device has moved more than the threshold distance .

23. Processing apparatus according to Claim 22, wherein: the position change detector is operable to process data generated by the portable processing device in the lower-energy data generating state to determine whether the portable processing device has moved more than the threshold distance in a predetermined time; and the data-generating-state controller is operable to switch the portable processing device to the higher- energy data generating state when it is determined that the portable processing device has moved more than the threshold distance in the predetermined time.

24. Processing apparatus according to Claim 23, wherein: the processing device further comprises a data receiver operable to receive data generated by the portable processing device defining a sequence of positions and, for each respective position, an accuracy of the position; the position change detector is operable to process, for each of a plurality of positions in the sequence, data defining the position and the accuracy of the position, as well as the data defining a preceding position in the sequence and the accuracy of the preceding position, to determine whether the position is more than a first threshold distance from the preceding position; the position change detector is further operable to process data defining a time-ordered set of the positions for which it was determined that the position is more than the first threshold distance from the preceding position, to determine whether a distance between the position at the latest time in the set and any position at an earlier time in the set is greater than a second threshold distance; and the data-generating-state controller is arranged to switch the portable processing device from the lower- energy data generating state to the higher-energy data generating state when the position change detector determines that a distance between a position at the latest time in the set and any position at an earlier time in the set is greater than the second threshold distance .

Processing apparatus according to Claim 24, wherein the position change detector comprises: a position difference calculator operable to calculate, for each of the plurality of positions in the sequence, a position difference between the position and the preceding position; an accuracy difference calculator operable to calculate, for each of the plurality of positions in the sequence, an accuracy difference between the accuracy of the position and the accuracy of the preceding position; and a position difference and accuracy difference comparator operable to compare, for each of the plurality of positions in the sequence, the position difference and the accuracy difference to determine whether the position is more than the first threshold distance from the preceding position.

Processing apparatus according to Claim 25, wherein the first threshold distance is a function of the accuracy of the position and the accuracy of the preceding position .

27. Processing apparatus according to Claim 25 or Claim 26, wherein the position difference and accuracy difference comparator is operable to determine whether the position is more than the first threshold distance from the preceding position by determining whether: I x2— i I > (<¾— <¾) k where x2 is the position, x1 is the preceding position, a2 is the accuracy of the position, ax is the accuracy of the preceding position, and k is a constant, a2 and x comprising values which decrease as the accuracy increases. 28. Processing apparatus according to Claim 27, wherein 0.5 < k < 5 .

29. Processing apparatus operable to control a portable processing device to switch the portable processing device from a higher-energy data generating state to a lower-energy data generating state, the processing device comprising: a position change detector operable to process data generated by the portable processing device in the higher-energy data generating state to determine whether the portable processing device has moved more than a threshold distance; and a data-generating-state controller operable to switch the portable processing device to the lower-energy data generating state when it is determined that the portable processing device has not moved more than the threshold distance .

Processing apparatus according to Claim 29, wherein: the position change detector is operable to process data generated by the portable processing device in the higher-energy data generating state to determine whether the portable processing device has moved more than the threshold distance in a predetermined time; and the data-generating-state controller is operable to switch the portable processing device to the lower- energy data generating state when it is determined that the portable processing device has not moved more than the threshold distance in the predetermined time.

Processing apparatus according to Claim 30, wherein: the processing device further comprises a data receiver operable to receive data generated by the portable processing device defining a sequence of positions and, for each respective position, an accuracy of the position; the position change detector is operable to process, for each of a plurality of positions in the sequence, data defining the position and the accuracy of the position, as well as the data defining a preceding position in the sequence and the accuracy of the preceding position, to determine whether the position is more than a first threshold distance from the preceding position; the position change detector is operable to process data defining a time-ordered set of the positions for which it was determined that the position is more than the first threshold distance from the preceding position, to determine whether a distance between the position at the latest time in the set and any position at an earlier time in the set is greater than a second threshold distance; and the data-generating-state controller is arranged to switch the portable processing device from the higher- energy data generating state to the lower-energy data generating state when the position change detector determines that a distance between a position at the latest time in the set and each position at an earlier time in the set is not greater than the second threshold distance .

Processing apparatus according to Claim 31, wherein the position change detector comprises: a position difference calculator operable to calculate, for each of the plurality of positions in the sequence, a position difference between the position and the preceding position; an accuracy difference calculator operable to calculate, for each of the plurality of positions in the sequence, an accuracy difference between the accuracy of the position and the accuracy of the preceding position; and a position difference and accuracy difference comparator operable to compare, for each of the plurality of positions in the sequence, the position difference and the accuracy difference to determine whether the position is more than the first threshold distance from the preceding position.

33. Processing apparatus according to Claim 32, wherein the first threshold distance is a function of the accuracy of the position and the accuracy of the preceding position .

34. Processing apparatus according to Claim 32 or Claim 33, wherein the position difference and accuracy difference comparator is operable to determine whether the position is more than the first threshold distance from the preceding position by determining whether:

I x2— i I > ( 2— <¾) k where x2 is the position, x1 is the preceding position, a2 is the accuracy of the position, ax is the accuracy of the preceding position, and k is a constant , a2 and x comprising values which decrease as the accuracy increases.

35. Processing apparatus according to Claim 34, wherein 0.5 < k < 5. 36. Processing apparatus according to any of Claims 29 to 35, wherein the position change detector further comprises : a speed calculator operable to calculate a calculated speed of the portable processing device travelling from the preceding position to the position; and a speed comparator operable to determine whether the calculated speed is less than a threshold speed to determine whether the position is more than the first threshold distance from the preceding position .

37. Processing apparatus according to any of Claims 29 to

36, wherein the position change detector further comprises : an acceleration calculator operable to calculate a calculated acceleration of the portable processing device travelling from the preceding position to the position; and an acceleration comparator operable to determine whether the calculated acceleration is less than a threshold acceleration to determine whether the position is more than the first threshold distance from the preceding position.

38. Processing apparatus according to any of Claims 31 to

37, wherein: the data receiver is further operable to receive data generated by the portable processing device defining a speed of travel at each position in the sequence; the processing apparatus further comprises: a position projector operable to calculate, for each position for which it is determined that the position is more than the first threshold distance from the preceding position, a projected position in dependence upon the preceding position and a speed at the preceding position; and a position combiner operable, for each projected position, to calculate a filtered position by combining the projected position and the position in dependence upon the accuracy of the preceding position and the accuracy of the position; and wherein the processing apparatus is operable to generate the time-ordered data set of the filtered positions .

Processing apparatus according to any of Claims 22 to 38, wherein the processing apparatus is the portable processing device.

A computer-implemented method of processing data generated for a portable processing device transported on a journey to determine a mode of transport for at least part of the journey, the method comprising: processing data defining a sequence of speeds for the journey to divide the journey into a series of segments; processing data defining at least one of the sequence of speeds for the journey, a sequence of accelerations for the journey and a sequence of angular velocities for the journey, to calculate characterising parameters for each of a plurality of the segments in the journey; inputting the calculated characterising parameters for a segment, a preceding segment in the series and a following segment in the series into a trained learning machine; and receiving from the trained learning machine a determined mode of transport for the segment.

A method according to Claim 40, wherein the data defining the sequence of speeds for the journey is processed to divide the journey into a series of segments by identifying positions for which the speed is zero and dividing the sequence at those positions.

A method according to Claim 40 or Claim 41, wherein calculating characterising parameters for each segment comprises calculating time-based parameters.

A method according to Claim 42, wherein calculating characterising parameters for each segment comprises calculating : the mean speed in the segment; the standard deviation of the speed in the segment; the maximum speed in the segment; a plurality of Lp-norms of the speed in the segment.

A method according to Claim 42 or Claim 43, wherein calculating characterising parameters for each segment comprises calculating: the mean absolute acceleration in the segment; the standard deviation of the absolute acceleration in the segment; the maximum absolute acceleration in the segment; and a plurality of Lp-norms of the absolute acceleration in the segment . A method according to any of Claims 42 to 44, wherein calculating characterising parameters for each segment comprises calculating: the mean absolute angular velocity in the segment; the standard deviation of the absolute angular velocity in the segment; the maximum absolute angular velocity in the segment; and a plurality of Lp-norms of the absolute angular velocity in the segment .

A method according to any of Claims 42 to 45, wherein calculating characterising parameters for each segment comprises calculating at least one of: a probability of the mean speed in the segment being cycling; a probability of the mean speed in the segment being running; a probability of the mean speed in the segment being walking; a probability of the mean speed in the segment being travelling by car; a probability of the mean speed in the segment being travelling by bus; and a probability of the mean speed in the segment being travelling by train. A method according to any of Claims 40 to 46, wherein calculating characterising parameters for each segment comprises calculating frequency-based parameters.

A method according to Claim 47, wherein calculating characterising parameters for each segment comprises calculating fast Fourier transforms, FFTs, of data in the segment .

A method according to Claim 48, wherein calculating characterising parameters for each segment comprises calculating : the total energy in the frequency spectrum averaged over all FFTs in the segment; the energy in the frequency spectrum averaged over all FFTs in a first frequency range; the energy in the frequency spectrum averaged over all FFTs in at least one further frequency range, different from the first frequency range; and the entropy of the frequency spectrum averaged over all FFTs in the segment.

A method according to Claim 48 or Claim 49, wherein calculating characterising parameters of each segment further comprises calculating: the mean signal-to-noise ratio within a frequency range 0.5 Hz to 2 Hz; and the maximum signal-to-noise ratio within the frequency range 0.5 Hz to 2 Hz.

51. A method according to any of Claims 48 to 50, wherein calculating characterising parameters of each segment further comprises calculating a plurality of Lp-norms of the signal-to-noise ratio.

52. A method according to any of Claims 40 to 51 wherein the learning machine comprises a support vector machine. 53. A storage medium storing computer program instructions which, when executed by a processing apparatus, cause the processing apparatus to perform a method according to at least one of claims 40 to 52. 54. A signal carrying computer program instructions which, when executed by a processing apparatus, cause the processing apparatus to perform a method according to at least one of claims 40 to 52. 55. Processing apparatus operable to process data generated for a portable processing device transported on a journey to determine a mode of transport for at least part of the journey, the processing device comprising: a journey data segmenter operable to process data defining a sequence of speeds for the journey to divide the journey into a series of segments; a segment parameter calculator operable to process data defining at least one of the sequence of speeds for the journey, a sequence of accelerations for the journey and a sequence of angular velocities for the journey, to calculate characterising parameters for each of a plurality of the segments in the journey; and a trained learning machine operable to receive the calculated characterising parameters for a segment, a preceding segment in the series and a following segment in the series as inputs, and to output a determined mode of transport for the segment.

56. Processing apparatus according to Claim 55, wherein the journey data segmenter is operable to process the data defining the sequence of speeds for the journey to divide the sequence into a series of segments by identifying positions for which the speed is zero and dividing the sequence at those positions.

57. Processing apparatus according to Claim 55 or Claim 56, wherein the segment parameter calculator is operable to calculate characterising parameters for each segment comprising time-based parameters.

58. Processing apparatus according to Claim 57, wherein the segment parameter calculator is operable to calculate characterising parameters for each segment comprising: the mean speed in the segment; the standard deviation of the speed in the segment; the maximum speed in the segment; a plurality of Lp-norms of the speed in the segment.

59. Processing apparatus according to Claim 57 or Claim 58, wherein the segment parameter calculator is operable to calculate characterising parameters for each segment comprising : the mean absolute acceleration in the segment; the standard deviation of the absolute acceleration in the segment; the maximum absolute acceleration in the segment; and a plurality of Lp-norms of the absolute acceleration in the segment .

Processing apparatus according to any of Claims 57 to

59, wherein the segment parameter calculator is operable to calculate characterising parameters for each segment comprising : the mean absolute angular velocity in the segment; the standard deviation of the absolute angular velocity in the segment; the maximum absolute angular velocity in the segment; and a plurality of Lp-norms of the absolute angular velocity in the segment .

Processing apparatus according to any of Claims 57 to

60, wherein the segment parameter calculator is operable to calculate characterising parameters for each segment comprising at least one of: a probability of the mean speed in the segment being cycling; a probability of the mean speed in the segment being running; a probability of the mean speed in the segment being walking; a probability of the mean speed in the segment being travelling by car; a probability of the mean speed in the segment being travelling by bus; and a probability of the mean speed in the segment being travelling by train.

Processing apparatus according to any of Claims 55 to 61, wherein the segment parameter calculator is operable to calculate characterising parameters for each segment comprising frequency-based parameters.

Processing apparatus according to Claim 62, wherein the segment parameter calculator is operable to calculate fast Fourier transforms, FFTs, of data in each segment.

Processing apparatus according to Claim 63, wherein the segment parameter calculator is operable to calculate characterising parameters for each segment comprising: the total energy in the frequency spectrum averaged over all FFTs in the segment; the energy in the frequency spectrum averaged over all FFTs in a first frequency range; the energy in the frequency spectrum averaged over all FFTs in at least one further frequency range, different from the first frequency range; the entropy of the frequency spectrum averaged over all FFTs in the segment.

65. Processing apparatus according to Claim 63 or Claim 64, wherein the segment parameter calculator is further operable to calculate characterising parameters for each segment comprising: the mean signal-to-noise ratio within a frequency range 0.5 Hz to 2 Hz; and the maximum signal-to-noise ratio within the frequency range 0.5 Hz to 2 Hz. 66. Processing apparatus according to any of Claims 63 to

65, wherein the segment parameter calculator is further operable to calculate characterising parameters for each segment comprising a plurality of Lp-norms of the signal-to-noise ratio.

67. Processing apparatus according to any of Claims 55 to

66, wherein the learning machine comprises a support vector machine. 68. Processing apparatus according any of Claims 55 to 67, wherein the processing apparatus is the portable processing device.

69. A computer-implemented method of processing data from a portable processing device to determine when the portable processing device has begun a journey, the method comprising: receiving data generated by the portable processing device defining a sequence of positions and, for each respective position, an accuracy of the position; for each of a plurality of positions in the sequence, processing the data defining the position and the accuracy of the position as well as the data defining a preceding position in the sequence and the accuracy of the preceding position, to determine whether the position is more than a first threshold distance from the preceding position; processing data defining a time-ordered set of the positions for which it was determined that the position is more than the first threshold distance from the preceding position, to determine whether a distance between the position at the latest time in the set and any position at an earlier time in the set is greater than a second threshold distance; and when it is determined that a distance between a position at the latest time in the set and any position at an earlier time in the set is greater than the second threshold distance, it is determined that the portable processing device has begun a journey.

A method according to Claim 69, wherein the processing to determine whether the position is more than a first threshold distance from the preceding position comprises : calculating a position difference between the position and the preceding position; calculating an accuracy difference between the accuracy of the position and the accuracy of the preceding position; and comparing the position difference and the accuracy difference to determine whether the position is more than the first threshold distance from the preceding position .

71. A method according to Claim 70, wherein the first threshold distance is a function of the accuracy of the position and the accuracy of the preceding position. 72. A method according to Claim 70 or Claim 71, wherein the processing to determine whether the position is more than a first threshold distance from the preceding position comprises determining whether: I x2— i I > (<¾— <¾) k where x2 is the position, x1 is the preceding position, a2 is the accuracy of the position, ax is the accuracy of the preceding position, and k is a constant, a2 and x comprising values which decrease as the accuracy increases. 73. A method according to Claim 72, wherein 0.5 < k < 5 .

74. A computer-implemented method of processing data from a portable processing device to determine when the portable processing device has ended a journey, the method comprising: receiving data generated by the portable processing device defining a sequence of positions and, for each respective position, an accuracy of the position; for each of a plurality of positions in the sequence, processing the data defining the position and the accuracy of the position as well as the data defining a preceding position in the sequence and the accuracy of the preceding position, to determine whether the position is more than a first threshold distance from the preceding position; and for the positions for which it is determined that the position is more than the first threshold distance from the preceding position in the sequence, generating a time-ordered set of positions; processing data defining the time-ordered set of positions to determine whether a distance between the position at the latest time in the set and any position at an earlier time in the set is greater than a second threshold distance; and when it is determined that a distance between a position at the latest time in the set and each position at an earlier time in the set is not greater than the second threshold distance, it is determined that the portable processing device has ended a journey.

A method according to Claim 74, wherein the processing to determine whether the position is more than a first threshold distance from the preceding position comprises : calculating a position difference between the position and the preceding position; calculating an accuracy difference between the accuracy of the position and the accuracy of the preceding position; and comparing the position difference and the accuracy difference to determine whether the position is more than the first threshold distance from the preceding position .

76. A method according to Claim 75, wherein the first threshold distance is a function of the accuracy of the position and the accuracy of the preceding position.

77. A method according to Claim 75 or Claim 76, wherein the processing to determine whether the position is more than a first threshold distance from the preceding position comprises determining whether:

I x2— i I > ( 2— <¾) k where x2 is the position, x1 is the preceding position, a2 is the accuracy of the position, ax is the accuracy of the preceding position, and k is a constant , a2 and x comprising values which decrease as the accuracy increases.

78. A method according to Claim 77, wherein 0.5 < k < 5.

79. A method according to any of claims 74 to 78, wherein the processing to determine whether the position is more than a first threshold distance from the preceding position further comprises: calculating a calculated speed of the portable processing device travelling from the preceding position to the position; and determining whether the calculated speed is less than a threshold speed.

A method according to any of Claims 74 to 79, wherein the processing to determine whether the position is more than a first threshold distance from the preceding position further comprises: calculating a calculated acceleration of the portable processing device travelling from the preceding position to the position; and determining whether the calculated acceleration is less than a threshold acceleration.

A method according to any of Claims 74 to 80, wherein the time-ordered set of positions is generated by: processing each position for which it is determined that the position is more than the first threshold distance from the preceding position in the sequence, to: calculate a projected position in dependence upon the preceding position and a speed at the preceding position defined by data generated by the portable processing device; and calculate a filtered position by combining the projected position and the position in dependence upon the accuracy of the preceding position and the accuracy of the position; and generating a time-ordered set of the filtered positions. 82. A storage medium storing computer program instructions which, when executed by a processing apparatus, cause the processing apparatus to perform a method according to at least one of Claims 69 to 73.

A signal carrying computer program instructions which, when executed by a processing apparatus, cause the processing apparatus to perform a method according to at least one of Claims 69 to 73.

A storage medium storing computer program instructions which, when executed by a processing apparatus, cause the processing apparatus to perform a method according to at least one of Claims 74 to 81.

A signal carrying computer program instructions which, when executed by a processing apparatus, cause the processing apparatus to perform a method according to at least one of Claims 74 to 81.

Processing apparatus operable to process data from a portable processing device to determine when the portable processing device has begun a journey, the processing device comprising: a data receiver operable to receive data generated by the portable processing device defining a sequence of positions and, for each respective position, an accuracy of the position; and a position change detector operable to process, for each of a plurality of positions in the sequence, data defining a position and the accuracy of the position, as well as data defining a preceding position in the sequence and the accuracy of the preceding position, to determine whether the position is more than a first threshold distance from the preceding position; and wherein: the position change detector is further operable to process data defining a time-ordered set of the positions for which it was determined that the position is more than the first threshold distance from the preceding position, to determine whether a distance between the position at the latest time in the set and any position at an earlier time in the set is greater than a second threshold distance; and the processing apparatus is arranged to determine that the portable processing device has begun a journey when the position change detector determines that a distance between a position at the latest time in the set and any position at an earlier time in the set is greater than the second threshold distance.

Processing apparatus according to Claim 86, wherein the position change detector comprises: a position difference calculator operable to calculate, for each of the plurality of positions in the sequence, a position difference between the position and the preceding position; an accuracy difference calculator operable to calculate, for each of the plurality of positions in the sequence, an accuracy difference between the accuracy of the position and the accuracy of the preceding position; and a position difference and accuracy difference comparator operable to compare, for each of the plurality of positions in the sequence, the position difference and the accuracy difference to determine whether the position is more than the first threshold distance from the preceding position.

88. Processing apparatus according to Claim 87, wherein the first threshold distance is a function of the accuracy of the position and the accuracy of the preceding position .

89. Processing apparatus according to Claim 87 or Claim 88, wherein the position difference and accuracy difference comparator is operable to determine whether the position is more than the first threshold distance from the preceding position by determining whether: I x2— i I > (<¾— <¾) k where x2 is the position, x1 is the preceding position, a2 is the accuracy of the position, ax is the accuracy of the preceding position, and k is a constant, a2 and x comprising values which decrease as the accuracy increases. 90. Processing apparatus according to Claim 89, wherein 0.5 < k < 5 .

91. Processing apparatus operable to process data from a portable processing device to determine when the portable processing device has ended a journey, the processing device comprising: a data receiver operable to receive data generated by the portable processing device defining a sequence of positions and, for each respective position, an accuracy of the position; and a position change detector operable to process, for each of a plurality of positions in the sequence, data defining the position and the accuracy of the position, as well as data defining a preceding position in the sequence and the accuracy of the preceding position, to determine whether the position is more than a first threshold distance from the preceding position; and wherein: the position change detector is operable to process data defining a time-ordered set of the positions for which it was determined that the position is more than the first threshold distance from the preceding position, to determine whether a distance between the position at the latest time in the set and any position at an earlier time in the set is greater than a second threshold distance; and the processing apparatus is arranged to determine that the portable processing device has ended a journey when the position change detector determines that a distance between a position at the latest time in the set and each position at an earlier time in the set is not greater than the second threshold distance.

Processing apparatus according to Claim 91, wherein the position change detector comprises: a position difference calculator operable to calculate, for each of the plurality of positions in the sequence, a position difference between the position and the preceding position; an accuracy difference calculator operable to calculate, for each of the plurality of positions in the sequence, an accuracy difference between the accuracy of the position and the accuracy of the preceding position; and a position difference and accuracy difference comparator operable to compare, for each of the plurality of positions in the sequence, the position difference and the accuracy difference to determine whether the position is more than the first threshold distance from the preceding position.

Processing apparatus according to Claim 92, wherein the first threshold distance is a function of the accuracy of the position and the accuracy of the preceding position .

Processing apparatus according to Claim 92 or Claim 93, wherein the position difference and accuracy difference comparator is operable to determine whether the position is more than the first threshold distance from the preceding position by determining whether:

I x2— X\ I > (<¾— <¾) k where x2 is the position, x1 is the preceding position, a2 is the accuracy of the position, ax is the accuracy of the preceding position, and k is a constant , a2 and x comprising values which decrease as the accuracy increases.

95. Processing apparatus according to Claim 94, wherein 0.5 <k < 5 . Processing apparatus according to any of Claims 91 to

95, wherein the position change detector further comprises : a speed calculator operable to calculate a calculated speed of the portable processing device travelling from the preceding position to the position; and a speed comparator operable to determine whether the calculated speed is less than a threshold speed to determine whether the position is more than the first threshold distance from the preceding position .

Processing apparatus according to any of Claims 91 to

96, wherein the position change detector further comprises : an acceleration calculator operable to calculate a calculated acceleration of the portable processing device travelling from the preceding position to the position; and an acceleration comparator operable to determine whether the calculated acceleration is less than a threshold acceleration to determine whether the position is more than the first threshold distance from the preceding position.

Processing apparatus according to any of Claims

97, wherein: the data receiver is further operable to receive data generated by the portable processing device defining a speed of travel at each position in the sequence; the processing apparatus further comprises: a position projector operable to calculate, for each position for which it is determined that the position is more than the first threshold distance from the preceding position, a projected position in dependence upon the preceding position and a speed at the preceding position; and a position combiner operable, for each projected position, to calculate a filtered position by combining the projected position and the position in dependence upon the accuracy of the preceding position and the accuracy of the position; and wherein the processing apparatus is operable to generate the time-ordered data sets of the filtered positions .

99. Processing apparatus according to any of Claims 86 to 98, wherein the processing apparatus is the portable processing device. 100. A computer-implemented method of processing data generated by a portable processing device to determine whether the portable processing device has moved more than a threshold distance, the method comprising: receiving data generated by the portable processing device defining a sequence of positions and, for each respective position, an accuracy of the position; processing the data defining a position in the sequence and the accuracy of the position as well as the data defining a preceding position in the sequence and the accuracy of the preceding position, to determine whether the position is more than a threshold distance from the preceding position. 101. A method according to Claim 100, wherein the threshold distance is a function of the accuracy of the position and the accuracy of the preceding position.

102. A method according to Claim 101, wherein the processing to determine whether the position is more than a threshold distance from the preceding position comprises : calculating a position difference between the position and the preceding position; calculating an accuracy difference between the accuracy of the position and the accuracy of the preceding position; and comparing the position difference and the accuracy difference to determine whether the position is more than a threshold distance from the preceding position. 103. A method according to Claim 102, wherein the processing to determine whether the position is more than a threshold distance from the preceding position comprises determining whether: I x2— Xi I > (<¾— <¾) k where x2 is the position, x1 is the preceding position, a2 is the accuracy of the position, ax is the accuracy of the preceding position, and k is a constant, α2 and x comprising values which decrease as the accuracy increases.

104. A method according to Claim 103, wherein 0.5 < k < 5 .

105. A method according to any of Claims 100 to 104, further comprising : calculating a calculated speed of the portable processing device travelling from the preceding position to the position; and wherein the processing to determine whether the position is more than a threshold distance from the preceding position comprises: determining whether the calculated speed is less than a threshold speed. 106. A method according to any of Claims 100 to 105, further comprising : calculating a calculated acceleration of the portable processing device travelling from the preceding position to the position; and wherein the processing to determine whether the position is more than a threshold distance from the preceding position comprises: determining whether the calculated acceleration is less than a threshold acceleration.

107. A storage medium storing computer program instructions which, when executed by a processing apparatus, cause the processing apparatus to perform a method according to at least one of claims 100 to 106.

108. A signal carrying computer program instructions which, when executed by a processing apparatus, cause the processing apparatus to perform a method according to at least one of claims 100 to 106.

109. Processing apparatus operable to process data generated by a portable processing device to determine whether the portable processing device has moved more than a threshold distance, the processing device comprising: a data receiver operable to receive data generated by the portable processing device defining a sequence of positions and, for each respective position, an accuracy of the position; a position change detector operable to process the data defining a position in the sequence and the accuracy of the position, as well as the data defining a preceding position in the sequence and the accuracy of the preceding position, to determine whether the position is more than a threshold distance from the preceding position.

110. Processing apparatus according to Claim 109, wherein the threshold distance is a function of the accuracy of the position and the accuracy of the preceding position.

111. Processing apparatus according to Claim 110, wherein the position change detector comprises: a position difference calculator operable to calculate a position difference between the position and the preceding position; an accuracy difference calculator operable to calculate an accuracy difference between the accuracy of the position and the accuracy of the preceding position; and a position difference and accuracy difference comparator operable to compare the position difference and the accuracy difference to determine whether the position is more than a threshold distance from the preceding position.

112. Processing apparatus according to Claim 111, wherein the position difference and accuracy difference calculator is operable to determine whether the position is more than a threshold distance from the preceding position by determining whether:

I x2— i I > (<¾— <¾) k where x2 is the position, x1 is the preceding position, a2 is the accuracy of the position, ax is the accuracy of the preceding position, and k is a constant, a2 and x comprising values which decrease as the accuracy increases.

113. Processing apparatus according to Claim 112, wherein 0.5 < k < 5 .

114. Processing apparatus according to any of Claims 109 to 113, wherein the position change detector further comprises : a speed calculator operable to calculate a calculated speed of the portable processing device travelling from the preceding position to the position; and a speed comparator operable to determine whether the calculated speed is less than a threshold speed.

115. Processing apparatus according to any of Claims 109 to 114, wherein the position change detector further comprises : an acceleration calculator operable to calculate a calculated acceleration of the portable processing device travelling from the preceding position to the position; and an acceleration comparator operable to determine whether the calculated acceleration is less than a threshold acceleration .

116. Processing apparatus according to any of Claims 109 to 115, wherein the processing apparatus is the portable processing device.

Description:
PROCESSING DATA FROM A PORTABLE PROCESSING DEVICE

CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority from GB 1508880.0, GB 1508881.8, GB 1508882.6 and GB 1508883.4 all filed on 21 May 2015. The full contents of each of the priority applications is incorporated herein by cross reference. TECHNICAL FIELD

The present disclosure relates to the technical field of processing data from a portable processing device. BACKGROUND

Many applications ("apps") running on portable processing devices such as mobile telephones, tablet computers, laptop computers, smart watches, e-book readers, etc need to monitor the position of the portable processing device over time. However, generating position data can be a power-intensive process.

For many applications running on portable processing devices such as mobile telephones, tablet computers, laptop computers, smart watches, e-book readers, etc there is a need to identify the mode of transport of the portable processing device when it is moving (for example, walking, running, cycling, travel by car, travel by train, etc) . However, reliably determining the mode of transport of a portable processing device can be difficult.

Additionally, many applications running on portable processing devices such as mobile telephones, tablet computers, laptop computers, smart watches, e-book readers, etc need to determine when the portable processing device has begun and ended a journey. However, reliably determining when a portable processing device has begun and ended a journey can be difficult, for example due to errors in the position calculated by the portable processing device .

Additionally, many applications running on portable processing devices such as mobile telephones, tablet computers, laptop computers, smart watches, e-book readers, etc need to know when the portable processing device has moved. However, reliably determining when a portable processing device has moved can be difficult, for example due to errors in the position calculated by the portable processing device.

Examples of apps running on portable processing devices that suffer from one or more of the problems above may include navigation apps, apps that provide location-specific services, environmental sensing apps, health apps, etc.

BRIEF DESCRIPTION OF THE DRAWINGS

Embodiments of the invention will now be described, by way of non- limiting example only, with reference to the accompanying drawings, in which:

Figure 1 schematically illustrates a plurality of people carrying portable processing devices while undertaking journeys using different modes of transport.

Figure 2 schematically shows an example of a general kind of programmable processing apparatus that may be used to implement a portable processing device or a remote processing apparatus in certain embodiments of the invention.

Figure 3 schematically illustrates functional processing modules of a portable processing device or a remote processing apparatus in an embodiment. Figure 4 schematically illustrates functional processing modules of the position change detector in an embodiment.

Figure 5 schematically illustrates further functional processing modules in an embodiment.

Figure 6A and Figure 6B show processing operations performed to gather data in a lower-energy data generating state in an embodiment .

Figure 7 shows processing operations performed at step S612 in an embodiment .

Figure 8 shows processing operations performed to determine whether a portable processing device has begun a journey in a lower-energy data generating state in an embodiment.

Figure 9A and Figure 9B show processing operations to gather data in a higher-energy data generating state in an embodiment.

Figure 10 shows processing operations performed at step S912 in an embodiment .

Figure 11 shows processing operations performed in a higher-energy data generating state to detect the end of a journey by the portable processing device in an embodiment.

Figure 12A and Figure 12B show processing operations performed in an embodiment to determine a mode of transportation for a journey by a portable processing device.

Figure 13 schematically illustrates the training of a learning machine in an embodiment. Figure 14 schematically illustrates the use of a trained learning machine in an embodiment to determine a mode of transport of a portable processing device. DETAILED DESCRIPTION OF EMBODIMENTS

Although embodiments of the invention will be described below, it will be evident that various modifications may be made to these embodiments without departing from the broader spirit and scope of the invention. Accordingly, the following description and the accompanying drawings are to be regarded as illustrative rather than restrictive.

In the following description and in the accompanying drawings, numerous details are set forth in order to provide an understanding of various embodiments of the invention. However, it will be evident to those skilled in the art that embodiments may be practiced without these details. Referring to Figure 1, a plurality of people 2-28 undertake journeys using different modes of transport. More particularly, in the example of Figure 1, the people make journeys on a bus 40, in a car 50, on a train 60, on self-propelled means, such as a bicycle 70, and on foot (as represented by person 26) .

Each person carries a portable processing device 80 while undertaking his or her journey (this portable processing device 80 being visible for some, but not all of the people in Figure 1 as some of the people may carry the portable processing device in a pocket or bag such that it is obscured from view) . The portable processing device 80 may comprise a mobile telephone, tablet computer, smart watch, e-book reader, laptop computer, or any other form of portable computer processing apparatus. Each portable processing device may comprise multiple separate parts configured to communicate with each other or may comprise one self-contained unit. It will, of course, be appreciated that the people 2-28 can undertake journeys using different modes of transport than those shown Figure 1 and embodiments of the present invention are applicable to those different modes of transport as well. For example, the people 2-28 may undertake journeys in taxis, trams, monorail trains, underground trains, motorcycles, mopeds, boats, etc. Similarly, the people may undertake journeys using other self-propelled means such as scooters, skateboards, roller-skates, rollerblades, etc.

As will be explained in more detail below, data generated by a portable processing device is processed to a) control the portable processing device to switch the portable processing device from a lower-energy data generating state to a higher-energy data generating state, and from the higher-energy data generating state to the lower-energy data generating state, b) determine the mode of transport, c) determine when the portable processing device has begun a journey and ended a journey, and/or d) determine whether the portable processing device has moved more than a threshold distance. In the present embodiment, the processing is performed on each portable processing device. More particularly, in the present embodiment, each portable processing device 80 has stored therein an app 100 downloaded from an app providing apparatus 102 via the network 104 or provided pre-installed by the manufacturer of the portable processing device. The app 100 comprises computer programming instructions which, when executed, cause the portable processing device 80 to perform processing as described below. However, in other embodiments, the processing may be performed on processing apparatus 110, to which the portable processing devices 80 transmit data via network 104. Processing apparatus 110 may comprise a single apparatus or a plurality of connected apparatus. For example, processing apparatus 110 may comprise one or more cloud servers. Network 104 may comprise one or more networks, such as the Internet, a telephone network, a cellular data network, etc. Network 104 may also comprise a virtual private network (VPN) , a local area network (LAN) , a wide area network (WAN) , or any other form of network.

Referring now to Figure 2, an example of a general kind of programmable processing apparatus that may be used to implement a portable processing device 80 or processing apparatus 110 in embodiments of the present invention is shown.

The programmable processing apparatus 200 comprises one or more processors 210, one or more input/output communication modules 220, one or more volatile working memories 230, one or more non-volatile memories 240 and one or more instruction stores 250 storing computer-readable instructions which can be executed by a processor 210 to effect the functional processing modules and to perform the processing operations as described hereinafter.

At least one input/output communication module 220 comprises apparatus for communicating with network 104.

Instruction store 250 is a storage medium, which may comprise a non-volatile memory, for example in the form of a read-only memory (ROM), a magnetic computer storage device (for example a hard disk) or an optical disk, which is pre-loaded with the computer- readable instructions. Alternatively, an instruction store 240 may comprise writeable memory, such as random access memory (RAM) and the computer-readable instructions can be input thereto from a computer program product, such as a non-transitory computer- readable storage medium 260 (for example an optical disk such as a CD-ROM, DVD-ROM, etc.) or a computer-readable signal 270 carrying the computer-readable instructions.

In some embodiments, portable processing device 80 further comprises one or more sensors which may be a GPS sensor, a WiFi sensor, a gyroscope, an accelerometer, a magnetometer, etc. Figure 3 schematically illustrates some of the functional processing modules of a portable processing device 80 or processing apparatus 110 in an embodiment. Referring to Figure 3, a processing apparatus 300 is illustrated, which represents a portable processing device 80 and/or processing apparatus 110 (if processing is to be performed on processing apparatus 110 instead of or in addition to a portable processing device 80) . When a processing apparatus 300 represents a portable processing device 80, the functional processing modules illustrated in Figure 3 comprise modules on the portable processing device 80 that are implemented by app 100.

Processing apparatus 300 has functional modules comprising data requirement specifier 302, data receiver 304, location data set generator 306, position change detector 308, journey data set generator 310, position projector and combiner 312, data- generating-state controller 314 and central controller 316. Data requirement specifier 302 is operable to interface with the application programming interface, API, of the portable processing device 80 to specify the requirements for data to be passed to processing apparatus 300. Such requirements comprise, by way of example, the accuracy of positions and the rate at which data is passed to processing apparatus 300.

Data receiver 304 is operable to receive data passed by the portable processing device 80. Location data set generator 306 is operable to generate a time- ordered set of location data.

Position change detector 308 is operable to determine whether the position of the portable processing device 80 has moved more than a threshold distance. Figure 4 schematically illustrates the functional processing modules of position change detector 308 in this embodiment.

Referring to Figure 4, position change detector 308 comprises position difference calculator 402, accuracy difference calculator 404, position difference and accuracy difference comparator 406, position comparator 408, speed calculator 410, speed comparator 412, acceleration calculator 414 and acceleration comparator 416. Position difference calculator 402 is operable to calculate a position difference between a position in a sequence of positions and a preceding position in the sequence.

Accuracy difference calculator 404 is operable to calculate an accuracy difference between the accuracy of a position in a sequence and the accuracy of a preceding position in the sequence.

Position difference and accuracy difference comparator 406 is operable to compare a position difference and an accuracy difference to determine whether a position is more than a threshold distance from a preceding position.

Position comparator 408 is operable to process a time-ordered set of positions to determine whether a distance between the position at the latest time in the set and any position at an earlier time in the set is greater than a threshold distance.

Speed calculator 410 is operable to calculate a calculated speed at which the portable processing device travels.

Speed comparator 412 is operable to determine whether a calculated speed calculated by speed calculator 410 is less than a threshold speed. Acceleration calculator 414 is operable to calculate a calculated acceleration of the portable processing device. Acceleration comparator 416 is operable to determine whether a calculated acceleration calculated by acceleration calculator 414 is less than a threshold acceleration.

Referring again to Figure 3, journey data set generator 310 is operable to generate a time-ordered set of journey data.

Position projector and combiner 312 is operable to calculate a projected position of the portable processing device 80 in dependence upon a preceding position and calculated combined position, by combining the projected position and a current position in dependence upon the accuracy of the preceding position and the accuracy of the current position.

Data-generating-state controller 314 is operable to switch the portable processing device 80 from a lower-energy data generating state to a higher-energy data generating state and to switch the portable processing device from a higher-energy data generating state to a lower-energy data generating state.

Central controller 316 is operable to provide central control and processing for the other functional processing modules. Figure 5 shows further functional processing modules in the present embodiment. The functional processing modules shown in Figure 5 may be provided in the same apparatus as the functional processing modules shown in Figure 3 or they may be provided in a separate processing apparatus. Thus, by way of example, the functional processing modules shown in Figure 3 may be provided in a portable processing device 80, while the functional processing modules shown in Figure 5 may be provided in processing apparatus Referring to Figure 5, the further functional processing modules comprise journey data segmenter 502, segment parameter calculator 504 and a trained learning machine 506.

Journey data segmenter 502 is operable to process data defining a sequence of positions during a journey to divide the sequence into a series of segments.

Segment parameter calculator 504 is operable to calculate characterising parameters for each segment generated by journey data segmenter 502.

Trained learning machine 506 may comprise any form of trained learning machine, such as a support vector machine, a neural network, a relevance vector machine, a logistic regression machine, a linear regression machine, etc. Trained learning machine 506 is operable to receive the characterising parameters calculated by segment parameter calculator 504 for a segment, a preceding segment in a series and a following segment in the series as inputs, and to output a determined mode of transport for the segment .

Processing operations performed in embodiments of the invention will now be described.

Figures 6A and 6B show the processing operations performed in a lower-energy state to gather data.

Referring to Figure 6A, at step S602 and step S604, data requirement specifier 302 sends instructions to portable processing device 80 defining the accuracy of position data and the data rate required in the current operation state. As the current operation state is a lower-energy state, which is effected until it is determined that the portable processing device has started a journey in order to reduce processing and prolong the battery life of the portable processing device 80, data requirement specifier 302 instructs a relatively low position accuracy and a relatively low data rate. The position accuracy and data rate specified at steps S602 and S604 are set to values such that portable processing device 80 can use low energy sensing techniques, such as WiFi sensing. In particular, the position accuracy and data rate specified at steps S602 and S604 are set to values such that the portable processing device does not need to enable the high-energy global positioning system (GPS) sensor. By way of non-limiting example, at step S602, data requirement specifier 302 instructs a position accuracy of 100 meters or better and, at step S604, instructs a data rate of location data for one position every 5 meters (if the operating system of the portable processing device is iOS) or location data for one position every 5 seconds (if the operating system of the portable processing device is Android) .

At step S606, data receiver 304 receives location data generated by portable processing device 80 for a first location. In this embodiment, the location data for a location comprises data defining a position vector (defined by a latitude and a longitude) , an accuracy for the position, a speed at the position and a time-stamp.

At step S608, location data set generator 306 adds the first location data received at step S606 to a location data set. As the location data contains a time-stamp, the location data set is effectively time-ordered.

At step S610, data receiver 304 receives data generated by the portable processing device 80 for the next location.

At step S612, position change detector 308 processes the position data and the accuracy data in the received location data to determine if the portable processing device has moved more than a threshold distance. Figure 7 shows the processing operations performed at step S612 in the present embodiment.

Referring to Figure 7, at step S702, position difference calculator 402 calculates a position difference between the position defined in the location data received at step S610 and the position defined by the position data in the location data received for the preceding position received either at step S606 or a previous iteration of step S610.

At step S704, accuracy difference calculator 404 calculates an accuracy difference for the current position defined by the accuracy data received in the location data at step S610 and the accuracy of the preceding position defined by the accuracy data received in the location data for the preceding position.

At step S706, position difference and accuracy difference comparator 406 compares the position difference calculated at step S702 and the accuracy difference calculated at step S704 to determine whether the portable processing device 80 has moved more than a threshold distance.

More particularly, in the present embodiment, position difference and accuracy difference comparator 406 determines whether:

I -^current ~ -^preceding | ^ (^-current ~ a preceding ( 1 ) where ^current is the current position (in vector form in this embodiment) defined by the position data in the location data received at the step S610, ^-preceding is the preceding position, a current is the accuracy of the current position defined by the accuracy data received in the location data at step S610, CL vreceding is the accuracy of the preceding position, and k is a constant. In this embodiment, the accuracy values O-current an d preceding comprise values which decrease as the accuracy increases. For example, "a" values may represent a statistical expectation of the distance between the position provided by the data and the actual position of the portable processing device. The constant k is set to a value 0.5 < k < 5 in the present embodiment.

It will, of course, be appreciated that different techniques from that described above can be used to compare the position difference and the accuracy difference at step S706 to determine if the portable processing device has moved more than a threshold distance.

Referring again to Figure 6B, at step S614, position difference and accuracy difference comparator 406 determines whether the portable processing device has moved more than the threshold distance. In this embodiment, position difference and accuracy difference comparator 406 determines that the portable processing device has moved more than a threshold distance if | x C urrent ~ ■^■preceding | is not less than (^O-current ^-preceding) ^ · If it is determined at step S614 that the portable processing device has not moved more than a threshold distance, then processing returns to step S610. On the other hand, if it is determined at step S614 that the portable processing device 80 has moved more than a threshold distance, then processing proceeds to step S616.

At step S616, location data set generator 306 adds the location data received at step S610 to the location data set. At step S618, central controller 316 determines whether the higher-energy state has been activated. As will be explained below, this higher-energy state is activated when it is determined that the portable processing device has begun a journey. If it is determined at step S618 that the higher-energy state has not been activated, then processing returns to step S610. On the other hand, if it is determined at step S618 that the higher- energy state has been activated, then processing in the current lower-energy state ends .

Figure 8 shows processing of operations that are performed in the lower-energy state in parallel with the processing operations shown in Figures 6A, 6B and 7. The processing operations shown in Figure 8 are performed to determine whether the portable processing device 80 has begun a journey and, if it has, to activate the higher-energy state.

Referring to Figure 8, at step S802, position comparator 408 of position change detector 308 processes the position data in the location data stored at steps S608 and S616 for the current time and a predetermined time period preceding the current time, to calculate a distance between the position at the current time and the position at each respective preceding time in the predetermined time period. More particularly, in this embodiment, position comparator 408 reads the position data stored in the location data set for a predetermined time period of "n" seconds, where 30 < n < 600. Position comparator 408 calculates a distance between the position at the latest time in the predetermined time period and the position at each respective preceding time in the predetermined time period.

At step S804, position comparator 408 processes the distances calculated at step S802 to determine whether any of the positions in the predetermined time period are more than a threshold distance from the latest position. In this embodiment, position comparator 804 determines whether any of the distances calculated at step S802 ci!CG mo-te thcin ^thi rnste-t s,- where 5 meters ^ ^thi ≤ 100 meters . If it is determined at step S804 that none of the positions in the predetermined time period is more than the threshold distance from the latest position, then processing returns to step S802. On the other hand, if it is determined at step S804 that one or more of the positions in the predetermined time period is more than the threshold distance from the current position, then it is determined that the portable processing device 80 has started a journey and processing proceeds to step S806, at which data- generating-state controller 314 activates the higher-energy state.

Processing of operations performed in the higher-energy state will now be described. Figures 9A and 9B show the processing operations performed in the higher-energy state to gather data.

Referring to Figure 9A, at steps S902 and S904, data requirement specifier 302 sends instructions to the portable processing device 80 defining the position accuracy and the location data rate required in the higher-energy state. As described above, the higher-energy state is effected when it is determined that the portable processing device 80 has moved more than a threshold distance within a predetermined time period and has therefore begun a journey. Accordingly, a higher position accuracy and a higher data rate is required in this state than in the lower- energy state described above. This higher position accuracy and higher location data rate may require the portable processing device 80 to use sensors such as a GPS sensor, an accelerometer, a gyroscope and/or a magnetometer. More particularly, by way of non- limiting example, at step S902, data requirement specifier 302 may instruct a position accuracy of 10 meters or better and, at step S904, may instruct an unlimited data rate such that portable processing device 80 passes location data as and when it is generated. At step S905, data requirement specifier 302 sends instructions to the portable processing device 80 defining the sensor data rate required in the higher-energy state. This is specified separately from the location data rate at step S904 in this embodiment because some portable processing devices may provide location data and sensor data separately. In this embodiment, data requirement specifier 302 sends instructions to the portable processing device 80 to supply sensor data at a rate equal to the location data. At step S906, data receiver 304 receives data for the first location from the portable processing device 80. In this embodiment, the data comprises location data and sensor data. The data comprises data defining a position (specified by a latitude and a longitude) , an accuracy for the position, a speed at the position, acceleration at the position, and a time-stamp.

At step S908, journey data set generator 310 adds the data received at step S906 to a journey data set. At step S910, data receiver 304 receives data for the next position .

At step S912, position change detector 308 processes the position data and accuracy data in the data received at step S910 to determine if the portable processing device 80 has moved more than a threshold distance.

Figure 10 shows the processing operations performed by position change detector 308 at step S912.

Referring to Figure 10, at step S1002, position difference calculator 402 calculates a position difference between the position defined by the data received at step S910 and the preceding position in the journey data received either at step S906 or a previous iteration of step S910. At step S1004, accuracy difference calculator 404 calculates an accuracy difference between the accuracy of the position defined by the data received at step S910 and the accuracy of the preceding position in the journey data set.

At step S1006, position difference and accuracy difference comparator 406 compares the position difference calculated at step S1002 and the accuracy difference calculated at step S1004 to determine if the portable processing device has moved more than a threshold distance. In particular, in this embodiment, position difference and accuracy difference comparator 406 determines whether :

I x current x preceding \ ^ a current ^preceding) * ^2 (2) where x C urrent i- s the current position defined by the position data in the location data received at the step S910, Xpreceding is the preceding position, a current is the accuracy of the current position defined by the accuracy data received in the location data at step S910, O-preceding is the accuracy of the preceding position, and k 2 is a constant. In this embodiment, the accuracy values (^current an d a preceding comprise values which decrease as the accuracy increases. The constant k 2 is set to a value 0.5 < k 2 ≤ 5 in the present embodiment. In this embodiment, the value of k 2 is set to a value lower than the value of k employed in the lower-energy state at step S706.

Position difference and accuracy difference comparator 406 determines that the portable processing device has moved more than a threshold difference if \ x current ~ x preceding \ is n °t less than

{-current ~ ^preceding) * ^2 ·

At step S1008, speed calculator 410 calculates a calculated speed of the portable processing device when travelling from the preceding position to the current position . More particularly, speed calculator 410 calculates the calculated speed in accordance with the following equation: j - \ x current x preceding \ , ~ .

~> v calculated,current ~ ~Z ~ ' ^ '

L current ' 'preceding where the x C aicuiated,current is the calculated speed for the current position, x C urrent is the current position, ^preceding is the preceding position, t current is the time for the current position and tyreceding0 is the time for the preceding position.

That is, speed calculator 410 calculates the speed by dividing the position difference calculated at step S1002 by the difference in the time-stamps of the current position and the preceding5 position. As this calculated speed is calculated based upon the position data (rather than the speed data received from the portable processing device at step S906 and S910), the calculated speed is indicative of the accuracy of the position. 0 At step S1010, speed comparator 412 compares the calculated speed calculated at step S1008 with a threshold speed. The threshold speed may be set at a value indicative of the maximum speed expected of a transport on which the portable processing device may be carried. In the example illustrated in Figure 1, train 605 is likely to travel at the fastest speed and therefore in this embodiment, a threshold speed based on the fastest speed of train 60 is set. Accordingly, by way of non-limiting example, a threshold speed is set of 60 meters per second. 0 If it is determined that the calculated speed is greater than the threshold speed, then it is determined that the position data is inaccurate and that the portable processing device has not moved more than a threshold distance. At step S1012, acceleration calculator 414 calculates a calculated acceleration of the portable processing device when travelling from the preceding position to the latest position. In this embodiment, acceleration calculator 414 calculates the calculated acceleration in accordance with the following equation: \ v calculated, current - v calculated,preceding \

wcalculated,current ~ I ~ ' '

L current "-preceding where w' C aicuiated,current is the calculated acceleration for the current position, v' C aicuiated,current is the calculated speed for the current position, v calculatediPreceding is the calculated speed for the preceding position, t current is the time for the current position and tyreceding is the time for the preceding position. That is, acceleration calculator 414 calculates the calculated acceleration by calculating the difference between the calculated speed calculated at step S1008 for the current position and the calculated speed calculated on a previous iteration at step S1008 for the preceding position and dividing the calculated difference in the calculated speeds by the time given by the difference in the time-stamp for the current position and the time-stamp for the preceding position. In this way, the calculated acceleration is calculated in dependence upon the current position and the preceding position, and is therefore indicative of the accuracy of those positions.

At step S1014, acceleration comparator 416 compares the calculated acceleration calculated at step S1012 with a threshold acceleration. The threshold acceleration is set in dependence upon the maximum acceleration likely to be experienced by the portable processing device 80 when undergoing a journey. In the example of Figure 1, the train 60 is likely to have the fastest acceleration and therefore, in this embodiment, the threshold acceleration is set in dependence upon the maximum likely acceleration of train 60. By way of non-limiting example, in this embodiment, a threshold acceleration is set of 20ms -2 .

If it is determined at step S1014 that the calculated acceleration is greater than the threshold acceleration, then it is determined that the position data is likely to be inaccurate and therefore it is determined that the portable processing device has not moved more than the threshold distance. Referring again to Figure 9B, at step S914, it is determined whether the portable processing device 80 has moved more than a threshold distance. More particularly, in this embodiment, if it is determined at any of steps S1006, S1010 or S1014 that the portable processing device has not moved more than the threshold distance, then processing returns to step S910. On the other hand, if it is determined in all of the comparisons of step S1006, S1010 and S1014 that the portable processing device has moved more than the threshold distance, then processing proceeds to step S916. At step S916, processing is performed to further improve the statistical accuracy of the position data. This processing is optional and may be omitted.

At step S916, position projector and combiner 312 projects forward to preceding position to give a projected position, and combines that projected position with the current position to give a filtered position. More particularly, in this embodiment, position projector and combiner 312 calculates a projected position x pr0 jected and an accuracy for the projected position a pr0 j ected in accordance with the following equations:

^projected ~ -^preceding ^preceding * ( - current ~ ^preceding)

preceding -current ~ ^-preceding) ( ~> )

In equation (5) above, ^preceding is the speed at the preceding position as defined in the data received from the portable processing device, and w preceding is an acceleration at the preceding position calculated as the ratio of the difference between the speed at the preceding position and the speed at a second preceding position, and the difference between the respective times of the preceding position and the second preceding position.

In equation (6) above, σ is a constant having a value 0.5ms -1 < σ < 10ms -1 .

Position projector and combiner 312 then combines the projected position ^projected with the current position ^current to give a filtered position X ntered as follows: projected " ^ ^ ' current ' ^current " ^"^ projected

■^projected ''current^ In this way, the projected position and the current position are combined in dependence upon the accuracy of the preceding position (which was used in equation (6) to calculate the accuracy of the projected position) and the accuracy of the current position. A Kalman filter could be employed in the processing step S916.

Referring again to Figure 9B, at step S918, journey data set generator 310 adds the data received at step S910 to the journey data set, but replacing the position data in the received data with data defining the filtered position calculated at step S916, if this filtering was performed. At step S920, a central controller 316 determines whether the lower-energy state has been activated.

If it is determined at step S920 that the lower-energy state has not been activated, then processing returns to step S910. On the other hand, if it is determined at step S920 that the lower-energy state has been activated then processing in the higher-energy state ends and the processing in the lower-energy state described above with reference to Figures 6A, 6B, 7 and 8 starts again.

Figure 11 shows the processing operations performed in the higher- energy state to determine whether the portable processing device 80 has moved more than a threshold distance, and to switch the portable processing device from the higher-energy state to the lower-energy state. The processing operations shown in Figure 11 are performed in parallel with the processing operations shown in Figure 9A, 9B and 10.

Referring to Figure 11, at step S1102, position comparator 408 of position change detector 308 processes the position data in the journey data at the current time and the position data in the journey data for a predetermined time period preceding the current time to calculate a distance between the position at the current time and a position at each respective preceding time in the predetermined time period. In this embodiment, position comparator 408 performs the calculations for a time period of "m" seconds where 30 < m < 600. The value of "m" need not be the same as the value of "n" used in the processing at step S802. At step S1104, position comparator 408 determines whether any of the distances calculated at steps S1102 are greater than a threshold distance, that is, whether any of the positions in the predetermined time period are more than a threshold distance from the current position. More particularly, in this embodiment, position comparator 408 determines at step S1104 whether any of the distances calculated at step S1102 are greater than a threshold distance Z th2 where Z th2 has a value 5 meters < Z th2 ≤ 100 meters. Z tfl2 need not have the same value as Z tfll employed at the processing in step S804. If it is determined at step S1104 that at least one of the positions in the predetermined time period is more than a threshold distance from the current position, then it is determined that the portable processing device has moved more than a threshold distance and is still undergoing a journey, such that processing in the higher-energy state should continue. Accordingly, processing returns to step S1102.

On the other hand, if it is determined in step S1104 that none of the positions in the predetermined time period are more than the threshold distance from the current position, then it is determined that the mobile processing device has not moved more than the threshold distance and has ended its journey. Accordingly, processing proceeds to step S1106, at which data- generating-state controller 314 activates the lower-energy state.

The processing operations that are performed to determine the mode(s) of transport for a portable processing device on a journey will now be described with reference to Figures 12A, 12B, 13 and 14. These processing operations can be performed whilst the processing operations in the lower-energy state or the higher- energy state are being performed, or they may be performed when the portable processing device 80 is in neither state. As noted above, the processing operations to determine the mode(s) of transport may be performed on the processing device 80 or in processing apparatus 110.

Referring to Figure 12A at step S1202, journey data segmenter 502 reads the data for the next time in the journey data previously stored at steps S908 and S918 (this being the data for the first time in the journey data the first time step S1202 is performed) . At step S1204, journey data segmenter data 502 adds the data read at step S1202 to a current segment data set.

At step S1206, journey data segmenter 502 processes the data read at step S1202 to determine if the portable processing device is stationary. More particularly, journey data segmenter 502 reads the speed data from the data and determines that the portable processing device is stationary if the speed data is zero or within a threshold speed of zero, such as less than 0.2 meters per second.

If it is determined at step S1206 that the portable processing device is not stationary, then processing returns to step S1202 to add further data to the current segment data set.

On the other hand, if it is determined at step S1206 that the portable processing device is stationary, then the segment data set is closed and processing proceeds to step S1208, at which segment parameter calculator 504 processes the segment data set to calculate at least one set of characterising parameters for the segment .

In this embodiment, segment parameter calculator 504 calculates a set of time-based characterising parameters and a set of frequency-based characterising parameters.

The time-based characterising parameters calculated by segment parameter calculator 504 comprise at least one of speed characterising parameters, acceleration characterising parameters and angular velocity characterising parameters.

The speed characterising parameters comprise: the time span of the segment;

- the mean speed in the segment; the standard deviation of the speed in the segment;

the maximum speed in the segment;

a plurality of L p -norms of the speed in the segment. The acceleration characterising parameters comprise: the mean absolute acceleration in the segment;

the standard deviation of the absolute acceleration in the segment ;

- the maximum absolute acceleration in the segment;

a plurality of L p -norms of the absolute acceleration in the segment .

The angular velocity characterising parameters comprise: the mean absolute angular velocity in the segment;

the standard deviation of the absolute angular velocity in the segment;

the maximum absolute angular velocity in the segment; and - a plurality of L p -norms of the absolute angular velocity in the segment .

The mean speed during the journey segment may be calculated by integrating the speed supplied by GPS and dividing by the time span of the segment.

With regard to the plurality of L p -norms of the speed in the segment, segment parameter calculated 504 may calculate the L 10 norm of the speed, the L 20 norm of the speed, the L 30 norm of the speed, the L 40 norm of the speed and the L 50 norm of the speed.

Each L p -norm may be normalised by the length of the segment. Each L p -norm of the speed may be calculated using the following equation : (8) where v is the speed, t is the time, n is the number of speeds in the segment, and subscripts are indices for each speed and respective time in the segment. With regard to the L p -norms of the absolute acceleration, segment parameter calculator 504 may calculate the L 10 norm of the absolute acceleration, the L 20 norm of the absolute acceleration, the L 30 norm of the absolute acceleration, the L 40 norm of the absolute acceleration and the L 50 norm of the absolute acceleration.

Each L p -norm may be normalised by the length of the segment.

Segment parameter calculator 504 may calculate each L p -norm of the absolute acceleration using the following equation:

(9) where w is the acceleration, t is the time and n is the number of accelerations in the segment, and subscripts are indices for each acceleration and respective time in the segment.

With regard to the L p -norms of the angular velocity, segment parameter calculator 504 may calculate the L 10 norm of the angular velocity, the L 20 norm of the angular velocity, the L 30 norm of the angular velocity, the L 40 norm of the angular velocity and the L 50 norm of the angular velocity.

Each L p -norm may be normalised by the length of the segment. Segment parameter calculator 504 may calculate each L p -norm of the angular velocity using the following equation:

(10) where s is the angular velocity, t is the time, n is the number of angular velocity in the segment, and subscripts are indices for each angular velocity and respective time in the segment.

In addition to the time-based parameters described above, segment parameter calculator 504 may calculate further time-based characterising parameters comprising at least one of: a probability of the mean speed in the segment being cycling; a probability of the mean speed in the segment being running; a probability of the mean speed in the segment being walking; a probability of the mean speed in the segment being travelling by car; a probability of the mean speed in the segment being travelling by bus; and a probability of the mean speed in the segment being travelling by train.

By way of example, the probability of the mean speed being cycling and probability of the mean speed being running may be based on mean speeds of cyclists and mean speeds of runners obtained from suitable apps, such as the Strava app .

Segment parameter calculator 504 generates the frequency-based characterising parameters by performing fast Fourier transforms (FFTs) on the data. By way of example, the FFTs may be performed on data with periods of ten seconds at one second intervals. The data may be interpolated to generate 256 regularly spaced samples over a ten second period and then fast Fourier transformed.

The frequency-based characterising parameters calculated by segment parameter calculator 504 comprise: the total energy in the frequency spectrum averaged over all FFTs in the segment;

the energy in the frequency spectrum averaged over all FFTs in the segment in a first frequency range;

the energy in the frequency spectrum averaged over all FFTs in the segment in at least one further frequency range, different from the first frequency range; and

the entropy of the frequency spectrum averaged over all FFTs in the segment .

By way of non-limiting example, segment parameter calculator 504 may calculate the energy in the frequency spectrum averaged over all FFTs in a segment between 0-lHz, the energy in the frequency spectrum averaged over all FFTs in a segment between l-2Hz, the energy in the frequency spectrum averaged over all FFTs in the segment between 2-3Hz, the energy in the frequency spectrum averaged over all FFTs in the segment between 3-4Hz and the energy in the frequency spectrum averaged over all FFTs in the segment between 4-5Hz.

In addition to the frequency-based characterising parameters described above, segment parameter calculator 504 may calculate further frequency-based characterising parameters comprising: the mean signal-to-noise ratio (SNR) within the frequency range 0.5Hz to 2Hz (this frequency range corresponding to the human motion frequency range) ; and the maximum SNR within the frequency range 0.5Hz to 2Hz (this frequency range corresponding to the human motion frequency range) . The SNR may be calculated within every FFT . The strongest signal within the range 0.5Hz to 2Hz may be identified. The noise floor may be approximated by taking a trimmed average of the rest of the spectrum. The trimmed average excludes the four largest and four smallest values from the spectrum.

Segment parameter calculator 504 may calculate further frequency- based characterising parameters comprising calculating a plurality of L p -norms of the signal-to-noise ratio, such as the norm, the

L10 norm, the nor, the L^O norm and the norm.

A step S1210, journey data segmenter 502 determines whether all of the stored journey data has been processed.

If it is determined at step S1210 that not all of the journey data has been processed, then processing returns to step S1202 to form a new segment data set. On the other hand, if it is determined at step S1210 that all of the journey data has been processed, then processing proceeds to step S1212. At step S1212, the characterising parameters calculated at step S1208 for a current segment, a previous segment in the journey and a following segment in the journey are input into a pre-trained learning machine. More particularly, referring to Figure 13, a learning machine 1300 has previously been trained using multiple sets of training data. Each set of training data comprises characterising parameters for at least 3 segments, namely a current segment 1302, a previous segment in the journey 1304 and a following segment in the journey 1306. Optionally, characterising parameters for at least one further previous segment 1308 and at least one further following segment 1310 may be included in each training set.

Training the learning machine in this way generates a trained learning machine 1400 as schematically illustrated in Figure 14.

At step S1212, the characterising parameters calculated for current segment 1402, a previous segment 1404 in the journey and a following segment 1406 in the journey are input into the trained learning machine 1400. Optionally, characterising parameters for at least one further previous segment 1408 and at least one further following segment 1410 may be input into the trained learning machine 1400. Referring again to Figure 14B, step S1214, the resulting determination of the transport mode for the current journey segment 1402 is received as an output from the trained learning machine 1400. Modifications

Many modifications can be made to the embodiment described above within the scope of the accompanying claims . For example, in the embodiment described above the processing at steps S802 and S804, as well the processing at steps S1102 and S1104, calculates the distance between a current position and each respective preceding position in a predetermined time period to determine any of the positions in the predetermined time period is more than a threshold distance from the current position. However, instead, the processing at steps S802 and S804 and/or the processing at steps S1102 and S1104 could be performed by calculating a distance between the current position and a single statistical position, which is calculated based on each preceding position in the predetermined time period, so as to give a single distance which is then compared against a distance threshold. In the embodiment described above, the processing performed at steps S916 and S918 in the higher-energy mode cold also be performed in the lower energy mode in place of the processing at step S616.

In this embodiment, data requirement specifier 302 sends instructions to the portable processing device 80 at step S905 to instruct the portable processing device to supply sensor data at a rate equal to the location data. However, data requirement specifier 302 may specify a sensor data rate that is different form the location data rate and may store the sensor data and the location data in different sets (it being possible to determine the data for any give position/time that requires processing by means of the time stamps on the data) .

In the embodiment described above, when the data is received in the higher-energy state in steps S906 and S910, a timer may be set to count down from a time out value (such as, by way of non- limiting example, 3 minutes) and, if the timer reaches zero before new data is received on the next iteration of step S910, the data- generating-state controller 314 activates the lower-energy state if this has not already been activated in the meantime. In the embodiment described above, each portable processing device 80 is carried by a person. However, instead a portable processing device 80 could be a portable processing device carried on an item such as a package, parcel, container, etc that undergoes a journey .

The skilled person will, of course, understand that many further modifications and variations can be made.