As electronic devices, such as laptops, tablets, or smartphones, become increasingly sophisticated, new and interesting approaches have arisen for enabling users to interact with such devices. For example, electronic devices have traditionally employed mechanical switches, such as power on/off buttons, volume buttons, alphanumeric keys, navigational keys, among others, for enabling users to provide input to the electronic devices. Many modern electronic devices now include one or more touch sensors (e.g., resistive, capacitive, ultrasonic or other acoustic, infrared or other optical, or piezoelectric touch technology) as alternative or additional ways for enabling users to provide input to their devices. As electronic devices become more powerful and come equipped with new sensors and other input elements, new approaches can be developed to enable users to interact with their electronic devices.
Various embodiments in accordance with the present disclosure will be described with reference to the drawings, in which:
A conventional electronic device may include a touchscreen on a front surface of the device and one or more mechanical switches on the front surface or other surfaces of the device to allow a user to manually provide input to the device for controlling the device. It may also be desirable to configure the electronic device to enable the user to provide input to the device in other ways without the expense of incorporating additional touch sensors and/or mechanical buttons on every surface of the device. In particular, it may be advantageous for the electronic device to be capable of recognizing a single tap or multiple taps on various surfaces of the device without the use of touch sensors or mechanical switches. For example, a user can maintain an unobstructed view of the touchscreen yet control the device by tapping on a top, bottom, side, and/or back surface of the device. A device capable of detecting one or more taps for controlling the device can also facilitate single-handed operation of the device. In addition, such an approach can be more immediately responsive to the user's intended operation of the device. For instance, the user can perform a selection or other command via tap(s) using the same hand(s) holding the device, which can enable the user to provide a more immediate input to the device than a touch gesture using a hand not holding the device or a more complex touch gesture such as a swipe.
Systems and methods in accordance with various embodiments of the present disclosure overcome one or more of the above-referenced and other deficiencies in conventional approaches for detecting user input to an electronic device. In various embodiments, sensor data is captured by a plurality of sensors or other input elements, such as one or more inertial sensors (e.g., accelerometers, gyroscopes, or a combination thereof), microphones, proximity sensors, ambient light sensors, and/or cameras, among others. The sensor data can be analyzed using a machine-learned model to determine whether a user has tapped the electronic device. Detection, according to the model, of a single tap or multiple taps can be interpreted by the electronic device as a selection or command by the user for controlling the device. In various embodiments, machine learning includes an off-line phase that involves collecting training data comprising samples of sensor data for instances when users have tapped their electronic devices and instances when users have not tapped their electronic devices. Feature values with respect to the sensor data can be extracted for those instances corresponding to a user tap and those instances not corresponding to a user tap, and the feature values can be utilized to train one or more machine-learned models to detect single taps or multiple taps performed on an electronic device.
In some embodiments, a machine-learned model may be a binary classifier that distinguishes between instances of taps performed on the device and instances not corresponding to taps performed on the device. Multiple binary classifiers can be combined to detect one or more taps performed on the top, bottom, sides, front, and/or back of a device. In other embodiments, the machine-learned model may be a multiclass classifier that is capable of distinguishing among top taps, bottom taps, side taps, front taps, and/or back taps performed on an electronic device. A continuous evaluation may be performed in some embodiments, whereby a sliding window of time is used to attempt to detect tap events that occur within the sliding window. Some tap actions function as a virtual button on the device, whereby input to perform certain functions through a tap is analogous to the pressing of a virtual button. Some multiclass classifiers may be capable of recognizing even more granular tap locations, such as top-left taps, top-center taps, and top-right taps or northwest quadrant, northeast quadrant, southwest quadrant, and southeast quadrant back taps. The machine-learned model(s) can be utilized in real time or substantially real time by a particular electronic device to determine whether a user of that particular device has tapped the device by analyzing the sensor data captured by that particular device.
Various other functions and advantages are described and suggested below in accordance with the various embodiments.
In some embodiments, the training data can include sensor data captured when a user has tapped the top of the device, the bottom of the device, the left side of the device, the right side of the device, the back of the device, or the front of the device. The training data is also captured for when the device has not been tapped by the user. The training data, whether corresponding to user taps of the device or not corresponding to user taps of the device, is captured under a variety of conditions, such as while the device is lying flat on a surface, the device is in a portrait orientation, the device is in a landscape orientation, the device is held at various angles of tilt with respect to a user, the device is kept in a user's pocket, a user is walking with the device, a user is running with the device, a user is traveling upstairs or downstairs with the device, a user is driving with the device, or a user is flying with the device, among other situations.
During training data collection 212, the captured sensor data can be manually classified according to a desired implementation for tap detection. In various embodiments, the training data can be labeled according to a binary classification scheme. For example, a device can be configured to detect a user tap to the back of the device as input for controlling the device. Instances of taps to the back of the device are classified or labeled as positive examples. In certain of these embodiments, taps to the top, bottom, side, and/or front of the device can be included for deriving the machine-learned model for back tap detection but these instances of top, bottom, side, and/or front taps may be classified as negative examples of back taps. Additional binary classifiers can be generated for other types of user taps. For instance, a same or different device can be configured to detect a user tap to the “absolute top” of the device by generating a machine-learned model that is based on training data that includes classifications of instances of taps to the “absolute top” of the device as positive examples and classifications of “absolute bottom,” “absolute left side”, “absolute right side,” front, and/or back taps and instances not corresponding to taps as negative examples. As used herein, “absolute top” refers to designation of one side of the device as the top of the device regardless of the orientation of the device with respect to the user, and “absolute bottom,” “absolute left”, and “absolute right” follow from the “absolute top” designation. As will be appreciated by those of ordinary skill, a device can also be configured to detect “absolute bottom,” “absolute left” side, “absolute right” side, and front taps using separate binary classifiers for each of these additional types of user taps.
Another example of a binary classification scheme is to classify all types of taps—top, bottom, side, front, and/or back—as positive examples of user taps, and to classify instances not corresponding to taps as negative examples. In this scheme, all taps will be identified simply as a tap, without differentiating which device surface was tapped.
In certain situations, it may be desirable to not generate an inertial tap event from a tap on the touchscreen of the device, since this input is typically intended for the existing touchscreen sensor system (e.g., capacitive or resistive sensor, and existing system software). In these situations, touches on the screen can be detected by the existing sensors and software. In some embodiments, taps to the touchscreen can “override” machine-learning based taps. An override can occur after a touchscreen tap is detected, whereby machine-learning based taps that may occur at the same time or substantially the same time (e.g., within a few hundred milliseconds) are suppressed. In other embodiments, a machine-learned model could be trained to disambiguate between touchscreen taps and taps to other surfaces of an electronic device by collecting training data of instances of taps to the touchscreen and labeling such instances as negative examples.
In other embodiments, the training data can be labeled according to a multiclass classification scheme. That is, instances of taps to the top of the device can be labeled as top taps, instances of taps to the bottom of the device can be labeled as bottom taps, instances of taps to the left side of the device can be labeled as left taps, etc. A machine-learned model derived from such training data may be capable of differentiating among user taps at various locations of the device (e.g., top, bottom, left side, right side, back, and/or front). In some embodiments, the training data may be additionally or alternatively classified according to more granular locations (e.g., top-left, top-center, top-right; top-left, top-middle-left, top-middle-right, top-right; left-top, left-center, left-bottom; back-northwest quadrant, back-northeast quadrant, back-southwest quadrant, back-southeast quadrant; etc.). Various other classification schemes can be used as well within the scope of various embodiments. A machine-learned model generated from such training data may be designed to analyze input data to classify the input data as corresponding to these specific locations of a user tap or classify the input data as not corresponding to a user tap.
After the training data has been captured and manually labeled according to an appropriate classification scheme, feature value vectors can be extracted from the captured sensor data 214 using a feature pool 218. In an embodiment, the feature pool 218 from which the feature value vectors are determined comprise one-dimensional (1D) Haar-like features. Haar-like features are based on Haar wavelets, sequences of square-shaped functions of varying scales. Two-dimensional (2D) Haar-like features are conventionally used for recognizing objects within two-dimensional image data, such as discussed in Viola, Paul, and Michael Jones. “Rapid object detection using a boosted cascade of simple features.” In Computer Vision and Pattern Recognition, 2001. CVPR 2001. Proceedings of the 2001 IEEE Computer Society Conference on, vol. 1, pp. 1-511. IEEE, 2001, which is incorporated herein by reference. Viola Jones object detection uses simple rectangular Haar-like features at various scales and positions to characterize an image. One of the basic patterns for the 2D Haar-like features used by Viola Jones object detection is a two-rectangle feature having the same size and shape and being horizontally or vertically adjacent. The value of the two-rectangle feature is the difference between the respective sums of the pixels of the two rectangular regions. Viola Jones object detection also defines a three-rectangle feature whose value is the sum of the pixels in a center rectangle subtracted from the respective sums of the pixels of two outside rectangles, and a four-rectangle feature whose value is the difference of the respective sums of pixel of diagonal pairs of rectangles.
In various embodiments, Viola Jones object detection is adapted for analyzing 1D sensor data signals using 1D Haar-like features to characterize the 1D sensor data signals used for tap detection. In an embodiment, one 1D Haar-like feature utilized for tap detection may be a two-region feature having regions of equal length and the basic pattern of {−1, 1}, and another 1D Haar-like feature may be a three-region feature having regions of equal length and the basic pattern of {−1, 1, −1}, The value of the two-region Haar-like feature is the sum of the sensor signal data of one region subtracted from the sum of the sensor signal data of the other region, and the value of the three-region Haar-like feature is the sum of the sensor signal data of a center region subtracted from the respective sums of the sensor signal data of two outer regions. Additional Haar-like features can be derived from these basic patterns by varying the length of the regions (e.g., {−1, −1, 1, 1}; {−1, −1, 1, 1, −1, −1}; {−1, −1, −1, 1, 1, 1}; {−1, −1, −1, 1, 1, 1, −1, −1, −1}; etc.), shifting the Haar-like features by various amounts (e.g., {0, −1, 1}; {0, −1, 1, −1}; {0, 0, −1, 1}; {0, 0, −1, 1, −1}; etc.), or a combination thereof. In other embodiments, Haar-like features may comprise other various patterns, including those that may not have regions of equal length. For example, another basic pattern for a Haar-like feature could be represented as {−1, −1, 1, 1, 1, 1, −1}. This basic pattern can be scaled and/or shifted for inclusion as part of a pool of features to be used for tap detection.
In some embodiments, feature pool 218 can be statically defined. In other embodiments, feature pool 218 can be dynamically generated. An advantage of using Haar-like features is the low calculation cost for determining the feature vectors from the captured sensor data. Feature value vectors derived from Haar-like features require only addition and subtraction operations, and the values for these features can be calculated in constant time. To rapidly compute the values for the Haar-like features, an “integral buffer” can be computed from the sensor data. An integral buffer is an adaptation of Viola Jones object detection's integral image, and is discussed in further detail elsewhere herein.
The next step of the off-line phase is generating a machine-learned model from the training data 216 using a suitable machine-learning algorithm from among decision trees, random forest, boosting, support vector machines, neural networks, logistic regression, among other machine-learning algorithms. Decision trees are trees that classify instances by sorting them based on feature values. Each node in a decision tree represents a feature in an instance to be classified, each branch represents a possible value of the node, and each leaf node represents a classification or decision. Generally, the feature that best divides the training data would be the root node of the tree, and higher-level nodes will typically divide the training data better than lower-level nodes. Examples of decision-tree algorithms include Iterative Dichotomiser 3 (ID3); C4.5, which is the successor of ID3; C5.0/See5, which is the successor to C4.5; and Classification and Regression Tree (CART).
A random forest is a classifier comprising a combination of decision trees in which each tree depends on the values of a random vector sampled independently and with the same distribution for all trees in the forest. A random forest can be trained for some number of trees T by sampling N cases of the training data at random with replacement to create a subset of the training data; the subset can be about 66% of the total training data. At each node, a number m of the features are selected at random from the set of all features. The feature that provides the best split is used to do a binary split on that node. At the next node, another number m of the features are selected at random and the process is repeated.
Boosting algorithms are based on the premise that a series of “weak” classifiers (e.g., classifiers that may only accurately predict an outcome a little more than half of the time) can be combined to create a “strong” classifier (e.g., a classifier capable of predicting an outcome according to a desired level of accuracy). An example of a boosting algorithm is Adaptive boosting or AdaBoost, which is a machine learning boosting algorithm which finds a highly accurate classifier (i.e., low error rate) from a combination of many “weak” classifiers (i.e., substantial error rate). Given a data set comprising examples that are within a class and not within the class and weights based on the difficulty of classifying an example and a weak set of classifiers, AdaBoost generates and calls a new weak classifier in each of a series of rounds. For each call, the distribution of weights is updated that indicates the importance of examples in the data set for the classification. On each round, the weights of each incorrectly classified example are increased, and the weights of each correctly classified example is decreased so the new classifier focuses on the difficult examples (i.e., those examples have not been correctly classified).
A support vector machine (SVM) is generally a binary classifier. Given labeled training data comprising instances of a first class or a second class, an SVM training algorithm builds a model capable of assigning new instances to one of the first class or the second class by finding an optimal hyperplane, i.e., a hyperplane that separates the training data between the two classes and maximizes the gap or “margin” between instances of the two classes. When a linear separator cannot be found, the training data can be projected to a higher-dimensional space using kernel techniques where the training data effectively becomes linearly separable. Finding the hyperplane can be formulated as a quadratic optimization problem that can be solved by known techniques.
Neural networks are inspired by biological neural networks and consist of an interconnected group of functions or classifiers that process information using a connectionist approach. Neural networks change their structure during training, such as by merging overlapping detections within one network and training an arbitration network to combine the results from different networks. Examples of neural network algorithms include the multilayer neural network, the autoassociative neural network, the probabilistic decision-based neural network (PDBNN), and the sparse network of winnows (SNoW).
Logistic regression is a type of probabilistic statistical classification model that can operate as a binary classifier. Probabilities of the possible outcomes of a single trial are modeled as a function of one or more independent variables or features using a logistic function. This is an S-shaped function that can be used to fit data in various ways. Logistic regression measures the relationship between a classification and the one or more independent variables or features by using probability scores as the predicted values of the classification.
The process 200 for configuring an electronic device for tap detection also includes a stage that occurs in real time or substantially real time 250. This part of the process begins with capturing of sensor data 252 by a particular electronic device 204. As mentioned, the sensor data that can be captured includes inertial sensor data, such as for each axis of one or more single-, two-, or three-axis accelerometers, gyroscopes, or a combination thereof. In other embodiments, additional sensor data can also be obtained using one or more other sensors or input elements, including magnetometer(s), microphone(s), proximity sensor(s), ambient light sensors, and/or cameras(s), among others. In various embodiments, sensor data from one or more axes of the accelerometer and/or gyroscope and/or from each of the additional sensors that may be used for detecting a user tap can be stored in a respective circular buffer such that the oldest data is overwritten by the newest captured sensor data. The real-time stage can continue with extracting feature values from the captured sensor data 254 using a set of features 218 common to those used for extracting feature values from the training data 214. The extracted feature values are evaluated according to the machine-learned model 220 to determine whether the feature values correspond to a tap of the device or do not correspond to a tap of the device 256. When the device determines that a user has tapped the device, including a single tap or multiple taps, the tap(s) of the device can operate as an input gesture that can cause an action to be performed by the device, such as powering off the device, controlling audio, clearing notifications or screen alerts, among other actions.
Returning to the example of
Is(n)=Σk≦nsk, (Equation 1)
where sk is the sensor data value at a position k≦n in Vs. For example, to calculate the value of the Haar-like feature 402 with respect to the window 400 of Vaccel
Σknsn=Is(n)−Is(k−1) (Equation 2)
The value of the Haar-like feature 402 can now be calculated in three operations using the integral buffer Is:
[Is(s60)−Is(s57)]−[Is(s57)−Is(s54)]
[Is(s60)−Is(s57)]−[Is(s57)−Is(s54)]−[Is(s54)−Is(s51)].
Another example two-region Haar-like feature H2 can be defined as H2=[−1, −1, −1, −1, 1, 1, 1, 1] where the first region comprises the 5th through 8th positions of H2, and the second region comprises the 1st through 4th positions of H2. The value for H2 with respect to Vs can be computed using the same approach discussed above, i.e., the value for H2 with respect to Vs equals [Is(8)−Is(4))−Is(4)−Is(0))]=[(36−10)−(10−0)]=[26−10]=16. The feature value matrix/set of feature value vectors can be updated with the value for H2 with respect to Vs, i.e., F1,2 would be updated with the value of 16. Steps 508, 512, and 514 can be repeated until values for all of the Haar-like features are determined. A determination 510 can be made when all of the values for the feature pool are computed to continue processing another vector of sensor data Vs 502. A determination 504 can be made when all of the vectors of sensor data Vs are processed, upon which the feature value matrix/set of feature value vectors can be provided as input for machine learning 516. For example, the feature value matrix/set of feature value vectors can be used for training a machine learning model, such as in the machine learning model generation stage 216 of
In some embodiments, feature values can be computed on demand to reduce the computational burden of feature value extraction. That is, feature values are not calculated until those feature values are to be evaluated by a machine-learned model. For example, when the machine-learned model is based on a random forest, feature values are only computed as the random forest hits nodes where the random forest needs those feature values.
After the plurality of sensor data is captured, each of the sensor data can be stored in a separate buffer 604. In an embodiment, a respective circular buffer Vs of fixed length is used for storing each of the plurality of sensor data. For example, the sensor data from each axis of the accelerometer can be stored in Vaccel
The process 600 continues by evaluating the respective feature vectors for each of the plurality of the sensor data according to a machine-learned model 608. The machine-learned model can be based on one of several supervised learning techniques, including decision trees, random forest, boosting, support vector machines, neural networks, logistic regression, among others. The respective feature vectors for each of the plurality of sensor are provided as input to the machine-learned model, and the machine-learned model classifies the respective feature vectors as corresponding to a tap of the device or not corresponding to a tap of the device 610. If the respective feature vectors are determined to not correspond to a tap of the device, the process 600 can be re-initiated by capturing new sensor data 602. If the respective feature vectors are determined to correspond to a tap of the device, the tap can be interpreted as an input gesture and an action can be performed 612, such as powering off the device, controlling audio, clearing notifications or screen alerts, among other actions.
In some embodiments, feature value extraction and classification by the machine-learned model occur at a similar rate as the rate at which sensor data is captured (e.g., 100 Hz). In other embodiments, feature extraction and classification are performed at a less frequent rate for power-saving purposes.
In various embodiments, multiple taps of the device can be detected by recognizing single taps that occur in close temporal proximity or that occur within a threshold of time of each other. For example, a pair of single taps that occur within the threshold of time can be detected as a double tap. A similar approach can be extended to other tap patterns, such as triple taps, quadruple taps, etc.
The electronic device can also include one or more cameras 712 for detecting a portion of the user (e.g., user's face and/or head) and/or something associated with the user (e.g., something in the user's hand, that the user is wearing, etc.). In some embodiments, face or head detection can be used as an additional cue to determine whether the user has intended to tap the device to control the device. For example, the electronic device may be configured to recognize taps as input for controlling the device only when the user is actively operating the device as opposed to when the device is located in one of the user's pockets, the user's bag, or some other location away from the user. Face or head detection can be utilized as an indication that the user is actively operating the device. Approaches for combining face and/or head detection with tap detection are discussed in co-pending U.S. patent application Ser. No. 14/307,470, filed Jun. 17, 2014, entitled “Detecting Tap-Based User Input on a Mobile Device,” which is incorporated by reference herein.
In some embodiments, an electronic device can include one or more regions on various surfaces of the device indicating where the user may tap on the device such that the device is more likely to detect the tap as input for controlling the device. In this example, the device 700 is capable of differentiating among back taps to a northwest quadrant, northeast quadrant, southwest quadrant, and southeast quadrant of the device. To facilitate tap detection at these various quadrants, tactile cues or indicators 720, 722, 724, and 726 may be provided approximately at the center of the northwest quadrant, northeast quadrant, southwest quadrant, and southeast quadrant, respectively. Tactile cues may have unique sensor signatures, such as a pattern of raised bumps, lines, or ridges, that create a unique pattern when the user drags a finger across the surface. The unique pattern can direct a user to tap the surface of the device at these locations so that the sensor data captured when the user taps these locations more closely matches training data captured by other users tapping at these locations. In addition, touching or tapping the raised bumps or lines may generate unique sensor data, which can further facilitate recognition of user input to these locations using a machine-learning approach. Although, the tactile cues or indicators are disposed on the back surface of the device, it should be understood that these cues or indicators can also be disposed at various other locations, including the top, bottom, sides, and front of the device in various embodiments. In some embodiments, visual indicators, such as stickers or utilization of a different color from the rest of the surface, can be used in addition or alternatively to tactical cues.
The device 800 also can include one or more orientation and/or motion sensors 808. Such sensor(s) can include an accelerometer or gyroscope operable to detect an orientation and/or change in orientation, or an electronic or digital compass, which can indicate a direction in which the device is determined to be facing. The mechanism(s) also (or alternatively) can include or comprise a global positioning system (GPS) or similar positioning element operable to determine relative coordinates for a position of the electronic device, as well as information about relatively large movements of the device. The device can include other elements as well, such as may enable location determinations through triangulation or another such approach. These mechanisms can communicate with the processor 802, whereby the device can perform any of a number of actions described or suggested herein.
The example device can include at least one audio component 810, such as a mono or stereo microphone or microphone array, operable to capture audio information from at least one primary direction. A microphone can be a uni- or omni-directional microphone as known for such devices. The device in many embodiments will also include one or more cameras or image sensors 812 for capturing image or video content. A camera can include, or be based at least in part upon any appropriate technology, such as a CCD or CMOS image sensor having a sufficient resolution, focal range, viewable area, to capture an image of the user when the user is operating the device. An image sensor can include a camera or infrared sensor that is able to image projected images or other objects in the vicinity of the device. Methods for capturing images or video using a camera with an electronic device are well known in the art and will not be discussed herein in detail. It should be understood that image capture can be performed using a single image, multiple images, periodic imaging, continuous image capturing, image streaming, etc. Further, a device can include the ability to start and/or stop image capture, such as when receiving a command from a user, application, or other device.
The electronic device 800 includes at least one capacitive component or other proximity sensor, which can be part of, or separate from, the display assembly. In at least some embodiments the proximity sensor can take the form of a capacitive touch sensor capable of detecting the proximity of a finger or other such object. The electronic device also includes various power components 814 known in the art for providing power to an electronic device, which can include capacitive charging elements for use with a power pad or similar device. The electronic device can include one or more communication elements or networking sub-systems 816, such as a Bluetooth, RF, wired, or wireless communication system. The device in many embodiments can communicate with a network, such as the Internet, and may be able to communicate with other such devices. In some embodiments the device can include at least one additional input element 818 able to receive conventional input from a user. This conventional input can include, for example, a push button, touch pad, touchscreen, wheel, joystick, keyboard, mouse, keypad, or any other such component or element whereby a user can input a command to the device. In some embodiments, however, such a device might not include any buttons at all, and might be controlled only through a combination of visual and audio commands, such that a user can control the device without having to be in contact with the device.
In some embodiments, the device 800 can include the ability to activate and/or deactivate detection and/or command modes, such as when receiving a command from a user or an application, or retrying to determine an audio input or video input, etc. For example, a device might not attempt to detect or communicate with devices when there is not a user in the room. If a proximity sensor of the device, such as an IR sensor, detects a user entering the room, for instance, the device can activate a detection or control mode such that the device can be ready when needed by the user, but conserve power and resources when a user is not nearby.
In some embodiments, the electronic device 800 may include a light-detecting element that is able to determine whether the device is exposed to ambient light or is in relative or complete darkness. Such an element can be beneficial in a number of ways. For example, the light-detecting element can be used to determine when a user is holding the device up to the user's face (causing the light-detecting element to be substantially shielded from the ambient light), which can trigger an action such as the display element to temporarily shut off (since the user cannot see the display element while holding the device to the user's ear). The light-detecting element could be used in conjunction with information from other elements to adjust the functionality of the device. For example, if the device is unable to detect a user's view location and a user is not holding the device but the device is exposed to ambient light, the device might determine that it has likely been set down by the user and might turn off the display element and disable certain functionality. If the device is unable to detect a user's view location, a user is not holding the device and the device is further not exposed to ambient light, the device might determine that the device has been placed in a bag or other compartment that is likely inaccessible to the user and thus might turn off or disable additional features that might otherwise have been available. In some embodiments, a user must either be looking at the device, holding the device or have the device out in the light in order to activate certain functionality of the device. In other embodiments, the device may include a display element that can operate in different modes, such as reflective (for bright situations) and emissive (for dark situations). Based on the detected light, the device may change modes.
In some embodiments, the device 800 can disable features for reasons substantially unrelated to power savings. For example, the device can use voice recognition to determine people near the device, such as children, and can disable or enable features, such as Internet access or parental controls, based thereon. Further, the device can analyze recorded noise to attempt to determine an environment, such as whether the device is in a car or on a plane, and that determination can help to decide which features to enable/disable or which actions are taken based upon other inputs. If speech or voice recognition is used, words can be used as input, either directly spoken to the device or indirectly as picked up through conversation. For example, if the device determines that it is in a car, facing the user and detects a word such as “hungry” or “eat,” then the device might turn on the display element and display information for nearby restaurants, etc. A user can have the option of turning off voice recording and conversation monitoring for privacy and other such purposes.
In some of the above examples, the actions taken by the device relate to deactivating certain functionality for purposes of reducing power consumption. It should be understood, however, that actions can correspond to other functions that can adjust similar and other potential issues with use of the device. For example, certain functions, such as requesting Web page content, searching for content on a hard drive and opening various applications, can take a certain amount of time to complete. For devices with limited resources, or that have heavy usage, a number of such operations occurring at the same time can cause the device to slow down or even lock up, which can lead to inefficiencies, degrade the user experience and potentially use more power. In order to address at least some of these and other such issues, approaches in accordance with various embodiments can also utilize information such as user gaze direction to activate resources that are likely to be used in order to spread out the need for processing capacity, memory space and other such resources.
In some embodiments, the device can have sufficient processing capability, and the camera and associated image analysis algorithm(s) may be sensitive enough to distinguish between the motion of the device, motion of a user's head, motion of the user's eyes and other such motions, based on the captured images alone. In other embodiments, such as where it may be desirable for an image process to utilize a fairly simple camera and image analysis approach, it can be desirable to include at least one orientation determining element that is able to determine a current orientation of the device. In one example, the one or more orientation and/or motion sensors may comprise a single- or multi-axis accelerometer that is able to detect factors such as three-dimensional position of the device and the magnitude and direction of movement of the device, as well as vibration, shock, etc. Methods for using elements such as accelerometers to determine orientation or movement of a device are also known in the art and will not be discussed herein in detail. Other elements for detecting orientation and/or movement can be used as well within the scope of various embodiments for use as the orientation determining element. When the input from an accelerometer or similar element is used along with the input from the camera, the relative movement can be more accurately interpreted, allowing for a more precise input and/or a less complex image analysis algorithm.
When using a camera of the electronic device to detect motion of the device and/or user, for example, the electronic device can use the background in the images to determine movement. For example, if a user holds the device at a fixed orientation (e.g. distance, angle, etc.) to the user and the user changes orientation to the surrounding environment, analyzing an image of the user alone will not result in detecting a change in an orientation of the device. Rather, in some embodiments, the electronic device can still detect movement of the device by recognizing the changes in the background imagery behind the user. So, for example, if an object (e.g., a window, picture, tree, bush, building, car, etc.) moves to the left or right in the image, the device can determine that the device has changed orientation, even though the orientation of the device with respect to the user has not changed. In other embodiments, the device may detect that the user has moved with respect to the device and adjust accordingly. For example, if the user tilts his head to the left or right with respect to the device, the content rendered on the display element may likewise tilt to keep the content in orientation with the user.
As discussed, different approaches can be implemented in various environments in accordance with the described embodiments. For example,
The illustrative environment includes at least one application server 908 and a data store 910. It should be understood that there can be several application servers, layers or other elements, processes or components, which may be chained or otherwise configured, which can interact to perform tasks such as obtaining data from an appropriate data store. As used herein, the term “data store” refers to any device or combination of devices capable of storing, accessing and retrieving data, which may include any combination and number of data servers, databases, data storage devices and data storage media, in any standard, distributed or clustered environment. The application server 908 can include any appropriate hardware and software for integrating with the data store 910 as needed to execute aspects of one or more applications for the client device and handling a majority of the data access and business logic for an application. The application server provides access control services in cooperation with the data store and is able to generate content such as text, graphics, audio and/or video to be transferred to the user, which may be served to the user by the Web server 906 in the form of HTML, XML or another appropriate structured language in this example. The handling of all requests and responses, as well as the delivery of content between the client device 902 and the application server 908, can be handled by the Web server 906. It should be understood that the Web and application servers are not required and are merely example components, as structured code discussed herein can be executed on any appropriate device or host machine as discussed elsewhere herein.
The data store 910 can include several separate data tables, databases or other data storage mechanisms and media for storing data relating to a particular aspect. For example, the data store illustrated includes mechanisms for storing content (e.g., production data) 912 and user information 916, which can be used to serve content for the production side. The data store is also shown to include a mechanism for storing log or session data 914. It should be understood that there can be many other aspects that may need to be stored in the data store, such as page image information and access rights information, which can be stored in any of the above listed mechanisms as appropriate or in additional mechanisms in the data store 910. The data store 910 is operable, through logic associated therewith, to receive instructions from the application server 908 and obtain, update or otherwise process data in response thereto. In one example, a user might submit a search request for a certain type of item. In this case, the data store might access the user information to verify the identity of the user and can access the catalog detail information to obtain information about items of that type. The information can then be returned to the user, such as in a results listing on a Web page that the user is able to view via a browser on the user device 902. Information for a particular item of interest can be viewed in a dedicated page or window of the browser.
Each server typically will include an operating system that provides executable program instructions for the general administration and operation of that server and typically will include computer-readable medium storing instructions that, when executed by a processor of the server, allow the server to perform its intended functions. Suitable implementations for the operating system and general functionality of the servers are known or commercially available and are readily implemented by persons having ordinary skill in the art, particularly in light of the disclosure herein.
The environment in one embodiment is a distributed computing environment utilizing several computer systems and components that are interconnected via communication links, using one or more computer networks or direct connections. However, it will be appreciated by those of ordinary skill in the art that such a system could operate equally well in a system having fewer or a greater number of components than are illustrated in
The various embodiments can be further implemented in a wide variety of operating environments, which in some cases can include one or more user computers or computing devices which can be used to operate any of a number of applications. User or client devices can include any of a number of general purpose personal computers, such as desktop or laptop computers running a standard operating system, as well as cellular, wireless and handheld devices running mobile software and capable of supporting a number of networking and messaging protocols. Such a system can also include a number of workstations running any of a variety of commercially-available operating systems and other known applications for purposes such as development and database management. These devices can also include other electronic devices, such as dummy terminals, thin-clients, gaming systems and other devices capable of communicating via a network.
Most embodiments utilize at least one network that would be familiar to those skilled in the art for supporting communications using any of a variety of commercially-available protocols, such as TCP/IP, OSI, FTP, UPnP, NFS, CIFS and AppleTalk. The network can be, for example, a local area network, a wide-area network, a virtual private network, the Internet, an intranet, an extranet, a public switched telephone network, an infrared network, a wireless network and any combination thereof.
In embodiments utilizing a Web server, the Web server can run any of a variety of server or mid-tier applications, including HTTP servers, FTP servers, CGI servers, data servers, Java servers and business application servers. The server(s) may also be capable of executing programs or scripts in response requests from user devices, such as by executing one or more Web applications that may be implemented as one or more scripts or programs written in any programming language, such as Java®, C, C# or C++ or any scripting language, such as Perl, Python or TCL, as well as combinations thereof. The server(s) may also include database servers, including without limitation those commercially available from Oracle®, Microsoft®, Sybase® and IBM®.
The environment can include a variety of data stores and other memory and storage media as discussed above. These can reside in a variety of locations, such as on a storage medium local to (and/or resident in) one or more of the computers or remote from any or all of the computers across the network. In a particular set of embodiments, the information may reside in a storage-area network (SAN) familiar to those skilled in the art. Similarly, any necessary files for performing the functions attributed to the computers, servers or other network devices may be stored locally and/or remotely, as appropriate. Where a system includes computerized devices, each such device can include hardware elements that may be electrically coupled via a bus, the elements including, for example, at least one central processing unit (CPU), at least one input device (e.g., a mouse, keyboard, controller, touch-sensitive display element or keypad) and at least one output device (e.g., a display device, printer or speaker). Such a system may also include one or more storage devices, such as disk drives, optical storage devices and solid-state storage devices such as random access memory (RAM) or read-only memory (ROM), as well as removable media devices, memory cards, flash cards, etc.
Such devices can also include a computer-readable storage media reader, a communications device (e.g., a modem, a network card (wireless or wired), an infrared communication device) and working memory as described above. The computer-readable storage media reader can be connected with, or configured to receive, a computer-readable storage medium representing remote, local, fixed and/or removable storage devices as well as storage media for temporarily and/or more permanently containing, storing, transmitting and retrieving computer-readable information. The system and various devices also typically will include a number of software applications, modules, services or other elements located within at least one working memory device, including an operating system and application programs such as a client application or Web browser. It should be appreciated that alternate embodiments may have numerous variations from that described above. For example, customized hardware might also be used and/or particular elements might be implemented in hardware, software (including portable software, such as applets) or both. Further, connection to other computing devices such as network input/output devices may be employed.
Storage media and computer readable media for containing code, or portions of code, can include any appropriate media known or used in the art, including storage media and communication media, such as but not limited to volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage and/or transmission of information such as computer readable instructions, data structures, program modules or other data, including RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other medium which can be used to store the desired information and which can be accessed by a system device. Based on the disclosure and teachings provided herein, a person of ordinary skill in the art will appreciate other ways and/or methods to implement the various embodiments.
The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense. It will, however, be evident that various modifications and changes may be made thereunto without departing from the broader spirit and scope of the invention as set forth in the claims.
Number | Name | Date | Kind |
---|---|---|---|
9110576 | Kim et al. | Aug 2015 | B1 |
9113073 | Ugawa | Aug 2015 | B2 |
20150106767 | Abercrombie et al. | Apr 2015 | A1 |
20150193111 | Kauffmann et al. | Jul 2015 | A1 |
20150234586 | Lee et al. | Aug 2015 | A1 |