The present disclosure generally relates to technical problems encountered while determining relevance of user clicks in a user interface. More specifically, the present disclosure relates to the use of machine learned models to predict the intention of users when performing user clicks in a user interface.
The rise of the Internet has occasioned two disparate yet related phenomena: an increase in the presence of social networking services, with their corresponding user profiles visible to large numbers of people, and an increase in the use of these social networking services to provide content. An example of such content is a social media post, where a user can post information, such as text, pictures, videos, articles, and so forth for other users to view.
Social networking services act to ensure that user engagement, meaning the amount of time and effort a user spends engaging with the social networking service, is high. Examples of such user engagement include browsing user profiles, looking through job listings, sending communications to other users of the social networking service, performing searches, clicking on feed items, and so forth.
One way to encourage user engagement is to provide relevant content to users, whether in response to an explicit user request for content or if content is served to the user without an explicit request. For example, if a user is searching for job listings, providing a job listing that the user is unlikely to be interested in will likely discourage user engagement, while providing a job listing that the user is likely to be interested in will encourage user engagement. The same is true if, for example the job listing is provided to the user who may not be explicitly searching for job listings.
Traditionally, machine learned models have been utilized to predict the likelihood that a user will engage with a piece of content. In the case of job listings, for example, these machine learned models are trained using positive signals such as previous clicks on the job listing (a click being a user action causing details of the job listing to be viewed in the user interface) and previous apply commands (an apply command being a user action causing an application for the job opening corresponding to a job listing to be initiated). While the user intent behind an apply command may be clear (the user wishes to apply for the job, which indicates a high degree of relevance for the job listing for the user), the user intent behind a click on a job listing may not be clear. While in some cases the user may indeed be very interested in potentially applying for the job corresponding to the job listing click, in other cases, the user may simply be curious about the job listing with no real intention to apply for the job. In still other cases, the user may be very interested about the job listing but not for themselves (perhaps looking on behalf of a family member or friend).
The result of this, however, is that prior machine learned models are technically problematic as they are unreliable in certain circumstances, as they have been trained using data that contains false positives. In the case of job listings, these false positives include clicks on job listings when the user has no real intention of applying for the corresponding job. What is needed is a solution that reduces or eliminates this technical problem with prior machine learned models.
Some embodiments of the technology are illustrated, by way of example and not limitation, in the figures of the accompanying drawings.
The present disclosure describes, among other things, methods, systems, and computer program products that individually provide various functionality. In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the various aspects of different embodiments of the present disclosure. It will be evident, however, to one skilled in the art, that the present disclosure may be practiced without all of the specific details.
In an example embodiment, a first machine learned model is trained to produce output, and a second machine learned model is then trained using training data that has been labeled, at least partially, using the output of the first machine learned model. The first machine learned model is trained to output a measure of how strong a positive signal in the training data really is. Specifically, this measure indicates the level of intention of a user who has engaged in a first user interface action with respect to a piece of content to engage in a subsequent second user interface action with the same piece of content. The types of the first user interface action and the second user interface action may vary based on implementation. In one example embodiment, the first user interface action is a click user interface action, which causes details about the piece of content to be displayed in the user interface, while the second user interface action is a subsequent interaction with that same piece of content (such as applying for a job corresponding to a job listing, if the piece of content is the job listing).
More particularly, labels applied to the training data used to train the second machine learned model are generated or modified to include the measure of the strength of the positive signal, as opposed to merely using the existence or lack of positive signal as a training label. When the second machine learned model is then trained using this uniquely labeled training data, the result is that the resultant predications made by the second machine learned model are more reliable than those of previous machine learned models.
The first machine learned model is a neural network that has been trained on its own labelled set of training data. The neural network is trained to output an embedding for any entities, such as users or pieces of content, in the training data. These embeddings are mappings of the corresponding entities into a D-dimensional space.
The embeddings are then utilized to calculate two separate scores that are then used together to calculate a user interest level for a pair of a user and a piece of content. The first of these scores is an entity similarity score that is calculated by determining a geometric distance between the embedding for the user and the embedding for the piece of content in the D-dimensional space. The second of these scores is an activity similarity score that is computed by aggregating embeddings for any pieces of content on which the first user performed a partially positive action; performing a function, such as an average, on the aggregated embeddings to calculate a user activity embedding; and then computing a dot product of the user activity embedding and an embedding for the first piece of content. The user interest level may then be calculated as a weighted sum of the entity similarity score and the activity similarity score.
While the proposed methodology may be utilized for a number of different types of pieces of content and user interface action types, in an example embodiment, it is applied specifically to the case of user interface “clicks” and “applies” on job listings. For ease of discussion, the job listing embodiment will be described throughout this document, but the claims shall not be interpreted as limiting the scope of protection to job suggestions unless explicitly recited.
In machine learning, features are values of data used to both train a machine learned model and to evaluate the machine learned model against a particular item/user. During the training process, the features of values of training data are combined with labels applied to the training data to identify positive and negative cases for a machine learning algorithm to utilize when performing the training. In an example embodiment, the features utilized include user feature data. The user feature data may include information from a user's profile, such as seniority, industry, title, company, functions, field of study, education, skills, location, and so forth. Usage information, such as user interface actions by users corresponding to the user feature data, may be used to provide labels to the training data. These user interface actions may include, as described above, clicks and applies.
During the machine learning process, the machine learning algorithm uses the training data and labels to determine weights (coefficients) assigned to each of the features. These weights help define the machine learned model, which can then be used at an evaluation time to provide a prediction of a likelihood that a specific user will perform an action, such as an apply, by multiplying the weights by the corresponding feature values for the specific user.
An application program interface (API) server 114 and a web server 116 are coupled to, and provide programmatic and web interfaces respectively to, one or more application servers 118. The application server(s) 118 host one or more applications 120. The application server(s) 118 are, in turn, shown to be coupled to one or more database servers 124 that facilitate access to one or more databases 126. While the application(s) 120 are shown in
Further, while the client-server system 100 shown in
The web client 106 accesses the various applications 120 via the web interface supported by the web server 116. Similarly, the programmatic client 108 accesses the various services and functions provided by the application(s) 120 via the programmatic interface provided by the API server 114.
In some embodiments, any website referred to herein may comprise online content that may be rendered on a variety of devices including, but not limited to, a desktop personal computer (PC), a laptop, and a mobile device (e.g., a tablet computer, smartphone, etc.). In this respect, any of these devices may be employed by a user to use the features of the present disclosure. In some embodiments, a user can use a mobile app on a mobile device (any of the machines 110, 112 and the third-party server 130 may be a mobile device) to access and browse online content, such as any of the online content disclosed herein. A mobile server (e.g., API server 114) may communicate with the mobile app and the application server(s) 118 in order to make the features of the present disclosure available on the mobile device.
In some embodiments, the networked system 102 may comprise functional components of a social networking service.
As shown in
An application logic layer may include one or more various application server modules 214, which, in conjunction with the user interface module(s) 212, generate various user interfaces (e.g., web pages) with data retrieved from various data sources in a data layer. In some embodiments, individual application server modules 214 are used to implement the functionality associated with various applications 120 and/or services provided by the social networking service.
As shown in
Once registered, a user may invite other users, or be invited by other users, to connect via the social networking service. A “connection” may constitute a bilateral agreement by the users, such that both users acknowledge the establishment of the connection. Similarly, in some embodiments, a user may elect to “follow” another user. In contrast to establishing a connection, the concept of “following” another user typically is a unilateral operation and, at least in some embodiments, does not require acknowledgement or approval by the user that is being followed. When one user follows another, the user who is following may receive status updates (e.g., in an activity or content stream) or other messages published by the user being followed, relating to various activities undertaken by the user being followed. Similarly, when a user follows an organization, the user becomes eligible to receive messages or status updates published on behalf of the organization. For instance, messages or status updates published on behalf of an organization that a user is following will appear in the user's personalized data feed, commonly referred to as an activity stream or content stream. In any case, the various associations and relationships that the users establish with other users, or with other entities and objects, are stored and maintained within a social graph in a social graph database 220.
As users interact with the various applications 120, services, and content made available via the social networking service, the users' interactions and behavior (e.g., content viewed, links or buttons selected, messages responded to, etc.) may be tracked, and information concerning the users' activities and behavior may be logged or stored, for example, as indicated in
In some embodiments, the databases 218, 220, and 222 may be incorporated into the database(s) 126 in
Although not shown, in some embodiments, a social networking system 210 provides an API module via which applications 120 and services can access various data and services provided or maintained by the social networking service. For example, using an API, an application may be able to request and/or receive one or more recommendations. Such applications 120 may be browser-based applications 120 or may be operating system-specific. In particular, some applications 120 may reside and execute (at least partially) on one or more mobile devices (e.g., phone or tablet computing devices) with a mobile operating system. Furthermore, while in many cases the applications 120 or services that leverage the API may be applications 120 and services that are developed and maintained by the entity operating the social networking service, nothing other than data privacy concerns prevents the API from being provided to the public or to certain third parties under special arrangements, thereby making the navigation recommendations available to third-party applications 128 and services.
Although the search engine 216 is referred to herein as being used in the context of a social networking service, it is contemplated that it may also be employed in the context of any website or online services. Additionally, although features of the present disclosure are referred to herein as being used or presented in the context of a web page, it is contemplated that any user interface view (e.g., a user interface on a mobile device or on desktop software) is within the scope of the present disclosure.
In an example embodiment, when user profiles are indexed, forward search indexes are created and stored. The search engine 216 facilitates the indexing and searching for content within the social networking service, such as the indexing and searching for data or information contained in the data layer, such as profile data (stored, e.g., in the profile database 218), social graph data (stored, e.g., in the social graph database 220), and user activity and behavior data (stored, e.g., in the user activity and behavior database 222). The search engine 216 may collect, parse, and/or store data in an index or other similar structure to facilitate the identification and retrieval of information in response to received queries for information. This may include, but is not limited to, forward search indexes, inverted indexes, N-gram indexes, and so on.
As described above, example embodiments may be utilized for ranking and/or selection of social media posts to display to users. These social media posts may be directly or indirectly generated from user activity within the social networking service, and may be stored in post database 224. Examples of social media posts directly generated from user activity include the user themselves posting text, image, or video information as a post. Examples of social media posts indirectly generated from user activity include the social networking service itself generating the post when the user has a change in their profile, or when the user is mentioned in an article, etc.
Specifically, the application server module 214 can be divided generally into a training component 300 and an evaluation component 302. The training component 300, as will be described, uses various features and machine learning algorithms to train one or more machine learned models. The outputs of the machine learned model(s) are (potentially different) coefficients for each instance feature. The evaluation component 302 then uses these coefficients to make runtime decisions as to which pieces of content to display to a user.
As described earlier, a unique measure of degree of positivity for a label used during machine learning training is introduced. This measure will now be described in more detail before describing its use during the training and how the training integrates with the training component 300.
On the without apply 406 side however, the user intent is less clear. A certain percentage of users in such cases had no intention of applying for the underlying job when clicking on the job listing. These are represented as reference numeral 412. On the other hand, a certain percentage of users in such cases did have an intention of (potentially) applying for the underlying job when clicking on the job listing. These are represented as reference numeral 414.
All training data may fall under one of reference numerals 408, 410, 412, or 414 in
In an example embodiment, the scores assigned to training data falling under reference numerals 412, 414 may themselves be derived using a different machine learned model that outputs a score indicating the degree of interest a user has in potentially applying for a particular job listing that he or she has clicked on. The scores themselves will determine which category (either 412 or 414) will be used for a particular data point. Specifically, if a score assigned to a piece of training data is closer to 1 then that implies that there is high probability that the corresponding user, despite not applying, has a high degree of interest in the job listing, whereas if the score assigned to the piece of training data is closer to 0 then that implies that there is a low probability that the corresponding user has a high degree of interest in the job listing. In some example embodiments, no matter the score, the piece of training data relating to a job client 412 but without apply 406 is assigned to one of the two categories 412, 414. For example, if the score is 0.5 or higher, it is assigned to the with interest 414 category, whereas if the score is less than 0.5, it is assigned to the without interest 412 category. In other example embodiment, there may be a middle ground of training data scores which do not get categorized and their corresponding data points are discarded for training purposes. For example, in some example embodiments, training data with scores of 0.3 or less are assigned to the without interest 412 category while training data with scores of 0.7 or higher are assigned to the with interest 414 category. In such an embodiment, training data with scores between 0.3 and 0.7 are discarded, since they may be viewed as being unreliable indicators of whether or not the corresponding user has interest in the corresponding job listing.
Other type of negative interactions with the job listing, such as dismissing 416 or ignoring 418 the listing will also be assigned a negative label (such as 0).
Referring back to
The second type 314 of training data is passed to a first machine learned model 318 to predict the interest level of a given user who has clicked on a given job listing. This first machine learned model 318 may be used to predict interest levels for the second type 314 of training data, and these interest levels may be used by the labelling component 316 to label the second type 314 of training data. In one example embodiment, these interest levels are normalized to be assigned a label value between (but not including) 0 and 1.
The first machine learned model 318 may also be used to predict interest level for users when the second machine learned model 323 evaluates combinations of users and job listings at evaluation time, as that interest level may be used as a feature of the second machine learned model 323.
The first machine learned model 318 may be trained by a first machine learning algorithm 324. The first machine learned model 318 includes an entity portion 326, which is a neural network trained by the first machine learning algorithm 324 to output an entity similarity score, and an activity portion 328, which calculates an activity similarity score via a dot product operation. The first machine learned model 318 then calculates the interest level of a given user in a given job listing based on both the entity similarity score for the pair and the activity similarity score for the pair.
In an example embodiment, the neural network in the entity portion 326 is trained using sample labelled pairs 320 of features about a user and features about a job listing with which the user interacted or is otherwise associated with in some way. The labels may be considered either positive, such as when the user applied for the job associated with the job listing or the user actually works at the job associated with the job listing, or negative, such as when the user dismissed the job listing when presented with it in a user interface, or skipped the job listing when presented with it in a user interface (skipping may be determined by the user having, for example, selected on a job listing presented both before and after the job listing in the user interface, but not selecting on the job listing itself). It should be noted that while a label may be termed “positive” or “negative,” this does not necessarily correlate with the sign of the actual value of the label. Thus, for example, a positive label may be “1” while a negative label may be “0.” There is no need for a negative label to be a negative number.
A neural network is a deep learning machine learning model that contains layers of interconnected nodes. Each node is a perceptron and is similar to multiple linear regression. The perceptron feeds the signal produced by multiple linear regression into an activation function that may be nonlinear. In a multi-layered perceptron (MLP), perceptrons are arranged in interconnected layers. The input layer collects input patterns. The output layer has classifications or output signals to which input patterns may map.
Hidden layers fine-tune the input weightings until the neural network's margin of error is minimal. The hidden layers extrapolate salient features in the input data that have predictive power regarding the outputs.
In an example embodiment, the sample labelled pairs of features about a user and features about a job listing may take the form of a concatenation of a user feature vector and a job feature vector, along with a label, such as in the form: <user feature vector+job feature vector, label>. These sample labelled pairs of features may be passed to a neural network machine learning algorithm that is trained to learn embeddings of the users and job listings based on the labels in the training data. An embedding is a mapping of a user or job listing into a point in a D-dimensional space. Here, D may be a value selected by an administrator that balances reliability of the entity embedding with system performance. In an example embodiment, D may be 200.
By mapping each user and each job listing into a different point in a D-dimensional space, a similarity score between a given user and a given job listing can be calculated based on the geometric distance between the embedded points corresponding to the given user and the given job listing in the D-dimensional space.
While the entity similarity score may provide a good estimate of how likely a user is to be interested in a given job posting based on the similarity between the user's profile and the job listing, there are circumstances where the entity similarity score alone would be an inaccurate measure of user intent and interest. For example, there are cases where users have not updated their profile or even are missing large amounts of information in their profile (e.g., a nearly empty profile). Additionally, there may be instances where a user may simply be interested in a job listing that is not related to any information in their profile, such as if the user is contemplating a career change (e.g., currently employed as a software engineer and contemplating becoming a nurse) or if the user is searching job listings on behalf of a family member or friend. Thus, an activity similarity score may be calculated to help capture intent in these circumstances.
In an example embodiment, the activity similarity score is computed by leveraging the embeddings learned by the first machine learned model 318. Specifically, the job listing embeddings for all job listings clicked on during a preset period (e.g., last 28 days) may be aggregated. A function (such as average or mean) may be applied to these aggregated embeddings to arrive at a user activity embedding for the user. A dot product may then be computed between the user activity embedding for the user and a job listing embedding to arrive at an activity similarity score between the user and the job listing.
As stated earlier, the first machine learned model 318 then calculates the interest level of a given user in a given job listing based on both the entity similarity score for the pair and the activity similarity score for the pair. In an example embodiment, this calculation may be based on a weighted sum, such as
where wentity is a weight assigned to the entity similarity score and wactivity is a weight assigned to the activity similarity score.
It should be noted that in some example embodiments, other functions may be used in conjunction with or in lieu of average or mean in this calculation. For example, minimum and maximum functions may be applied to the aggregation of embeddings and dot product performed on the results of these functions with the job listing embedding to arrive at other types of similarity scores that can be assigned their own weights in the weighted sum calculation.
The output of the first machine learned model 318 is a prediction of an interest level of a user in a job listing. As stated earlier, this prediction may be used by the labelling component 316 to label the second type 314 of training data, and also may be used as a feature of the second machine learned model 323, which is trained by the second machine learning algorithm 322 to predict a likelihood that a given user will apply to a job corresponding to a given job listing.
The second machine learning algorithm 322 may be selected from among many different potential supervised or unsupervised machine learning algorithms. Examples of supervised learning algorithms include artificial neural networks, Bayesian networks, instance-based learning, support vector machines, random forests, linear classifiers, quadratic classifiers, k-nearest neighbor, decision trees, and hidden Markov models. Examples of unsupervised learning algorithms include expectation-maximization algorithms, vector quantization, and information bottleneck method. In an example embodiment, a binary logistical regression model is used. Binary logistic regression deals with situations in which the observed outcome for a dependent variable can have only two possible types. Logistic regression is used to predict the odds of one case or the other being true based on values of independent variables (predictors).
The second machine learning algorithm 322 learns weights to be applied to input features exacted from various data sources. As stated above, one of those features is the prediction output by the first machine learned model 318, but other features are utilized as well, such as features extracted from user profiles, job listings, usage information, and so forth.
Depending upon how labeling is applied, the first machine learned model 320 may perform prediction of clicking (selecting) a job listing or alternatively may perform prediction of applying for a job associated with a job listing. In other example embodiments, the above techniques may be applied to any area where there are multiple types of positive signals of varying degrees. Specifically, positive signals may be divided into fully positive (such as, for the case of job listings, applying to the job associated with a job listing), partially positive (such as, for the case of job listings, clicking on a job listing), and negative (such as, for the case of job listings, skipping over/ignoring (such as 418 in
At evaluation time, a pair of a given user and a given job listing may be evaluated to determine the predicted likelihood that the given user will click on the given job listing or (again, depending on how the models are trained) the likelihood that the given user will apply for the job associated with the job listing. Evaluation pair feature data 330 may include features extracted from information about the pair, such as from profile data of the given user, usage information of the given user, and text of the job listing. The evaluation pair feature data 330 may be passed to the first machine learned model 318 to output an interest level for each of the evaluation pairs to the second machine learned model 323, which as described earlier is a feature used by the second machine learned model 323 in making its prediction. The second machine learned model 323 may also use the evaluation pair feature data 330 directly as features in making its prediction. While this may essentially result in the evaluation pair feature data 330 being used twice, in one of the instances the evaluation pair feature data 330 is only used indirectly, by being used compute the interest level. This embodiment recognizes that there may be independent value in use of the evaluation pair feature data 330 directly that doesn't involve its effect on interest level. The result is a predicted likelihood of apply or click for every user/job listing pair evaluated.
In some example embodiments, the predicted click interest degree may be applied to further compute a prediction of an apply interest degree. For example, some users may apply for a job that they may not be fully interested in accepting if offered, merely to gauge interest from the hiring company or to use as a bargaining tool for another job they are more interested in. The click interest degree may be used to then aid in this prediction of the apply interest degree as a user with a high click interest degree is likely to also have a high apply interest degree. Specifically, a user with a high click interest may be assigned a higher apply interest prediction score than a user with a low click interest, independent of any other factors used to predict a user's likelihood of applying.
Turning to
At operation 510, users and pieces of content are extracted from the training data. The users and pieces of content that are extracted are pairs of users and pieces of content in which the user in the pair has performed a partially positive action but not a fully positive action in the usage data on the piece of content in the pair. At operation 512, the extracted entities are passed to the neural network, to obtain an embedding for each passed entity.
At operation 514, an entity similarity score is computed for each extracted pair of user and piece of content in the extracted entities, based on their embeddings. This may be performed by computing a distance (e.g., Chebyshev distance, Euclidean distance, Manhatyte distance, Minkowski distance, Pythagorean distance, Haversine distance, etc.) between the user embedding and the piece of content embedding, in the D-dimensional space, in the pair.
A loop is then begun for each user in the extracted entities. At operation 516, embeddings for any pieces of content on which the user performed a partially positive action are aggregated. At operation 518, a function is performed on the aggregated embeddings to calculate a user activity embedding. In an example embodiment, this may comprise an average, mean, minimum, or maximum function.
At operation 520, an activity similarity score is calculated for the user and each piece of content in a pair with the user in the extracted entities, based on the user activity embedding and an embedding for the first piece of content. This activity similarity score may be computed by computing a dot product of the user activity embedding and the embedding for the corresponding piece of content. At operation 522, it is determined if there are any additional users in the extracted entities. If so, then the method 500 loops back to operation 516 for the next user. If not, then at operation 524, a user interest level for each pair in the extracted entities is calculated based on the entity similarity score for the pair and the activity similarity score for the pair. In an example embodiment, this may be performed by calculating a weighted sum of the entity similarity score and the activity similarity score.
At operation 526, the training data may be labelled using the computed user interest levels. At operation 528, the labelled training data may be fed to a second machine learning algorithm to train the second machine learned model. The second machine learned model may use features of a pair of a user and a piece of content at evaluation time along with a user interest level for the pair as computed using the first machine learned model to output a prediction of a likelihood of the user performing a positive action on the piece of content.
Note that
In various implementations, the operating system 604 manages hardware resources and provides common services. The operating system 604 includes, for example, a kernel 620, services 622, and drivers 624. The kernel 620 acts as an abstraction layer between the hardware and the other software layers, consistent with some embodiments. For example, the kernel 620 provides memory management, processor management (e.g., scheduling), component management, networking, and security settings, among other functionality. The services 622 can provide other common services for the other software layers. The drivers 624 are responsible for controlling or interfacing with the underlying hardware, according to some embodiments. For instance, the drivers 624 can include display drivers, camera drivers, BLUETOOTH® or BLUETOOTH® Low Energy drivers, flash memory drivers, serial communication drivers (e.g., Universal Serial Bus (USB) drivers), Wi-Fi® drivers, audio drivers, power management drivers, and so forth.
In some embodiments, the libraries 606 provide a low-level common infrastructure utilized by the applications 610. The libraries 606 can include system libraries 630 (e.g., C standard library) that can provide functions such as memory allocation functions, string manipulation functions, mathematic functions, and the like. In addition, the libraries 606 can include API libraries 632 such as media libraries (e.g., libraries to support presentation and manipulation of various media formats such as Moving Picture Experts Group-4 (MPEG4), Advanced Video Coding (H.264 or AVC), Moving Picture Experts Group Layer-3 (MP3), Advanced Audio Coding (AAC), Adaptive Multi-Rate (AMR) audio codec, Joint Photographic Experts Group (JPEG or JPG), or Portable Network Graphics (PNG)), graphics libraries (e.g., an OpenGL framework used to render in two dimensions (2D) and three dimensions (3D) in a graphic context on a display), database libraries (e.g., SQLite to provide various relational database functions), web libraries (e.g., WebKit to provide web browsing functionality), and the like. The libraries 606 can also include a wide variety of other libraries 634 to provide many other APIs to the applications 610.
The frameworks 608 provide a high-level common infrastructure that can be utilized by the applications 610, according to some embodiments. For example, the frameworks 608 provide various graphical user interface functions, high-level resource management, high-level location services, and so forth. The frameworks 608 can provide a broad spectrum of other APIs that can be utilized by the applications 610, some of which may be specific to a particular operating system 604 or platform.
In an example embodiment, the applications 610 include a home application 650, a contacts application 652, a browser application 654, a book reader application 656, a location application 658, a media application 660, a messaging application 662, a game application 664, and a broad assortment of other applications, such as a third-party application 666. According to some embodiments, the applications 610 are programs that execute functions defined in the programs. Various programming languages can be employed to create one or more of the applications 610, structured in a variety of manners, such as object-oriented programming languages (e.g., Objective-C, Java, or C++) or procedural programming languages (e.g., C or assembly language). In a specific example, the third-party application 666 (e.g., an application developed using the ANDROID™ or IOS™ software development kit (SDK) by an entity other than the vendor of the particular platform) may be mobile software running on a mobile operating system such as IOS™, ANDROID™, WINDOWS® Phone, or another mobile operating system. In this example, the third-party application 666 can invoke the API calls 612 provided by the operating system 604 to facilitate functionality described herein.
The machine 700 may include processors 710, memory 730, and I/O components 750, which may be configured to communicate with each other such as via a bus 702. In an example embodiment, the processors 710 (e.g., a central processing unit (CPU), a reduced instruction set computing (RISC) processor, a complex instruction set computing (CISC) processor, a graphics processing unit (GPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a radio-frequency integrated circuit (RFIC), another processor, or any suitable combination thereof) may include, for example, a processor 712 and a processor 714 that may execute the instructions 716. The term “processor” is intended to include multi-core processors 710 that may comprise two or more independent processors 712 (sometimes referred to as “cores”) that may execute instructions 716 contemporaneously. Although
The memory 730 may include a main memory 732, a static memory 734, and a storage unit 736, all accessible to the processors 710 such as via the bus 702. The main memory 732, the static memory 734, and the storage unit 736 store the instructions 716 embodying any one or more of the methodologies or functions described herein. The instructions 716 may also reside, completely or partially, within the main memory 732, within the static memory 734, within the storage unit 736, within at least one of the processors 710 (e.g., within the processor's cache memory), or any suitable combination thereof, during execution thereof by the machine 700.
The I/O components 750 may include a wide variety of components to receive input, provide output, produce output, transmit information, exchange information, capture measurements, and so on. The specific I/O components 750 that are included in a particular machine 700 will depend on the type of machine 700. For example, portable machines such as mobile phones will likely include a touch input device or other such input mechanisms, while a headless server machine will likely not include such a touch input device. It will be appreciated that the I/O components 750 may include many other components that are not shown in
In further example embodiments, the I/O components 750 may include biometric components 756, motion components 758, environmental components 760, or position components 762, among a wide array of other components. For example, the biometric components 756 may include components to detect expressions (e.g., hand expressions, facial expressions, vocal expressions, body gestures, or eye tracking), measure biosignals (e.g., blood pressure, heart rate, body temperature, perspiration, or brain waves), identify a person (e.g., voice identification, retinal identification, facial identification, fingerprint identification, or electroencephalogram-based identification), and the like. The motion components 758 may include acceleration sensor components (e.g., accelerometer), gravitation sensor components, rotation sensor components (e.g., gyroscope), and so forth. The environmental components 760 may include, for example, illumination sensor components (e.g., photometer), temperature sensor components (e.g., one or more thermometers that detect ambient temperature), humidity sensor components, pressure sensor components (e.g., barometer), acoustic sensor components (e.g., one or more microphones that detect background noise), proximity sensor components (e.g., infrared sensors that detect nearby objects), gas sensors (e.g., gas detection sensors to detect concentrations of hazardous gases for safety or to measure pollutants in the atmosphere), or other components that may provide indications, measurements, or signals corresponding to a surrounding physical environment. The position components 762 may include location sensor components (e.g., a Global Positioning System (GPS) receiver component), altitude sensor components (e.g., altimeters or barometers that detect air pressure from which altitude may be derived), orientation sensor components (e.g., magnetometers), and the like.
Communication may be implemented using a wide variety of technologies. The I/O components 750 may include communication components 764 operable to couple the machine 700 to a network 780 or devices 770 via a coupling 782 and a coupling 772, respectively. For example, the communication components 764 may include a network interface component or another suitable device to interface with the network 780. In further examples, the communication components 764 may include wired communication components, wireless communication components, cellular communication components, near field communication (NFC) components, Bluetooth® components (e.g., Bluetooth® Low Energy), Wi-Fi® components, and other communication components to provide communication via other modalities. The devices 770 may be another machine or any of a wide variety of peripheral devices (e.g., a peripheral device coupled via a USB).
Moreover, the communication components 764 may detect identifiers or include components operable to detect identifiers. For example, the communication components 764 may include radio frequency identification (RFID) tag reader components, NFC smart tag detection components, optical reader components (e.g., an optical sensor to detect one-dimensional bar codes such as Universal Product Code (UPC) bar code, multi-dimensional bar codes such as Quick Response (QR) code, Aztec code, Data Matrix, Dataglyph, MaxiCode, PDF417, Ultra Code, UCC RSS-2D bar code, and other optical codes), or acoustic detection components (e.g., microphones to identify tagged audio signals). In addition, a variety of information may be derived via the communication components 764, such as location via Internet Protocol (IP) geolocation, location via Wi-Fi® signal triangulation, location via detecting an NFC beacon signal that may indicate a particular location, and so forth.
The various memories (i.e., 730, 732, 734, and/or memory of the processor(s) 710) and/or the storage unit 736 may store one or more sets of instructions 716 and data structures (e.g., software) embodying or utilized by any one or more of the methodologies or functions described herein. These instructions (e.g., the instructions 716), when executed by the processor(s) 710, cause various operations to implement the disclosed embodiments.
As used herein, the terms “machine-storage medium,” “device-storage medium,” and “computer-storage medium” mean the same thing and may be used interchangeably. The terms refer to a single or multiple storage devices and/or media (e.g., a centralized or distributed database, and/or associated caches and servers) that store executable instructions 716 and/or data. The terms shall accordingly be taken to include, but not be limited to, solid-state memories, and optical and magnetic media, including memory internal or external to the processors 710. Specific examples of machine-storage media, computer-storage media, and/or device-storage media include non-volatile memory including, by way of example, semiconductor memory devices, e.g., erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), field-programmable gate array (FPGA), and flash memory devices; magnetic disks such as internal hard disks and removable disks; magneto-optical disks; and CD-ROM and DVD-ROM disks. The terms “machine-storage media,” “computer-storage media,” and “device-storage media” specifically exclude carrier waves, modulated data signals, and other such media, at least some of which are covered under the term “signal medium” discussed below.
In various example embodiments, one or more portions of the network 780 may be an ad hoc network, an intranet, an extranet, a VPN, a LAN, a WLAN, a WAN, a WWAN, a MAN, the Internet, a portion of the Internet, a portion of the PSTN, a plain old telephone service (POTS) network, a cellular telephone network, a wireless network, a Wi-Fi® network, another type of network, or a combination of two or more such networks. For example, the network 780 or a portion of the network 780 may include a wireless or cellular network, and the coupling 782 may be a Code Division Multiple Access (CDMA) connection, a Global System for Mobile communications (GSM) connection, or another type of cellular or wireless coupling. In this example, the coupling 782 may implement any of a variety of types of data transfer technology, such as Single Carrier Radio Transmission Technology (1×RTT), Evolution-Data Optimized (EVDO) technology, General Packet Radio Service (GPRS) technology, Enhanced Data rates for GSM Evolution (EDGE) technology, third Generation Partnership Project (3GPP) including 3G, fourth generation wireless (4G) networks, Universal Mobile Telecommunications System (UMTS), High-Speed Packet Access (HSPA), Worldwide Interoperability for Microwave Access (WiMAX), Long-Term Evolution (LTE) standard, others defined by various standard-setting organizations, other long-range protocols, or other data-transfer technology.
The instructions 716 may be transmitted or received over the network 780 using a transmission medium via a network interface device (e.g., a network interface component included in the communication components 764) and utilizing any one of a number of well-known transfer protocols (e.g., HTTP). Similarly, the instructions 716 may be transmitted or received using a transmission medium via the coupling 772 (e.g., a peer-to-peer coupling) to the devices 770. The terms “transmission medium” and “signal medium” mean the same thing and may be used interchangeably in this disclosure. The terms “transmission medium” and “signal medium” shall be taken to include any intangible medium that is capable of storing, encoding, or carrying the instructions 716 for execution by the machine 700, and include digital or analog communications signals or other intangible media to facilitate communication of such software. Hence, the terms “transmission medium” and “signal medium” shall be taken to include any form of modulated data signal, carrier wave, and so forth. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal.
The terms “machine-readable medium,” “computer-readable medium,” and “device-readable medium” mean the same thing and may be used interchangeably in this disclosure. The terms are defined to include both machine-storage media and transmission media. Thus, the terms include both storage devices/media and carrier waves/modulated data signals.