Using magnetometers and accelerometers to detect mechanical devices

By detecting the magnetic field distortion and vibration pattern of transportation vehicles with magnetometers and accelerometers, and analyzing the data with the classifier module, the accuracy problem of transportation mode identification in mobile devices is solved, and accurate inference of transportation vehicle type and user location is achieved, improving improve data accuracy and user experience in the application.

CN108694371BActive Publication Date: 2024-09-06INTEL CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201810184662.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2017-04-06
Filing Date
2018-03-06
Publication Date
2024-09-06
Estimated Expiration
2038-03-06

AI Technical Summary

Technical Problem

Existing technologies struggle to effectively detect and identify modes of transportation in human activities, especially through sensor data from mobile devices, leading to inaccurate information acquisition in applications such as personal assistants and life coaching.

Method used

Sensor data from a combination of magnetometers and accelerometers are used to detect magnetic field distortion and vibration patterns through Hall effect sensors. The classifier module is used to analyze magnetic characteristics and acceleration characteristics to infer the type of transportation vehicle and user location.

Benefits of technology

It achieves accurate identification of transportation modes and fine-grained information acquisition of user locations, improving data accuracy and user experience in mobile device applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN108694371B_ABST
    Figure CN108694371B_ABST
Patent Text Reader

Abstract

Techniques for detecting a mechanical device are described. An example method may include retrieving magnetometer data generated by a magnetometer coupled to a mobile device. A magnetic signature may be extracted from the magnetometer data, wherein the magnetometer data may be associated with a magnetic field distortion pattern generated by mechanical movement of the mechanical device. Accelerometer data generated by an accelerometer coupled to the mobile device may be retrieved. An acceleration signature associated with a vibration pattern generated by mechanical movement of the mechanical device may be extracted from the accelerometer data. Thereafter, the magnetic signature and the acceleration signature may be used to identify the mechanical device.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0001] Understanding human activity may be beneficial to building smart environments including sensors, actuators, displays, and computing elements embedded in everyday objects and seamlessly connected through continuous networks. Low-cost, readily available sensing modalities for human activity can be used to monitor and infer human activity. For example, mobile devices have become ubiquitous and may have become part of people's daily lives. Sensors built into mobile devices provide a great opportunity to detect human activity using the sensing platform provided by the mobile device. Human activity detected by mobile devices may be beneficial to applications that can be configured to analyze human activity, such as personal health care applications, life coaching applications, or recommendation systems.

[0002] One specific type of context associated with human activity is the mode of transportation, i.e., the form used by a person to travel from one point to another. In particular, identifying human and motorized forms of transportation may be beneficial for context-aware applications. As an example, a personal assistant application may use information about the mode of transportation to understand that people take public transportation to work. As another example, a life coaching application may use information about the mode of transportation to make suggestions, such as getting off the bus one stop earlier in order to increase physical activity. BRIEF DESCRIPTION OF THE DRAWINGS

[0003] Features and advantages of embodiments of the present invention will be apparent from the following detailed description taken in conjunction with the accompanying drawings, which together illustrate features of the present invention by way of example; and wherein:

[0004] Figure 1 is a diagram illustrating a high-level example of a system for inspecting mechanical equipment.

[0005] Figure 2 is a block diagram illustrating components of an example mobile device on which the present technology may be implemented.

[0006] Figure 3 is a block diagram illustrating an example system for detecting mechanical equipment using sensor data sent by a mobile device.

[0007] Figure 4 is a flow chart illustrating an example method for detecting a mode of transportation using a mobile device configured with a magnetometer and an accelerometer.

[0008] Figure 5 A line graph showing example frequencies of inferred vehicle types from magnetometers is illustrated.

[0009] Figure 6 Illustrated is a line graph showing changes in a magnetic field detected by a magnetometer included in a mobile device when placed in different locations in a vehicle.

[0010] Figure 7 A line graph showing example power spectra of vertical acceleration for multiple vehicles is illustrated.

[0011] Figure 8 Histograms showing example Gaussian distributions for vertical and horizontal components of acceleration data converted to the frequency domain are illustrated.

[0012] Example 9 illustrates an example line graph showing example magnetic field changes for an appliance.

[0013] Fig.10 Example confusion matrices are illustrated for different vehicle configuration scenarios in which the location of a mobile device may be determined.

[0014] Fig.11 is a flow chart illustrating an example method for inspecting a mechanical device.

[0015] Fig.12 is a block diagram illustrating an example of a computing device that may be used to execute a method for detecting a mode of transportation.

[0016] Description of Embodiments

[0017] Before describing the embodiments of the invention, it should be understood that the present disclosure is not limited to the specific structures, process steps or materials disclosed herein, but is extended to the equivalents of the specific structures, process steps or materials disclosed herein as will be recognized by those of ordinary skill in the relevant art. It should also be understood that the terms used herein are only used to describe specific examples or embodiments and are not intended to be limiting. The same reference numerals in different figures represent the same elements. The numbers provided in the flow charts and processes are provided for clarity when illustrating the steps and operations, and do not necessarily indicate a specific order or sequence.

[0018] Moreover, the described features, structures or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details, such as examples of layouts, distances, network examples, etc., are provided to provide a thorough understanding of various inventive embodiments. However, those skilled in the relevant art will recognize that such detailed embodiments do not limit the overall inventive concepts set forth herein, but are merely representative thereof.

[0019] As used in this written description, the singular forms "a," "an," and "the" include express support for plural referents unless the context clearly dictates otherwise. Thus, for example, reference to "a network" includes a plurality of such networks.

[0020] References to "examples" throughout this specification mean that a particular feature, structure, or characteristic described in conjunction with the example is included in at least one inventive embodiment. Therefore, the appearance of the phrase "example" or "embodiment" in multiple places throughout this specification does not necessarily refer to the same embodiment.

[0021] As used herein, for convenience, multiple projects, structural elements, constituent elements and / or materials may be presented in a public list. However, these lists should be considered as if each member of the list is individually identified as a separate and unique member. Therefore, if not otherwise indicated, no individual member in this list should be considered as the de facto equivalent of any other member of the same list based only on their demonstration in the public group. In addition, in this article, each invention embodiment and example can be quoted together with the alternative of each component thereof. It is to be understood that this embodiment, example and substitution should not be considered as de facto equivalents to each other, but are considered as separate and autonomous representations of the present disclosure.

[0022] Moreover, the described features, structures or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided, such as examples of layouts, distances, network examples, etc., to provide a thorough understanding of the embodiments of the invention. However, those skilled in the relevant art will recognize that the present invention may be implemented without one or more of the specific details, or may be implemented using other methods, components, layouts, etc. In other examples, well-known structures, materials, or operations may not be shown or described in detail to avoid obscuring aspects of the present disclosure.

[0023] In this application, "comprises", "comprising", "containing", and "having" and the like may have the meanings assigned to them in U.S. patent law, and may mean "includes", "including", and the like, and are generally interpreted as open-ended terms. The term "consisting of" or "consists of" is a closed term, and includes only the components, structures, steps, etc. specifically listed in conjunction with these terms, and those that comply with U.S. patent law. "Consisting essentially of" or "consists essentially of" have the meanings generally assigned to them in U.S. patent law. In particular, such terms are generally closed terms, except that additional items, materials, components, steps, or elements are allowed to be included, which do not substantially affect the basic and novel characteristics or functions of the items used in conjunction with them. For example, if it appears under the "essentially consisting of" language, then trace elements that are present in the composition but do not affect the characteristics and properties of the composition are still allowed even if they are not explicitly recorded in the list of items following these terms. When open-ended terms such as "comprising" or "including" are used in this written description, it should be understood that direct support for "consisting essentially of" language and "consisting of" language will also be provided, as if explicitly stated, and vice versa.

[0024] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims are used to distinguish between similar elements and are not necessarily used to describe a particular order or chronological sequence. It should be understood that any terms so used are interchangeable where appropriate, such that the embodiments described herein can, for example, operate in an order different from that shown or otherwise described herein. Similarly, if described herein as a method comprising a series of steps, the order of these steps presented herein is not necessarily the only order in which these steps can be performed, and some of the steps may be omitted and / or some other steps not described herein may be added to the method.

[0025] As used herein, comparative terms such as "increased," "decreased," "better," "worse," "higher," "lower," "enhanced," and the like refer to a property of a device, component, or activity that is measured differently than other devices, components, or activities in surrounding or adjacent areas, in a single device or multiple similar devices, in a group or class, in multiple groups or classes, or compared to the known state of the art. For example, a data region with an "increased" risk of contamination may refer to a region of a memory device that is more likely to have write errors than other regions in the same memory device. Many factors can contribute to this increased risk, including location, manufacturing process, number of programming pulses applied to the region, and so forth.

[0026] Numerical value and data can be expressed or presented in range format in this article.Should be understood that such range format is used only for convenience and brevity, and therefore should be flexibly interpreted as not only including the numerical value explicitly recorded as the limit of range, but also including all individual numerical values ​​or subranges included in the range, just as each numerical value and subrange are explicitly recorded.As an illustration, the numerical range of "about 1 to about 5" should be interpreted as not only including the value of about 1 to about 5 explicitly recorded, but also including individual values ​​and subranges in the indicated range.Therefore, included in this numerical range are individual values ​​such as 2,3 and 4 and subranges such as from 1-3, from 2-4 and from 3-5, etc., and individual 1,1.5,2,2.3,3,3.8,4,4.6,5 and 5.1.

[0027] This same principle applies to ranges where only one numerical value is described as a minimum or maximum. Furthermore, such an interpretation should apply regardless of the breadth of the range or the characteristics described.

[0028] Example Embodiments

[0029] The following provides an initial overview of the technical embodiments, and then further describes specific technical embodiments in detail. This initial overview is intended to help readers understand the technology more quickly, but is not intended to identify key technical features or essential technical features, nor is it intended to limit the scope of the claimed subject matter.

[0030] Techniques for detecting mechanical devices using sensor data provided by a magnetometer and an accelerometer are described. In one example, a magnetometer may act as a Hall-effect sensor that detects magnetic field distortion caused by mechanical motion of a mechanical device. For example, the mechanical motion of a moving vehicle may produce an observable distorted magnetic field that a magnetometer may detect. The distortion may be harmonically synchronized with a moving component of the vehicle (such as rotation in the wheels and transmission gears of the vehicle), which may be represented as an alternating (AC) magnetic signal. Magnetic distortion may be captured in magnetometer data generated by a magnetometer.

[0031] Accelerometers can be used to capture vibrations or other motions associated with mechanical equipment. For example, accelerometer data generated by an accelerometer can be analyzed to identify mechanical equipment vibrations captured by the accelerometer. For example, different types of vehicles produce different vibration patterns, and these vibration patterns can be used to detect vehicles used as a mode of transportation. In one example, a moving vehicle can affect the accelerometer data generated by an accelerometer by how the vehicle accelerates and decelerates between a stationary state and a vibration pattern that is related to how the vehicle absorbs vibrations from a surface (e.g., a road, track, or air) on which the vehicle is traveling.

[0032] Mechanical equipment can be detected using both magnetometer data and accelerometer data generated by a magnetometer and an accelerometer. By using both magnetometer data and accelerometer data, defects that may be associated with one sensor can be overcome by other sensors. In one example, magnetic features associated with a magnetic field distortion pattern generated by the mechanical movement of the mechanical equipment can be extracted from the magnetometer data, and acceleration features associated with a vibration or movement pattern generated by the mechanical movement of the mechanical equipment can be extracted from the accelerometer data. The magnetic features and acceleration features can then be input to a classifier, which can be configured to evaluate the magnetic features and acceleration features and output a classification corresponding to the magnetic features and acceleration features. In the case where the magnetic features and acceleration features are associated with a vehicle, the classification output by the classifier can be used for the type of vehicle, thereby inferring the mode of transportation utilized by the user of the mobile device with a magnetometer and accelerometer that captures the magnetometer data and accelerometer data.

[0033] To further describe the technology, examples are now provided with reference to the accompanying drawings. Figure 11 is a diagram illustrating a high-level example of a system 100 for detecting a mechanical device 104 using a magnetometer 108 and an accelerometer 110 included in a computing device 106 located within a detection environment 102. The mechanical device 104 may include any device having mechanical components that, when activated, cause magnetic field distortions that may be detected by the magnetometer 108. For example, the mechanical components may include, but are not limited to, engines, motors, transmissions, alternators, differentials, gears, wheels, fans, and other types of mechanical components.

[0034] In the illustrated example, the computing device 106 may include a magnetometer 108, an accelerometer 110, and a detection module 112. The computing device 106 may include a mobile device, such as a smart phone, a wearable computer (e.g., a smart watch, a fitness tracker, and smart glasses), a tablet computer, a laptop or notebook computer, and the like. When located within the detection environment 102, data generated by the magnetometer 108 and the accelerometer 110 may be analyzed by the detection module 112 to determine the classification of the mechanical device 104. For example, the detection module 112 may be configured to determine what type of vehicle (e.g., a bicycle, a motorcycle, a car, a bus, a train, an airplane, etc.) and / or what type of appliance (e.g., a hair dryer, a fan, an electric shaver, a cellular phone, a washer and dryer, etc.) may be located within the detection environment 102. The following description will be made in conjunction with the detection module 112. Figure 2 The detection module 112 will be described in more detail.

[0035] The detection environment 102 may include an area or space within which the magnetometer 108 may be able to detect distortion of the magnetic field caused by the mechanical device 104 and the accelerometer 110 may be able to detect vibration or movement caused by the mechanical device 104. In one example, the detection environment 102 may include the cabin of a vehicle, such as a car, bus, train, or airplane; or the immediate area around a vehicle such as a bicycle, motorcycle, or scooter. In another example, the detection environment 102 may include proximity to an appliance within which magnetic field distortion and vibration caused by the appliance may be detected by the magnetometer 108 and the accelerometer 110.

[0036] In one example, the system 100 may be configured to infer a user's mode of transportation. For example, the computing device 106 may accompany a user in or on a vehicle during transport from one location to another. During the movement of the vehicle, the movement of the vehicle's mechanical components (such as the vehicle's wheels, transmissions, and differentials) distorts the Earth's magnetic field. Components of the vehicle type may cause distortions in the magnetic field that can be used to identify the vehicle type. That is, magnetic field distortions may correspond to a vehicle structure (e.g., a bicycle chain or automobile transmission system) of the vehicle type, which presents itself as a signal for inferring the vehicle (e.g., a bicycle or automobile) used to transport the user.

[0037] In one example, the system 100 may be configured to infer the user's location in a vehicle using a vehicle-based magnetic field that may vary based on the location of the computing device in the vehicle. The difference in the vehicle-based magnetic field may be sufficient to distinguish the location of the computing device in the vehicle. For example, based on the difference in the vehicle-based magnetic field for a particular vehicle classification, a distinction may be made between the driver's seat location and the passenger seat location in a car, thereby allowing an inference to be made about the user's location in the car.

[0038] Figure 2 Components of an example mobile device 202 are illustrated on which the present technology can be executed. In one example, the mobile device 202 can include a module 204 / 206 / 208 / 210 for detecting a mechanical device. For example, the mobile device 202 can include a detection module 204, a preprocessing module 206, a feature extraction module 208, a classifier module 210, and other modules. Similarly, the mobile device 202 can include a magnetometer 220, an accelerometer 222, and other sensors.

[0039] The detection module 204 can be configured to detect mechanical devices adjacent to the mobile device 202 using magnetometer data generated by the magnetometer 220 and accelerometer data generated by the accelerometer 222. In one example, the detection module 204 can be configured to retrieve magnetometer data from the magnetometer 220 and accelerometer data from the accelerometer 222 using a sensor framework for accessing the magnetometer 220 and accelerometer 222. Exemplarily, the sensor framework can provide classes and interfaces that can be used to perform various sensor-related tasks. In one example, time series magnetometer data can be retrieved from the magnetometer 220 and time series accelerometer data can be retrieved from the accelerometer 222.

[0040] Detection module 204 may be configured to provide magnetometer data and accelerometer data to pre-processing module 206 for pre-processing of data. Pre-processing module 206 may be configured to apply a filter to magnetometer data, which filters out the unwanted noise in the magnetometer data. In one example, a bandpass filter may be applied to magnetometer data. As a specific example where magnetometer data is sampled at 100Hz, the bandpass filter may be configured to be at a cut-off frequency of 1Hz and 47.5Hz. This may result in removing the magnetometer data related to the directional change due to vehicle movement (e.g., vehicle steering) with mobile device 202 and random noise (e.g., high frequency band noise) from the electronic components included in the vehicle. In one example, pre-processing module 206 may be configured to divide accelerometer data into a vertical component providing vertical acceleration data and a horizontal component providing horizontal acceleration data, as described in more detail later.

[0041] In one example, preprocessing module 206 can be configured to convert time series magnetometer data into frequency magnetometer data, and convert time series accelerometer data into frequency accelerometer data. For example, preprocessing module 206 can use fast Fourier transform (FFT) method to convert time series data into frequency data. In the case where one second window is used for time series data, preprocessing module 206 can perform FFT on each one second window of time series data. As a non-limiting example, preprocessing module 206 can be configured to buffer the time series data of one second sampled using 100Hz sampling rate, so that one second window includes 100 samples, and then these 100 samples are converted into corresponding power spectrum. Although one second window can provide reasonable result, as will be understood, different window sizes can be used, which can provide a compromise on classification latency and classification accuracy.

[0042] In one example, after converting the time series data into frequency data, the preprocessing module 206 can be configured to remove random noise from the frequency magnetometer data and the frequency accelerometer data. For example, the preprocessing module 206 can first apply a median filter to the frequency data, and then apply a Gaussian filter to the frequency data. The median filter can be used to remove sparse impulse noise that may be induced from the magnetometer 220 and the accelerometer 222. The Gaussian filter can be used to remove high frequency noise.

[0043] After preprocessing has been performed on the magnetometer data and the accelerometer data, the preprocessing module 206 can be configured to provide the preprocessed magnetometer data and the accelerometer data to the feature extraction module 208, which can be configured to extract magnetic features from the magnetometer data and acceleration features from the accelerometer data. In one example, magnetic features and acceleration features can be extracted from each corresponding FFT window output by the preprocessing module 206. One or more features can be extracted from each FFT window. Figure 4 , provides examples of features that can be extracted from magnetometer data and accelerometer data.

[0044] The feature extraction module 208 may be configured to provide the magnetic features extracted from the magnetometer data and the acceleration features extracted from the accelerometer data to the classifier module 210. The classifier module 210 may be configured to identify the mechanical equipment classification associated with the magnetic features and the acceleration features. For example, a training data set of magnetic features and acceleration features can be used to train a machine learning model (e.g., a classifier) ​​to identify the vehicle classification. As a non-limiting example, a two-layer classifier can be constructed. The first layer may include a binary classifier that uses a support vector machine to distinguish the stationary state of the vehicle from the non-stationary state of the vehicle. The second layer may include a voting classifier configured to distinguish between vehicle types (e.g., bicycles, cars, buses, trains, airplanes, etc.). In one example, the second layer may include a plurality of classifiers configured to classify the vehicle type, so that a feature vector can be applied to each classifier, thereby allowing the classification system to learn the parameters of the classifier separately. Non-limiting examples of machine learning models that can be used by the present technology include: random forest classifier, Adaboost classifier, kNN (k nearest neighbor) classifier, logistic regression classifier, neural network classifier, and other classifiers.

[0045] In one example, the classification of the identified mechanical equipment may be based on a majority vote from multiple classifiers. Voting-based classification may be based on the idea that by combining classifiers, the advantages and disadvantages of the classifiers can be balanced, thereby reducing bias and reducing the potential for high variance in the classification results produced by the classification system. In another example, voting-based classification may be based on a majority vote on the classifications included in a time window (e.g., the first 5-10 seconds). For example, the classifications generated during the time window may be input into a classifier that is configured to output the classifications based on a majority vote on the classifications. After the classification of the identified mechanical equipment, the classifier module 210 may be configured to output the classifications for use by the application 214. For example, the application 214 that utilizes the vehicle classification output by the classifier module 210 may include a personal health care application, a life coaching application, or a recommendation system.

[0046] Various processes and / or other functions included within the mobile device 202 may be executed on one or more processors 216 in communication with one or more storage devices 218. A networked device may provide wired or wireless network access. Figure 3 306. The example system 300 is a block diagram illustrating an example system 300 for detecting mechanical devices using sensor data sent by a mobile device 302 including a magnetometer 304 and an accelerometer 306. In the illustrated example, the mobile device 302 sends magnetometer data generated by the magnetometer 304 and accelerometer data generated by the accelerometer 306 to a server 310. The server 310 may include a computer configured to detect mechanical devices as described above in conjunction with the attached Figure 2 The detection module 312 and other modules that identify the mechanical equipment classification are described.

[0047] In response to receiving magnetometer data and accelerometer data from mobile device 302, server 310 (i.e., detection module 312 and other modules) can identify a mechanical device classification corresponding to the magnetometer data and accelerometer data. In one example, the mechanical device classification can be returned to mobile device 302, where the mechanical device classification can be utilized by applications hosted on mobile device 302. In another example, the mechanical device classification can be utilized by services and applications hosted on server 310 or other services included in a computing device environment.

[0048] In one example, the server 310 may be included in a system (e.g., a cloud computing system) that includes a plurality of computing devices arranged, for example, in one or more server banks or computer banks or other arrangements. In one example, the computing device may use a hypervisor, a virtual machine monitor (VMM), and other virtualization software to support a computing environment. API calls, procedure calls, or other network commands may be used according to different technologies to perform communications between the mobile device 302 and the server 310 and between various servers included in the cloud computing system, including, but not limited to, representational state transfer (REST) ​​technology or simple object access protocol (SOAP) technology. REST is an architecture type for distributed hypermedia systems. RESTful API (also referred to as RESTful web service) is a web service API implemented using HTTP and REST technology. SOAP is a protocol for exchanging information in the context of a Web-based service.

[0049] The network 308 used to transmit communications between the mobile device 302 and the server 310 may include any useful computing network, including an intranet, the Internet, a local area network, a wide area network, a wireless data network, or any other such network or combination thereof. The components used for such a system may depend at least in part on the type of network and / or environment selected. Communications over the network may be achieved through wired or wireless connections, and combinations thereof.

[0050] Figure 2 and Figure 3 Certain processing modules that may be discussed in conjunction with the present technology are illustrated and may be implemented as computing services. In one example configuration, a module may be considered a service having one or more processes executing on a server or other computer hardware. Such a service may be a centralized hosted function or service application that may receive requests and provide output to other services or consumer devices. For example, the module providing the service may be considered to be on-demand computing hosted on a server, a virtualized service environment, a grid, or a cluster computing system. An API may be provided for each module to enable a second module to send requests to a first module and receive output from the first module. Such an API may also allow a third party to interface with the module and make requests and receive output from the module. Although Figure 2 and Figure 3 An example of a system that can implement the above-described techniques is illustrated, but many other similar or different environments are possible. The example environments discussed and illustrated above are representative only and are not limiting.

[0051] Now go to Figure 4 , a flowchart illustrates an example method 400 for detecting a mode of transport using a mobile device 402 configured with a magnetometer and an accelerometer. In one example, the magnetometer can be a Hall Effect sensor that can be used in mobile devices due to the compact size and low power consumption of the sensor. The magnetic field strength H at an arbitrary position p in space is defined by two parameters (1) r and (2) θ, where r is the distance between the magnetic source and p and θ is the angle between the north pole of the magnetic source and p. The field strength H can be further decomposed into two orthogonal vectors H r (radial component at p) and H θ (the tangential component at p). These two vectors form the basis in the 2D magnetic field space, and their mathematical representation can be expressed in terms of r and θ (where M is the magnetic moment):

[0052] H r = (M cosθ / 2πr 3 ) 2 (1)

[0053] H θ = (M sinθ / 4πr 3 ) 2 (2)

[0054] Embodiments of the invention can utilize the magnetic field changes detected by a magnetometer and extract features from the corresponding power spectrum. Equations 1 and 2 describe the trajectory of the magnetic flux as it passes through the air. The constant variable M in Equations 1 and 2 is related to the magnetic permeability of the material through which the magnetic flux passes. A material with a higher magnetic permeability means that the magnetic flux can flow through the material more easily. When these magnetic fluxes flow through ferrous media such as metals or external electromagnetic fields, the trajectory of the magnetic flux is distorted due to changes in magnetic permeability. Such distortions can be strong interferences that can be detected by a magnetometer.

[0055] Exemplarily, a motorized vehicle typically includes: an engine and an alternator that generate power for driving a main shaft and electrical components; a transmission system that adjusts the gears; and a differential that accommodates the rotation of the wheels when turning or moving on uneven surfaces. A hybrid vehicle typically includes: two separate engines driven by gasoline and a battery, respectively. The two engines can be regulated by a computer and connected to a common transmission system. When the vehicle is moving, the mechanical components in the vehicle rotate synchronously and have a rotation rate corresponding to the speed of the car. When magnetic flux flows through these moving metals, their trajectories are harmonically distorted with the rotation rate, thereby producing an alternating (AC) magnetic field. The strength of the perceptible distortion field is affected by the size of the moving components and how far the magnetometer is from them. Figure 5 Examples of magnetic field distortion in various vehicle types are shown. As shown, the power spectrum of each vehicle can be unique, and this difference can be attributed to the different mechanical designs of the vehicles. For example, a bicycle may include large wheels and travel at a relatively low speed, which may result in a power spectrum that is lower than Figure 5 For vehicles that typically move at similar speeds, such as buses and cars, the frequencies generated by the vehicle's mechanical components may be in different frequency spectra due to the vehicles' differing wheel sizes (e.g., a car's smaller wheels may produce higher frequencies than a bus's larger wheels).

[0056] Equations 1 and 2 show that the magnetic field decays with distance at a cubic rate. The rapid decay of the magnetic field due to different sensing distances can affect the signal quality detected by the magnetometer. Figure 6 An example of field variation when a mobile device 402 having a magnetometer is placed in three different locations in a car is shown. That is, Figure 6 The changes in the magnetic field are shown when the mobile device 402 is placed in three different locations: the passenger seat of a car; the left rear seat; and the right rear seat. Figure 6It is shown that the field strength in each location is different. In particular, the magnetic field in the passenger seat is weaker than in the other two locations. In larger vehicles (e.g., buses), this strength difference may become more dramatic; in some extreme cases (such as sitting in the middle of a large bus where the mobile device 402 is far away from the wheels and other rotating components), the magnetic field may become unobservable.

[0057] Accelerometers can be used to capture accelerometer data of vehicle vibrations that can compensate for situations where magnetic fields may be weak or unobservable. For example, when a vehicle is in motion, the acceleration and deceleration patterns detected by an accelerometer located in the vehicle may vary depending on the type of vehicle. Different types of vehicles may produce unique vibration patterns (signatures) and the vibration patterns (signatures) can be used to detect the type of vehicle. For example, a moving vehicle affects acceleration-based signals in two ways that can be categorized from a spectral perspective, including: a dynamic component - how the vehicle accelerates and decelerates between stationary states; and an active component - vibration patterns related to how the vehicle absorbs vibrations from the road or track surface.

[0058] In the past, acceleration / deceleration cycles have been used to capture the complete cycle of acceleration and deceleration of a vehicle between stationary states, and after that, features are extracted from the acceleration / deceleration cycle. This can be called bagging features. Bagging features can extract acceleration / deceleration cycles over tens of seconds or even minutes based on different vehicle types. To avoid this delay, the present technology filters out the dynamic component and uses the active component as part of identifying the vehicle. Due to different suspension designs, vehicles absorb vibrations in different ways, which can appear as unique patterns in the acceleration spectrum. Figure 7 Shows the corresponding Figure 5 Example power spectrum of the vertical acceleration. Figure 7 The vehicles shown in FIG. 1 have different capabilities for absorbing vibrations and bounces from the road based on their suspension, which can be manifested in distinctive modes. For example, Figure 7 It is shown that the bicycle has strong vibrations of about 20-30 Hz due to the bicycle's suspension causing the accelerometer to detect strong rebound forces from the road. Figure 7 A similar pattern is shown for scooters and trains. Figure 7 Cars and buses are shown to have relatively good suspensions that are able to absorb vibrations without generating significant high frequency energy.

[0059] return Figure 4, the illustrated method 400 combines magnetometer-based features with accelerometer-based features to detect the type of vehicle used as a mode of transportation. As in block 404, time series magnetometer data and time series accelerometer data may be retrieved from a magnetometer and an accelerometer included in a mobile device 402. In one example, for feature extraction 412, the sampling rates of the magnetometer data and the accelerometer data may be unified across different device types and manufacturers.

[0060] The data retrieved from the magnetometer and accelerometer may be preprocessed before extracting features from the data. As illustrated, preprocessing may include three steps: applying a bandpass filter; converting the time series data to a power spectrum; and removing noise. For magnetometer data, as in box 406, a bandpass filter (e.g., a 5th-order Butterworth IIR (infinite impulse response) filter) may be applied to the magnetometer data to ensure that the features extracted from the magnetometer data are from the same power spectrum range. As a non-limiting example, the cutoff frequency of the bandpass filter may be set to 2% and 95% of the power spectrum; given a sampling rate of 100 Hz (i.e., the available bandwidth is 100 / 2=50 Hz), the cutoff frequencies are 1 Hz and 47.5 Hz. The bandpass filter may eliminate dynamic components associated with the earth's magnetic field. For accelerometer data, the earth's gravity may be extracted from the accelerometer data by calculating the average value of a sliding window (e.g., 10 seconds), and the average value is removed from the acceleration data. Thereafter, the estimated Earth's gravity may be used to decompose the acceleration data into vertical and horizontal components.

[0061] As in box 408, the next pre-processing step involves converting the time series magnetometer data and the time series accelerometer data into a power spectrum. In one example, a fast Fourier transform (FFT) method can be performed on each time window (e.g., a one-second time window) along the time series data. For the time series magnetometer data, the FFT vector can be calculated for the x / y / z axis respectively, and thereafter, the power spectrum of the axes is summed. When doing so, the resulting frequency magnetometer data may be orientation-agnostic, thereby allowing features to be extracted from the aggregate magnetic field, rather than from individual axes. For the time series accelerometer data, the vertical and horizontal components can indicate different vehicle behaviors related to how the vehicle reacts to the traveling surface (e.g., high-frequency vibration), and therefore features can be extracted separately from the vertical and horizontal components.

[0062] As in block 410, the final preprocessing step removes random noise from the frequency magnetometer data and the frequency accelerometer data. For example, the frequency magnetometer data and the frequency accelerometer data may contain random noise generated by the sensor board and / or the sensing environment. In one example, the random noise may be removed by applying a median filter (e.g., with a size of three) and then applying a Gaussian filter (e.g., with a sigma value of 1.2).

[0063] After preprocessing the magnetometer data and the accelerometer data, magnetic features and acceleration features can be extracted from the frequency spectra in the frequency magnetometer data and the frequency accelerometer data. The magnetic features and acceleration features can be related to the type of vehicle. For example, Figure 5 Example frequencies are shown that can infer the type of vehicle. For example, a car may generate a dominant frequency in the range of 5-30 Hz associated with field distortion caused by wheel rotation; a train's magnetic field may be below 10 Hz and appear as white noise; a bus may be similar to a car, but may be noisier overall and have a dominant frequency that may be lower than a car; a bicycle may produce monotonic magnetic data given its relatively simple mechanical components; and a light rail may produce a dominant frequency with some white noise. Different patterns in the acceleration spectra may be observed in the frequency magnetometer data and the frequency accelerometer data based on different suspension designs and how the vehicle absorbs surface vibrations. Based on these observations, features may be extracted from each FFT window in the frequency magnetometer data and the frequency accelerometer data.

[0064] The following table provides example features that can be extracted from frequency magnetometer data and frequency accelerometer data.

[0065]

[0066] This example feature table shows 198 features that can be extracted from frequency magnetometer data (74 features) and frequency accelerometer data (124 features). These features are extracted from the power spectrum (i.e., no features are extracted from time series data). For frequency acceleration data, the same 12 features can be extracted from the vertical and horizontal components of the frequency acceleration data, respectively, resulting in a total of 24 features. It will be understood that the features shown in the above table are merely exemplary; other features can be used in conjunction with the present technology.

[0067] In one example, features extracted from frequency magnetometer data and frequency accelerometer data may involve dominant frequency and magnitude, entropy, total energy and subband energy, cepstral coefficients, and vibration. Dominant frequency and magnitude (power intensity) may capture wheel size and rotation speed. Dominant frequency and magnitude may contribute to identifying vehicles like cars and buses, which typically generate strong dominant frequencies in the power spectrum of frequency magnetometer data.

[0068] Entropy can describe the randomness in the power spectrum. For example, scooters and light rail typically have noisy magnetic spectra, while trains may have relatively less noisy magnetic spectra. In the accelerometer power spectrum, scooters and bicycles may typically be noisy due to surface bouncing forces, while the vibration energy of buses may typically be concentrated in lower frequencies.

[0069] The total energy can be the sum of the FFT window. The FFT window can be equally divided into 10 subbands (e.g., 5 Hz / subband), and features from each subband can be extracted. The subband energies and the spectral ratios in the subband energies can capture fine-grained characteristics in the power spectrum. For example, for a train, most of the energy may be concentrated below 10 Hz in the magnetic spectrum, but the energy in the case of light rail, scooters, and cars is usually spread across FFT bins.

[0070] The cepstral coefficients can be used to capture the shape of the FFT bin. The coefficients can be calculated by first taking the logarithm of the FFT bin and then calculating the DCT (discrete cosine transform) coefficients of the FFT window. For example, the first DCT coefficient (dynamic component) can be removed and the second DCT coefficient can be retrieved. The 21st coefficient. These 20 coefficients can describe the static (shape) of the FFT bin. In addition, the first derivatives of the cepstral coefficients (differences between adjacent frames) can be calculated, which captures possible changes over time (i.e., the dynamics of the FFT bin). These static and dynamic cepstral coefficients can be extracted from both the frequency magnetometer data and the frequency accelerometer data.

[0071] The vibration signature may be extracted from the vertical and horizontal components of the frequency accelerometer data. As a non-limiting example, a 1 Hz component may be extracted from both the vertical and horizontal components of the frequency accelerometer data. The 1 Hz component may be able to distinguish between a stationary vehicle and a moving vehicle. Figure 8 Examples of two near-Gaussian distributions are shown by histograms of 1 Hz energy on both the vertical and horizontal components of the frequency acceleration data, for a stationary case and an in-motion case respectively.

[0072] Return to Figure 4 , as in block 414, after extracting the magnetic features and acceleration features, classification may be performed by inputting the magnetic features and acceleration features into a classifier configured to output a vehicle classification. In one example, the classifier may be trained using magnetic features and acceleration features extracted from a historical data set. In the training phase of the classifier, the feature vector may be input into a classifier processing pipeline to construct a classifier.

[0073] As a non-limiting example, a two-layer classifier may be constructed and trained. The first layer of the classifier may include a motion detection classifier that uses a random forest model to distinguish between a stationary state (i.e., when the vehicle is not in motion) and a non-stationary state (i.e., when the vehicle is in motion). The second layer of the classifier may include a mode of transport classifier that uses a neural network model that classifies the type of vehicle (e.g., bicycle, scooter, car, bus, train (heavy rail), light rail, etc.). To avoid overfitting the model, the random forest model (motion detection classifier) ​​may be limited to a maximum depth, and in each tree, the number of samples in the leaf nodes may be constrained to avoid capturing too much noise; and these number of samples may be split from the internal nodes to further control the tree depth. Unbalanced data between different vehicle types may be managed by applying a synthetic minority oversampling technique that first calculates the distribution of the data set and generates new samples that fit the distribution.

[0074] In one example configuration, a vehicle classification may be generated by caching subsequent vehicle classifications and generating a final vehicle classification based on a majority vote. This technique may be performed to mitigate possible random noise (e.g., noise associated with magnetometer and / or accelerometer errors, or transition periods during vehicle start / stop movement). For example, a classification may be generated based on a majority vote from a short history of vehicle classifications. As a non-limiting example, the past five, eight, ten, etc. vehicle classifications may be cached (e.g., resulting in 5, 8, 10, etc. second windows), and a final vehicle classification may be generated based on a majority vote on the cached vehicle classifications that occurred during the window. After the classifier has been trained, the classifier may be deployed (as part of a vehicle classification system) for use on a mobile device 402, and the vehicle classification generated by the classifier may be used by an application (e.g., a digital personal assistant or a life coaching application) hosted on the mobile device 402.

[0075] Back to Figure 6 In one example, the magnetic field based on the vehicle can vary based on the location of the magnetometer in the vehicle. The difference in the magnetic field can be used to distinguish the location of the magnetometer in the vehicle. Fig.10 An example confusion matrix for different vehicle configuration scenarios is shown, which illustrates that the techniques described herein may be able to generate fine-grained information related to the location of the mobile device in the vehicle. Figure 4The described method can also be used to generate a classification of locations within a vehicle where the mobile device 402 may be located. For example, the device location classification can specify a seat within a car, such as the driver's seat, the passenger seat, or the left or right rear seat. The vehicle type classification and the device location classification can be provided to an application hosted on the mobile device 402, which utilizes the classification for various purposes.

[0076] In some embodiments, information about stationary electronic devices can be determined by using, for example, a magnetometer in a smart phone, a wearable smart watch, or other handheld device. Many electronic devices generate interference in the surrounding magnetic field or in the electrical system to which such devices may be connected. When an electronic appliance is operated in different states (e.g., different heat levels of a hair dryer or different speeds of a blender / food mixer), the appliance requires different amounts of power to operate in the corresponding state. When operating in different states, some appliances also cause different mechanical motions (e.g., the changing rotation rate of a washing machine) in the appliance. These differences in how appliances adjust themselves under different operating states manifest themselves as different spectrum patterns that can be sensed and extracted from a magnetometer.

[0077] In one example, a hair dryer running at a high temperature setting consumes more power and generates a stronger magnetic field than when running at a relatively low temperature. This magnetic "noise" (e.g., signature) can be used to detect activities within the home or other activities and how users interact with their appliances; for example, two residents of a home may use a hair dryer differently, and by detecting and analyzing the magnetometer spectrum, the system can identify which resident is using the appliance and how they are using it. Other appliances such as blenders or handheld food mixers include DC motors. When these devices operate at different speeds, the system can infer the speed level based on the dominant frequency in the magnetic spectrum. When a person is using these motor-based appliances (e.g., using a food blender to mix eggs and flour, or using a vacuum cleaner on different surfaces), the magnetic field will also fluctuate during the process; for example, when the mixer hits a bowl or sticky dough, the rotation rate of the blade slows down, which makes the corresponding dominant frequency smaller. These subtle differences can be used to detect what food a person is stirring or preparing. Magnetometers (e.g., Hall effect sensors) can be used to identify these fine-grained appliance uses. Fig. 9 Figure 2 shows example magnetic field changes when an electric fan (left) and a hair dryer (middle) are operated in different states. Fig. 9 The data presented in the example of a person carrying a device such as a phone or smartwatch that includes a magnetometer and using the phone / watch to detect magnetic field disturbances emitted by the appliance. The magnetometer data may first be recorded and saved on the device and then downloaded to a computer for processing and analysis. Fig. 9It is also shown that when the appliance operates in different states, the field strength varies with the power consumption of the state. For portable appliances such as electric shavers (right), the fundamental frequency may be different between two models (e.g., device A at 31 Hz and device B at 60 Hz), even though the two models produce similar magnetic intensities. Given the model characteristics, electric shavers can be distinguished. In addition to fixed electrical devices such as household appliances, magnetometers can also be applied to other scenarios, including but not limited to: 1) detecting a person's fitness state (such as exercise duration, machine type, intensity level, and energy consumed) by correlating the magnetic spectrum with the person's exercise efforts; 2) inferring a person's proximity to a train station by checking the intensity of 60 Hz noise (or 50 Hz in Europe); or 3) sensing potential mechanical failures of vehicles by analyzing anomalies in the magnetic spectrum (e.g., unusual magnetic fluctuations).

[0078] Fig.11 1 is a flow chart illustrating an example method 1100 for detecting a mechanical device. As in block 1110, magnetometer data generated by a magnetometer may be retrieved. The magnetometer may be one of a plurality of sensors included in a mobile device. The magnetometer may be configured as a Hall effect sensor that detects magnetic field distortion caused by mechanical movement of the mechanical device.

[0079] As in block 1120, magnetic features may be extracted from the magnetometer data. The magnetic features may be associated with magnetic field distortion patterns generated by mechanical motion of a mechanical device, such as a vehicle for transportation or other mechanical device capable of generating magnetic field distortion. In one example, before extracting the magnetic features, the magnetometer data may be converted from time series magnetometer data to frequency magnetometer data, and one or more filters may be used to remove noise from the magnetometer data.

[0080] As in block 1130, accelerometer data generated by an accelerometer may be retrieved. Like a magnetometer, an accelerometer may be one of a plurality of sensors included in a mobile device. As in block 1140, acceleration features may be extracted from the accelerometer data. The acceleration features may be associated with vibration patterns generated by mechanical movement of a mechanical device. In one example, before extracting the acceleration features, the accelerometer data may be converted from time series accelerometer data to frequency accelerometer data, and one or more filters may be used to remove noise from the accelerometer data.

[0081] Mechanical devices associated with the magnetic signature and the acceleration signature may be identified, as in block 1150. In one example, the magnetic signature and the acceleration signature may be input to a classifier configured to analyze the magnetic signature and the acceleration signature and output a classification of the mechanical device.

[0082] Fig.12A computing device 1210 is illustrated on which modules of the present technology may be executed. A computing device 1210 is illustrated on which a high-level example of the present technology may be executed. The computing device 1210 may include one or more processors 1212 in communication with a memory device 1220. The computing device 1210 may include a local communication interface 1218 for components in the computing device. For example, the local communication interface 1218 may be a local data bus and / or any related address or control bus that may be desirable.

[0083] The memory device 1220 may contain modules 1224 and data for the modules 1224 that may be executed by the processor 1212. For example, the memory device 1220 may include a sensor location module and associated modules. The modules 1224 may perform the functions described above. Data storage 1222 may also be located in the memory device 1220 for storing data related to the modules 1224 and other applications along with data related to the operating system that may be executed by the processor 1212.

[0084] Other applications may also be stored in the memory device 1220 and may be executed by the processor 1212. The components or modules discussed in this specification may be implemented in software using a high-level programming language that is compiled, interpreted, or executed by using a mixture of methods.

[0085] The computing device 1210 may also have access to I / O (input / output) devices 1214 that may be used by the computing device 1210. An example of an I / O device is a display screen 1230 that may be used to display output from the computing device 1210. Other known I / O devices may be used with the computing device 1210 as desired. Networking devices 1216 and similar communication devices may be included in the computing device. The networking device 1216 may be a wired or wireless networking device that connects to the Internet, a LAN, a WAN, or other computing network.

[0086] The components or modules shown as being stored in the memory device 1220 may be executed by the processor 1212. The term "executable" may refer to a program file in a form that can be executed by the processor 1212. For example, a higher-level language program may be compiled into a machine code in a format that can be loaded into a random access portion of the memory device 1220 and executed by the processor 1212, or a source code may be loaded by another executable program and interpreted to generate instructions to be executed by the processor in a random access portion of the memory. The executable program may be stored in any portion or component of the memory device 1220. For example, the memory device 1220 may be a random access memory (RAM), a read-only memory (ROM), a flash memory, a solid-state drive, a memory card, a hard drive, an optical disk, a floppy disk, a tape, or any other memory component.

[0087] Processor 1212 may represent multiple processors, and memory 1220 may represent multiple memory units operating in parallel with the processing circuits. This can provide parallel processing channels for processes and data in the system. Local interface 1218 can be used as a network to facilitate communication between any of the multiple processors and multiple memories. Local interface 1218 can use additional systems designed to coordinate communications, such as load balancing, bulk data transfer, and similar systems.

[0088] Although the flowchart presented for the present technology may mean a specific execution order, the execution order may be different from that illustrated. For example, the order of two or more frames may be rearranged relative to the order shown. In addition, two or more frames shown in succession may be executed in parallel or executed by partial parallelization. In some configurations, one or more frames shown in the flowchart may be omitted or skipped. For the purpose of utility, accounting, performance, measurement, troubleshooting or similar reasons for promotion, any number of counters, state variables, warning flags or messages may be added to the logic flow.

[0089] Some of the many functional units described in this specification have been labeled as modules to more specifically emphasize their implementation independence. For example, a module may be implemented as a hardware circuit that includes custom VLSI circuits or gate arrays, off-the-shelf semiconductors such as logic chips, transistors, or other discrete components. A module may also be implemented in a programmable hardware device such as a field programmable gate array, programmable array logic, a programmable logic device, and the like.

[0090] Modules may also be implemented with software for execution by various types of processors. An identified executable code module may, for example, include one or more computer instruction blocks that may be organized as objects, routines, or functions. However, the executable files of the identified modules are not necessarily physically located together, but may include heterogeneous instructions stored in different locations that, when logically connected together, constitute the module and achieve the stated purpose of the module.

[0091] In practice, an executable code module may be a single instruction or many instructions, and may even be distributed over several different code segments, between different programs, and across several memory devices. Similarly, operational data may be identified or exemplified herein within a module, and may be embodied in any suitable form and organized within any suitable type of data structure. The operational data may be collected as a single data set, or may be distributed over different locations, including over different storage devices. A module may be passive or active, including an agent operable to perform a desired function.

[0092] The techniques described herein may also be stored on computer-readable storage media, including volatile and nonvolatile, removable and non-removable media implemented with any technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer-readable storage media include, but are not limited to, non-transient media such as RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical storage, cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other computer storage media that can be used to store the desired information and described techniques.

[0093] The devices described herein may also include communication connections or network devices and network connections that allow the devices to communicate with other devices. Communication connections are examples of communication media. Communication media typically embody computer-readable instructions, data structures, program modules, and other data in modulated data signals such as carrier waves or other transmission mechanisms, and include any information transfer media. "Modulated data signal" refers to a signal that sets or changes one or more of its characteristics in a manner that encodes information in the signal. By way of example and not limitation, communication media include wired media such as wired networks or direct wire connections, and wireless media such as acoustic, radio frequency, infrared, and other wireless media. The term computer-readable media used herein includes communication media.

[0094] Reference is made to the examples illustrated in the accompanying drawings and specific language is used herein to describe these examples. However, it will be understood that no limitation is intended to the scope of the present technology thereby. Changes and further modifications to the features illustrated herein and additional applications of the examples as illustrated herein will be considered within the scope of this description.

[0095] In addition, the described features, structures, or characteristics can be combined in one or more examples in any suitable manner. In the foregoing description, many specific details are provided, such as examples of various configurations to provide a thorough understanding of the examples of the described technology. However, it will be understood that the present invention can also be practiced without one or more of the specific details, or can be practiced by other methods, components, equipment, etc. In other examples, known structures or operations are not shown or described in detail to avoid blurring aspects of the present invention.

[0096] Example

[0097] The following examples relate to specific inventive embodiments and indicate specific features, elements, or steps in these embodiments that may be used or otherwise combined in implementing these embodiments.

[0098] In one example, an apparatus for detecting a mechanical device is provided, the apparatus comprising a memory and one or more processors configured to:

[0099] Retrieving magnetometer data generated by a magnetometer;

[0100] extracting magnetic signatures from the magnetometer data associated with magnetic field distortion patterns generated by mechanical motion of the mechanical device;

[0101] Retrieving accelerometer data generated by the accelerometer;

[0102] extracting acceleration features associated with vibration modes generated by mechanical motion of the mechanical device from the accelerometer data; and

[0103] Identify mechanical devices associated with magnetic and acceleration signatures.

[0104] In one example of an apparatus for detecting a mechanical device, a magnetometer acts as a Hall effect sensor that detects magnetic field distortion caused by mechanical movement of the mechanical device.

[0105] In one example of the apparatus for detecting a mechanical device, the mechanical device is a vehicle for transportation.

[0106] In one example of an apparatus for detecting a mechanical device, a memory and one or more processors are configured to convert magnetometer data from time series magnetometer data to frequency magnetometer data.

[0107] In one example of an apparatus for detecting a mechanical device, a memory and one or more processors are configured to convert accelerometer data from time series accelerometer data to frequency accelerometer data.

[0108] In one example of an apparatus for detecting a mechanical device, a memory and one or more processors are configured to use at least one filter to remove noise from magnetometer data and accelerometer data.

[0109] In one example of an apparatus for detecting a mechanical device, a memory and one or more processors are configured to input magnetic signatures and acceleration signatures into a classifier that is trained to identify classifications associated with the magnetic signatures and acceleration signatures.

[0110] In one example of an apparatus for detecting mechanical equipment, a memory and one or more processors are configured to output a classification identified by a classifier.

[0111] In one example of an apparatus for detecting a mechanical device, the apparatus is a mobile device.

[0112] In one example of an apparatus for detecting a mechanical device, a magnetometer and an accelerometer are coupled to a mobile device.

[0113] In one example, a method for determining a mode of transportation is provided, comprising:

[0114] Retrieving magnetometer data generated by a magnetometer;

[0115] extracting magnetic signatures from the magnetometer data, wherein the magnetic signatures are associated with magnetic field distortion patterns generated by mechanical motion of the vehicle;

[0116] Retrieving accelerometer data generated by the accelerometer;

[0117] extracting acceleration features from the accelerometer, wherein the acceleration features are associated with vibration patterns generated by mechanical motion of the vehicle;

[0118] Output is a vehicle classification identified using a classifier trained to identify vehicle classifications associated with magnetic and acceleration signatures.

[0119] In one example of a method of determining a mode of transport, vibration patterns generated by mechanical motion of a vehicle are associated with forces applied to a suspension system of the vehicle associated with traveling over a road or track surface.

[0120] In one example of the method of determining a mode of transportation, the method further includes applying a bandpass filter to the magnetometer data to remove data related to the earth's magnetic field and dynamically changing components.

[0121] In one example of a method of determining a mode of transportation, magnetometer data removed by a bandpass filter includes high frequency noise.

[0122] In one example of the method of determining a mode of transportation, the method further includes separating the accelerometer data into a vertical component providing vertical acceleration data and a horizontal component providing horizontal acceleration data.

[0123] In one example of the method of determining a mode of transportation, the method further includes converting the magnetometer data and the accelerometer data from time series data to frequency data using a fast Fourier transform method.

[0124] In one example of the method of determining a mode of transportation, the method further includes applying at least one filter to remove data associated with random noise from the frequency data.

[0125] In one example of the method of determining a mode of transportation, the at least one filter includes a median filter for removing data associated with impulse noise induced by a magnetometer or an accelerometer.

[0126] In one example of the method of determining a mode of transportation, at least one filter includes a Gaussian filter for smoothing high frequency noise in the frequency data.

[0127] In one example, a system for determining a mode of transportation is provided, comprising:

[0128] at least one processor;

[0129] Magnetometer;

[0130] Accelerometer;

[0131] A memory device including instructions that, when executed by at least one processor, cause the system to:

[0132] Retrieving time series magnetometer data generated by a magnetometer;

[0133] Convert time series magnetometer data to frequency magnetometer data;

[0134] analyzing the frequency magnetometer data to identify magnetic signatures associated with magnetic field distortions generated by mechanical motion of the vehicle;

[0135] Retrieving time series accelerometer data generated by the accelerometer;

[0136] Convert time series accelerometer data to frequency accelerometer data;

[0137] analyzing the frequency accelerometer data to identify magnetic signatures associated with vibration modes generated by mechanical motion of the vehicle; and

[0138] A classifier is used to identify a vehicle classification associated with the magnetic signature and the acceleration signature.

[0139] In one example of a system for determining a mode of transportation, the magnetic features include: a main frequency feature, a magnitude feature, an entropy feature, a total energy feature, a sub-band energy feature, and a cepstral coefficient feature.

[0140] In one example of a system for determining a mode of transportation, the acceleration features include: vibration features, main frequency features, magnitude features, entropy features, total energy features, sub-band energy features, and cepstral coefficient features.

[0141] In one example of a system for determining a mode of transportation, a classifier is configured to cache a list of vehicle classifications and determine a vehicle classification based in part on the list of vehicle classifications.

[0142] In one example of a system for determining a mode of transportation, the classifier is a two-layer classifier comprising: a motion detection classifier configured to distinguish stationary states; and a mode of transportation classifier configured to distinguish between vehicle categories based in part on majority voting, the majority voting being based in part on cached vehicle classifications associated with a sliding window.

[0143] In one example of a system for determining a mode of transportation, the instructions, when executed by a processor, further use magnetic features extracted from magnetometer data to identify a device location classification of a mobile device located in a vehicle.

[0144] In one example of a system for determining a mode of transportation, a device location classification identifies a seat within a vehicle where a mobile device is located.

Claims

1. An apparatus for detecting a vehicle for transportation, the apparatus comprising a memory and one or more processors configured to: Retrieving magnetometer data generated by a magnetometer; extracting from the magnetometer data magnetic signatures associated with magnetic field distortion patterns generated by mechanical motion of the vehicle; Retrieving accelerometer data generated by the accelerometer; extracting acceleration features associated with vibration modes generated by the mechanical motion of the vehicle from the accelerometer data; identifying a vehicle classification associated with the magnetic signature and the acceleration signature; and A user position in the vehicle is inferred by distinguishing between a driver seat position and a passenger seat position based on differences in magnetic fields based on vehicle position classification for the vehicle.

2. The apparatus of claim 1, wherein the magnetometer acts as a Hall Effect sensor that detects magnetic field distortion caused by the mechanical movement of the vehicle.

3. The apparatus of claim 1, further comprising a memory and one or more processors configured to convert the magnetometer data from time series magnetometer data to frequency magnetometer data. 4 . The apparatus of claim 1 , further comprising a memory and one or more processors configured to convert the accelerometer data from time series accelerometer data to frequency accelerometer data. 5 . The apparatus of claim 1 , further comprising a memory and one or more processors configured to use at least one filter to remove noise from the magnetometer data and the accelerometer data.

6. The apparatus of claim 1, further comprising a memory and one or more processors configured to input the magnetic signature and the acceleration signature into a classifier, the classifier being trained to identify a classification associated with the magnetic signature and the acceleration signature.

7. The apparatus of claim 6, further comprising a memory and one or more processors configured to output the classification identified by the classifier.

8. The apparatus of claim 1, wherein the apparatus is a mobile device.

9. The apparatus of claim 8, wherein the magnetometer and the accelerometer are coupled to the mobile device.

10. A computer-implemented method for determining a mode of transport, comprising: Retrieving magnetometer data generated by a magnetometer; extracting a magnetic signature from the magnetometer data, wherein the magnetic signature is associated with a magnetic field distortion pattern generated by mechanical motion of the vehicle; Retrieving accelerometer data generated by the accelerometer; extracting acceleration features from the accelerometer data, wherein the acceleration features are associated with vibration patterns generated by mechanical motion of the vehicle; outputting a vehicle classification identified using a classifier trained to identify the vehicle classification associated with the magnetic signature and the acceleration signature; and A user position in the vehicle is inferred by distinguishing between a driver seat position and a passenger seat position based on differences in magnetic fields based on vehicle position classification for the vehicle.

11. The method of claim 10, wherein the vibration modes generated by the mechanical motion of the vehicle are associated with forces applied to a vehicle suspension system associated with traveling over a road or track surface.

12. The method of claim 10, further comprising applying a bandpass filter to the magnetometer data to remove data related to the geomagnetic field and dynamically changing components.

13. The method of claim 12, wherein the magnetometer data removed by the bandpass filter includes high frequency noise.

14. The method of claim 10, further comprising separating the accelerometer data into a vertical component providing vertical acceleration data and a horizontal component providing horizontal acceleration data.

15. The method of claim 10, further comprising converting the magnetometer data and the accelerometer data from time series data to frequency data using a fast Fourier transform method.

16. The method of claim 15, further comprising applying at least one filter to remove random noise related data from the frequency data.

17. The method of claim 16, wherein the at least one filter comprises a median filter for removing data associated with impulse noise induced by the magnetometer or the accelerometer.

18. The method of claim 16, wherein the at least one filter comprises a Gaussian filter for smoothing high frequency noise in the frequency data.

19. A system for determining a mode of transport, comprising: at least one processor; Magnetometer; Accelerometer; a memory device comprising instructions that, when executed by the at least one processor, cause the system to: Retrieving time series magnetometer data generated by a magnetometer; converting the time series magnetometer data into frequency magnetometer data; analyzing the frequency magnetometer data to identify magnetic signatures associated with magnetic field distortion patterns generated by mechanical motion of the vehicle; Retrieving time series accelerometer data generated by the accelerometer; converting the time series accelerometer data into frequency accelerometer data; analyzing the frequency accelerometer data to identify acceleration signatures associated with vibration modes generated by mechanical motion of the vehicle; identifying, using a classifier, a vehicle classification associated with the magnetic signature and the acceleration signature; and A user position in the vehicle is inferred by distinguishing between a driver seat position and a passenger seat position based on differences in magnetic fields based on vehicle position classification for the vehicle.

20. The system of claim 19, wherein the magnetic signature comprises: Main frequency characteristics, magnitude characteristics, entropy characteristics, total energy characteristics, sub-band energy characteristics and cepstral coefficient characteristics.

21. The system of claim 19, wherein the acceleration characteristics include: Vibration characteristics, main frequency characteristics, magnitude characteristics, entropy characteristics, total energy characteristics, sub-band energy characteristics and cepstral coefficient characteristics.

22. The system of claim 19, wherein the classifier is configured to cache a list of vehicle classifications and determine the vehicle classification based in part on the list of vehicle classifications.

23. The system of claim 19, wherein the classifier is a two-layer classifier comprising: a motion detection classifier configured to distinguish stationary states, and A transportation mode classifier configured to distinguish between vehicle categories based in part on majority voting based in part on cached vehicle classifications associated with the sliding window.

24. The system of claim 19, wherein the instructions, when executed by the processor, further use the magnetic signature extracted from the magnetometer data to identify a device location classification of a mobile device located in the vehicle.

25. The system of claim 24, wherein the device location classification identifies a seat within the vehicle where the mobile device is located.