WO2019217451A1 - Generating a customized machine-learning model to perform tasks using artificial intelligence - Google Patents
Generating a customized machine-learning model to perform tasks using artificial intelligence Download PDFInfo
- Publication number
- WO2019217451A1 WO2019217451A1 PCT/US2019/031160 US2019031160W WO2019217451A1 WO 2019217451 A1 WO2019217451 A1 WO 2019217451A1 US 2019031160 W US2019031160 W US 2019031160W WO 2019217451 A1 WO2019217451 A1 WO 2019217451A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- user
- model
- options
- task
- models
- Prior art date
Links
- 238000013473 artificial intelligence Methods 0.000 title claims abstract description 150
- 238000010801 machine learning Methods 0.000 title claims description 8
- 238000000034 method Methods 0.000 claims abstract description 27
- 230000015654 memory Effects 0.000 claims description 54
- 238000003860 storage Methods 0.000 claims description 36
- 230000006870 function Effects 0.000 claims description 35
- 238000001514 detection method Methods 0.000 claims description 19
- 238000012549 training Methods 0.000 claims description 13
- 230000009471 action Effects 0.000 claims description 4
- 230000011218 segmentation Effects 0.000 claims description 3
- 230000010354 integration Effects 0.000 claims description 2
- 238000004891 communication Methods 0.000 description 16
- 238000005516 engineering process Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 5
- 230000001413 cellular effect Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 3
- 230000003190 augmentative effect Effects 0.000 description 2
- 238000013475 authorization Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000013519 translation Methods 0.000 description 2
- 240000001436 Antirrhinum majus Species 0.000 description 1
- 244000169641 Spondias dulcis Species 0.000 description 1
- 235000005138 Spondias dulcis Nutrition 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 239000011230 binding agent Substances 0.000 description 1
- 230000000903 blocking effect Effects 0.000 description 1
- 239000000872 buffer Substances 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000013136 deep learning model Methods 0.000 description 1
- 230000008909 emotion recognition Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003062 neural network model Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000002123 temporal effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N20/00—Machine learning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N5/00—Computing arrangements using knowledge-based models
- G06N5/04—Inference or reasoning models
- G06N5/043—Distributed expert systems; Blackboards
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/10—Requirements analysis; Specification techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3409—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
- G06F11/3428—Benchmarking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3447—Performance evaluation by modeling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/35—Creation or generation of source code model driven
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/36—Software reuse
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/61—Control of cameras or camera modules based on recognised objects
- H04N23/611—Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/617—Upgrading or updating of programs or applications for camera control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/62—Control of parameters via user interfaces
Definitions
- This disclosure generally relates to creation and management of artificial intelligence (AI) models, and more particularly to systems and methods for enabling users to incorporate AI technology into their applications and devices via custom AI models.
- AI artificial intelligence
- AI Artificial intelligence
- computing devices/machines make it possible for computing devices/machines to learn from experience, adjust to new inputs, and perform human-like tasks, such as for example, chess-playing computers, self-driving cars, object detection, image tagging, speech-to-text recognition, scene recognition, etc.
- the AI technology relies heavily on deep learning and neural network models.
- computers can be trained to accomplish specific tasks by processing large amounts of data and recognizing patterns in the data. This processing of the large amounts of data may be achievable by the equivalent of supercomputers. Because of this, it is quite challenging to apply AI in small or low-computing devices, such as smartphones, tablets, embedded sensors, cameras, smartwatches, etc.
- a computing system such as a model-management system may enable users (e.g., developers) to easily integrate artificial intelligence (AI) into their applications (e.g., software).
- the model-management system may provide a user-friendly interface (see FIG. 1) using which a user may provide their specifications.
- the user specifications may include, for example, selection of an AI task (e.g., object detection, scene recognition, image tagging, etc.) that they are looking to integrate into their application, device(s) on which they want to deploy the AI task, and one or more performance constraints (e.g., memory, latency, power, etc.) specific to the selected devices.
- an AI task e.g., object detection, scene recognition, image tagging, etc.
- performance constraints e.g., memory, latency, power, etc.
- the model-management system may generate a custom AI model, which is integrable into the user application and operable on user specified devices.
- the model- management system may generate the custom AI model by retrieving a raw or a high-level model from a database containing a plurality of AI models.
- the high-level model may be compiled to generate a model binary.
- the model binary may be created by removing unnecessary components from the retrieved model and adding one or more components as per the user specifications.
- the model- management system may bind one or more interface functions with the model binary.
- the one or more interface functions may be functions associated with the AI task selected by the user. For example, if the task is image tagging, then an interface function is a set of tags contained with an image.
- the model-management system may convert the model binary into a device-level model configured to operate on device(s) selected by the user.
- the device-level model may be configured for an iPhone as specified by the user at query time.
- the device-level model may finally be provided to the user in the form of a downloadable link, which the user can download to integrate the desired AI functionality into their application.
- any subject matter resulting from a deliberate reference back to any previous claims can be claimed as well, so that any combination of claims and the features thereof are disclosed and can be claimed regardless of the dependencies chosen in the attached claims.
- the subject-matter which can be claimed comprises not only the combinations of features as set out in the attached claims but also any other combination of features in the claims, wherein each feature mentioned in the claims can be combined with any other feature or combination of other features in the claims.
- any of the embodiments and features described or depicted herein can be claimed in a separate claim and/or in any combination with any embodiment or feature described or depicted herein or with any of the features of the attached claims.
- a method for generating a customized machine-learning model to perform tasks using artificial intelligence may comprise, by one or more computing systems: providing, to a client system of a user, a user interface for display, the user interface comprising a first set of options for selecting an AI task for integration into a user application, a second set of options for selecting one or more devices on which the user wants to deploy the selected AI task, and a third set of options for selecting one or more performance constraints specific to the selected devices; receiving, from the client system of the user, user specifications based on user selections in the first set of options, the second set of options, and the third set of options; generating a custom AI model based on the user specifications; and sending, to the client system of the user, the custom AI model for integrating into the user application, wherein the custom AI model once integrated enables the user application to perform the selected AI task on the selected devices.
- generating the custom AI model based on the user specifications comprises: retrieving a high-level model from a database comprising a plurality of AI models, wherein the plurality of AI models was generated and stored in the database based on prior user specifications; compiling the high-level model based on the user specifications to generate a model binary; binding one or more interface functions with the model binary, wherein the one or more interface functions are functions associated with the selected AI task; and converting the model binary into a device-level model that is configured to operate on the devices selected by the user.
- sending the custom AI model comprises sending, to the client system of the user, a downloadable link to download the device-level model into the client system, wherein the device-level model once downloaded integrates one or more functionalities associated with the selected AI task into the user application.
- compiling the high-level model comprises removing unnecessary components from the high-level model and adding one or more components as per the user specifications.
- training the plurality of AI models comprises: improving the performance of the AI models; adding one or more features to the AI models; or creating a new AI model and storing the new AI model in the database.
- the benchmark data comprises user performance feedback on the custom AI model, the user performance feedback indicating how well the custom AI model served the user needs in terms of speed, memory, and power usage.
- the AI task comprises one or more of object detection, scene recognition, image tagging, image enhancement, object segmentation, action recognition, speech recognition, or text recognition.
- the devices comprise one or more of smartphones, tablets, wearable devices, embedded sensors, cameras, or drones.
- the one or more performance constraints comprise: a memory constraint; a latency constraint; or a power constraint.
- the memory constraint enables the user to specify amount of memory to be used for the selected AI task.
- the latency constraint enables the user to specify a refresh rate or frames per second (FPS) at which the user wants the selected AI task to run on the selected devices.
- FPS frames per second
- the power constraint enables the user to specify amount of power to be utilized by the selected AI task.
- each of the first set of options, the second set of options, or the third set of options comprises sub-options for enabling a granular level of user selection.
- one or more computer-readable non-transitory storage media embody software for generating a customized AI machine-learning model to perform tasks using artificial intelligence, the software comprising instructions operable when executed to: provide, to a client system of a user, a user interface for display, the user interface comprising a first set of options for selecting an artificial intelligence (AI) task for integrating into a user application, a second set of options for selecting one or more devices on which the user wants to deploy the selected AI task, and a third set of options for selecting one or more performance constraints specific to the selected devices; receive, from the client system of the user, user specifications based on user selections in the first set of options, the second set of options, and the third set of options; generate a custom AI model based on the user specifications; and send, to the client system of the user, the custom AI model
- generating the custom AI model based on the user specifications comprises: retrieving a high- level model from a database comprising a plurality of AI models, wherein the plurality of AI models was generated and stored in the database based on prior user specifications; compiling the high-level model based on the user specifications to generate a model binary; binding one or more interface functions with the model binary, wherein the one or more interface functions are functions associated with the selected AI task; and converting the model binary into a device level model that is configured to operate on the devices selected by the user.
- sending the custom AI model comprises sending, to the client system of the user, a downloadable link to download the device-level model into the client system, wherein the device-level model once downloaded integrates one or more functionalities associated with the selected AI task into the user application.
- compiling the high-level model comprises removing unnecessary components from the high- level model and adding one or more components as per the user specifications.
- a system for generating a customized AI machine-learning model to perform tasks using artificial intelligence comprising: one or more processors; and a non-transitory memory coupled to the processors comprising instructions executable by the processors, the processors operable when executing the instructions to: provide, to a client system of a user, a user interface for display, the user interface comprising a first set of options for selecting an artificial intelligence (AI) task for integrating into a user application, a second set of options for selecting one or more devices on which the user wants to deploy the selected AI task, and a third set of options for selecting one or more performance constraints specific to the selected devices; receive, from the client system of the user, user specifications based on user selections in the first set of options, the second set of options, and the third set of options; generate a custom AI model based on the user specifications; and send, to the client system of the user, the custom AI model for integrating into the user application, wherein the custom AI model once integrated enables the user application to
- FIG. 1 illustrates an example interface for defining user specifications.
- FIG. 2A illustrates various components of a model-management system and their associated functionalities for dispatching an appropriate AI model as per user specifications.
- FIG. 2B illustrates additional components of the model-management system and their associated functionalities for training a pool of AI models.
- FIG. 3 illustrates an example AI task performed on a mobile device of an end user based on the user specifications defined in the interface of FIG. 1.
- FIG. 4 illustrates an example network environment associated with a model- management system.
- FIG. 5 illustrates an example computer system.
- a computing system such as a model-management system 200 may enable users (e.g., developers) to easily integrate artificial intelligence (AI) into their applications (e.g., software).
- the model-management system 200 may provide a user- friendly interface (see FIG. 1) using which a user may provide their specifications.
- the user specifications may include, for example, selection of an AI task (e.g., object detection, scene recognition, image tagging, etc.) that they are looking to integrate into their application, device(s) on which they want to deploy the AI task, and one or more performance constraints (e.g., memory, latency, power, etc.) specific to the selected devices.
- an AI task e.g., object detection, scene recognition, image tagging, etc.
- performance constraints e.g., memory, latency, power, etc.
- the model-management system 200 may generate a custom AI model, which is integrable into the user application and operable on user specified devices.
- the model- management system 200 may generate the custom AI model by retrieving a raw or a high-level model from a database containing a plurality of AI models.
- the high-level model may be compiled to generate a model binary.
- the model binary may be created by removing unnecessary components from the retrieved model and adding one or more components as per the user specifications.
- the model-management system 200 may bind one or more interface functions with the model binary.
- the one or more interface functions may be functions associated with the AI task selected by the user. For example, if the task is image tagging, then an interface function is a set of tags contained with an image.
- the model-management system 200 may convert the model binary into a device-level model configured to operate on device(s) selected by the user.
- the device-level model may be configured for an iPhone as specified by the user at query time.
- the device-level model may finally be provided to the user in the form of a downloadable link, which the user can download to integrate the desired AI functionality into their application.
- FIG. 1 illustrates an example interface 100 for defining user specifications.
- the interface 100 may be presented within a web browser. For instance, the user may go to a website where they are presented with the user interface 100 within their web browser.
- the user interface 100 may offer a variety of menus 102-110, options within these menus, and sub-options or categories 112-114, which the user may select in order to achieve the desired AI functionality for their application.
- the user interface shown here is for exemplary purposes and is not by any means limited to the menus, options, and sub-options illustrated herein. A variety of other menus, options, and sub-options are possible and within the scope of the present disclosure.
- the interface 100 may include a task menu 102, a device-type menu 104, and constraint menus 106-110.
- the task menu 102 may include a variety of AI tasks from which the user may select a desired task to incorporate into their application.
- the tasks may include scene recognition, image tagging, object detection, object tracking, object segmentation, human pose estimation, image enhancement, action recognition, human emotion recognition, speech recognition, text recognition, natural language understanding, and/or any sort of data processing tasks.
- one or more categories 112 may be included within one or more of these tasks.
- the one or more categories within a task may include specific objects or items of interest that a user may want to particularly focus on.
- categories within the object detection task may include person, tree, automobile, bicycle, dog, building, etc.
- categories within the scene recognition task may include beach, snowy mountains, flowers, buildings, autumn leaves, waterfall, night scene, etc.
- categories within the image enhancement task may include denoising, super-resolution, etc.
- the device-type menu 104 may include different types of user devices on which a given task (e.g., task selected from task menu 102) may be deployed.
- the user devices may include smartphones (e.g., various iPhone and Android models), tablets (e.g., Apple iPads, Amazon Kindle, etc.), smartwatches (e.g., Apple Watch, Samsung Gear, etc.), ARM-based platforms (e.g., Raspberry Pi, NanoPi, etc.), embedded sensors, cameras, intel-based platforms, drones, snapdragon based platforms, NVIDIA-based platforms (e.g., various GPUs), X-86 families, ambarella platforms, etc.
- smartphones e.g., various iPhone and Android models
- tablets e.g., Apple iPads, Amazon Kindle, etc.
- smartwatches e.g., Apple Watch, Samsung Gear, etc.
- ARM-based platforms e.g., Raspberry Pi, NanoPi, etc.
- embedded sensors cameras
- intel-based platforms drones
- the user may select a device on which they want the chosen task to be deployed.
- the user may select one or more devices targeted specific to their application.
- the user may be developing an object-detection application specific to iPhone users and therefore, the user may select particular iPhone model(s) from the device-type menu 104.
- the constraint menus 106-110 may include a memory-constraint menu 106, a latency-constraint menu 108, and a power-constraint menu 110.
- the memory-constraint menu 106 may enable the user to specify amount of memory to be used for their selected task. For example, as shown in the figure, the user may choose to allocate 100 MB memory for the object detection task.
- the latency-constraint menu 108 may enable the user to specify a refresh rate or frames per second (FPS) at which they want their task to run. For example, as shown in the figure, the user may choose to run the object detection task at 10 FPS.
- the power-constraint menu 110 may enable the user to specify amount of power to be utilized by their selected task.
- FIG. 2A illustrates various components of a model-management system 200 and their associated functionalities for dispatching an appropriate AI model as per user specifications.
- the user specifications may be sent to a query generator server 202.
- the query generator server 202 receives the user specifications and generates a query 204, which may be used to retrieve one or more raw models 208 (or device-level models) from a database 206.
- the device-level models may be defined in certain programming languages. For example, a device-level model may be defined in Python language.
- the database 206 may include a plurality of AI models that may be defined and stored based on previous user specifications.
- the previous user specifications may or may not be related to the current user specification.
- a previous user specification may be relating to an image tagging task for an application targeted to operate on Android phones and the model-management system 200 generated a model as per this specification and stored the model in the database 206 for future access and/or retrieval. Storing previous models or having this database of models is advantageous as it may avoid creating a model from scratch and existing model(s) may be reused and tweaked to match the current user specifications.
- the raw or high-level model 208 retrieved from the database 206 may be processed by a model compiler 210 to make it appropriate as per the current user specification.
- the model compiler 210 may compile the model to remove out any unnecessary modules/components and add any required components to match the user specification.
- the raw model may be previously generated based on a user specification such as, task: object detection, device type: Android, memory constraint: 1 GB, latency constraint: 100 FPS, power constraint: 1 JPI, and some additional constraints.
- the model compiler 210 may compile this raw model to remove out the additional constraints and change the device type to iPhones and memory constraint to 100 MB to make the model appropriate for the current user specification.
- the output of the model compiler 210 is a compact model package or model binary 212.
- compiling the raw model basically converts the high-level or raw model into a model binary, which may also include the user query, as shown in FIG. 2A.
- An interface binder 214 may bind the compact model/model binary with one or more interface functions.
- An interface function may be a function that an actual user will use in the application or software once the model is deployed into the application. For example, for performing the task of image tagging, the interface function may process the input images and the output of this function will be a bunch of tags within the images.
- a final software binary (combination of the model binary and the interface function(s)) may be sent to a dispatcher 218, which creates a link 220 for the user to download the final software binary 216 on their device (e.g., client system 430).
- the user may incorporate the received binary into their application, which can then be finally released for use by end users.
- An end user may use the developer’s software to perform AI functions.
- the developer may have developed an object-detection application, for iPhone users, that may utilize 100 MB of memory and 1 JPI of power, and may run at 10 FPS (e.g., as shown in FIG. 1).
- the end user may use this object-detection application on their iPhone to detect one or more objects in their surrounding environment.
- the application may be used on an iPhone 6 model to detect persons in front of the end user.
- an automatic -benchmarking component built into the model may automatically evaluate the performance of the model based on, for example, how well the provided model is serving the user needs and the various performance constraints (e.g., how much is the memory and power usage, speed, etc.) associated with the model.
- the automatic -benchmarking component may report the benchmarked data to the model- management system 200, which may store it in the database 206 of AI models and use it for training the models.
- the training of models may also be performed based on feedback provided by a user at query time, as discussed in further detail below.
- FIG. 2B illustrates additional components of the model-management system 200 and their associated functionalities for training a pool of AI models.
- Training of models may include improving the performance of the existing models, adding one or more new features to existing models, and/or creating a new model.
- a user may provide training data at query time or in other words, when the user is defining their specifications using the interface 100.
- training data may include a request from the user to perform object detection for objects that may not be currently included in the interface 100 but the user may have data corresponding to those objects. The user may then provide their data along with their desired specification to the model-management system 200, which may use this data to refine their existing models relating to object detection to include the new categories of objects provided by the user.
- the user may provide their performance feedback for a model (e.g., how well a previous model served their needs in terms of speed, memory and power usage) at query time, and the model-management system 200 may use this performance feedback to train the pool of AI models on server (indicated by reference numeral 222).
- a model e.g., how well a previous model served their needs in terms of speed, memory and power usage
- the model-management system 200 may use this performance feedback to train the pool of AI models on server (indicated by reference numeral 222).
- Other possible ways of training the models are also possible and within the scope of the present disclosure.
- the trained AI models 224 may be sent to a ranker 226 for ranking.
- the ranker 226 may rank the models based on various factors. The factors may include, for example, performance metrics associated with each of the models, benchmark data, user feedback on the models, etc.
- top models 228 may be determined. For example, top five ranked models may be chosen and sent to a model converter 230 for devices.
- the model converter 230 may convert the top ranked models into device-level models 232 as discussed above.
- Automatic benchmarking (indicated by reference numeral 234) may be performed for these models in terms of speed, memory, and power constraints, and finally these device-level models along with benchmarked data may be stored in the database 206 of AI models for future access and/or retrieval.
- the steps 222-234 illustrated in FIG. 2B may be performed asynchronously with the steps illustrated in FIG. 2A.
- FIG. 3 illustrates an example AI task performed on a mobile device of an end user based on the user specifications defined in the interface of FIG. 1.
- the user e.g., developer
- object detection e.g., person detection 112
- the developer may also define that their application with the object detection functionality may utilize 100 MB of memory and 1 JPI of power and may run at 10 FPS.
- end users e.g., consumers
- an end user/consumer having the developer’s application installed on their iPhone may use the application to detect persons in front of them or their surrounding environment simply by holding the phone in a particular direction.
- This is advantageous for an end user/consumer as the consumer does not need any special or a high-powered computing device and can be able to use AI functionality on their existing devices.
- this is advantageous for a developer as the developer can easily integrate AI functionality into their applications (e.g., software) just by selecting desired options using the interface 100.
- FIG. 4 illustrates an example network environment 400 associated with a model- management system.
- Network environment 400 includes a user 401, a client system 430, a model-management system 460, and a third-party system 470 connected to each other by a network 410.
- FIG. 4 illustrates a particular arrangement of user 401, client system 430, model-management system 460, third-party system 470, and network 410, this disclosure contemplates any suitable arrangement of user 401, client system 430, model-management system 460, third-party system 470, and network 410.
- two or more of client system 430, model-management system 460, and third-party system 470 may be connected to each other directly, bypassing network 410.
- client system 430 may be physically or logically co-located with each other in whole or in part.
- FIG. 4 illustrates a particular number of users 401, client systems 430, model-management systems 460, third-party systems 470, and networks 410, this disclosure contemplates any suitable number of users 401, client systems 430, model-management systems 460, third-party systems 470, and networks 410.
- network environment 400 may include multiple users 401, client system 430, model- management systems 460, third-party systems 470, and networks 410.
- user 401 may be an individual (human user) such as an application/software developer, an entity (e.g., an enterprise, business, or third-party application), or a group (e.g., of individuals or entities) that interacts or communicates with or over model-management system 460.
- model-management system 460 may be a network-addressable computing system for managing (e.g., creating, updating, training, etc.) a plurality of AI models. Model-management system 460 may be accessed by the other components of network environment 400 either directly or via network 410.
- model-management system 460 may include an authorization server (or other suitable component(s)) that allows users 401 to opt in to or opt out of having their actions logged by model-management system 460 or shared with other systems (e.g., third-party systems 470), for example, by setting appropriate privacy settings.
- a privacy setting of a user may determine what information associated with the user may be logged, how information associated with the user may be logged, when information associated with the user may be logged, who may log information associated with the user, whom information associated with the user may be shared with, and for what purposes information associated with the user may be logged or shared.
- Authorization servers may be used to enforce one or more privacy settings of the users of model- management system 460 through blocking, data hashing, anonymization, or other suitable techniques as appropriate.
- Third-party system 470 may be accessed by the other components of network environment 400 either directly or via network 410.
- one or more users 401 may use one or more client systems 430 to access, send data to, and receive data from model-management system 460 or third-party system 470.
- Client system 430 may access model-management system 460 or third-party system 470 directly, via network 410, or via a third-party system.
- client system 430 may access third-party system 470 via model-management system 460.
- Client system 430 may be any suitable computing device, such as, for example, a personal computer, a laptop computer, a cellular telephone, a smartphone, a tablet computer, or an augmented/virtual reality device.
- network 410 may include any suitable network 410.
- one or more portions of network 410 may include an ad hoc network, an intranet, an extranet, a virtual private network (VPN), a local area network (LAN), a wireless LAN (WLAN), a wide area network (WAN), a wireless WAN (WWAN), a metropolitan area network (MAN), a portion of the Internet, a portion of the Public Switched Telephone Network (PSTN), a cellular telephone network, or a combination of two or more of these.
- Network 410 may include one or more networks 410.
- Links 450 may connect client system 430, model-management system 460, and third-party system 470 to communication network 410 or to each other.
- This disclosure contemplates any suitable links 450.
- one or more links 450 include one or more wireline (such as for example Digital Subscriber Line (DSL) or Data Over Cable Service Interface Specification (DOCSIS)), wireless (such as for example Wi-Fi or Worldwide Interoperability for Microwave Access (WiMAX)), or optical (such as for example Synchronous Optical Network (SONET) or Synchronous Digital Hierarchy (SDH)) links.
- wireline such as for example Digital Subscriber Line (DSL) or Data Over Cable Service Interface Specification (DOCSIS)
- wireless such as for example Wi-Fi or Worldwide Interoperability for Microwave Access (WiMAX)
- optical such as for example Synchronous Optical Network (SONET) or Synchronous Digital Hierarchy (SDH) links.
- SONET Synchronous Optical Network
- SDH Synchronous Digital Hierarchy
- one or more links 450 each include an ad hoc network, an intranet, an extranet, a VPN, a LAN, a WLAN, a WAN, a WWAN, a MAN, a portion of the Internet, a portion of the PSTN, a cellular technology-based network, a satellite communications technology-based network, another link 450, or a combination of two or more such links 450.
- Links 450 need not necessarily be the same throughout network environment 400.
- One or more first links 450 may differ in one or more respects from one or more second links 450.
- FIG. 5 illustrates an example computer system 500.
- one or more computer systems 500 perform one or more steps of one or more methods described or illustrated in reference to at- least FIGS. 2A and 2B.
- one or more computer systems 500 provide functionality described or illustrated herein.
- software running on one or more computer systems 500 performs one or more steps of one or more methods described or illustrated herein or provides functionality described or illustrated herein.
- Particular embodiments include one or more portions of one or more computer systems 500.
- reference to a computer system may encompass a computing device, and vice versa, where appropriate.
- reference to a computer system may encompass one or more computer systems, where appropriate.
- computer system 500 may be an embedded computer system, a system- on-chip (SOC), a single-board computer system (SBC) (such as, for example, a computer-on- module (COM) or system-on-module (SOM)), a desktop computer system, a laptop or notebook computer system, an interactive kiosk, a mainframe, a mesh of computer systems, a mobile telephone, a personal digital assistant (PDA), a server, a tablet computer system, an augmented/virtual reality device, or a combination of two or more of these.
- SOC system- on-chip
- SBC single-board computer system
- COM computer-on- module
- SOM system-on-module
- computer system 500 may include one or more computer systems 500; be unitary or distributed; span multiple locations; span multiple machines; span multiple data centers; or reside in a cloud, which may include one or more cloud components in one or more networks.
- one or more computer systems 500 may perform without substantial spatial or temporal limitation one or more steps of one or more methods described or illustrated herein.
- one or more computer systems 500 may perform in real time or in batch mode one or more steps of one or more methods described or illustrated herein.
- One or more computer systems 500 may perform at different times or at different locations one or more steps of one or more methods described or illustrated herein, where appropriate.
- computer system 500 includes a processor 502, memory 504, storage 506, an input/output (I/O) interface 508, a communication interface 510, and a bus 512.
- I/O input/output
- this disclosure describes and illustrates a particular computer system having a particular number of particular components in a particular arrangement, this disclosure contemplates any suitable computer system having any suitable number of any suitable components in any suitable arrangement.
- processor 502 includes hardware for executing instructions, such as those making up a computer program.
- processor 502 may retrieve (or fetch) the instructions from an internal register, an internal cache, memory 504, or storage 506; decode and execute them; and then write one or more results to an internal register, an internal cache, memory 504, or storage 506.
- processor 502 may include one or more internal caches for data, instructions, or addresses. This disclosure contemplates processor 502 including any suitable number of any suitable internal caches, where appropriate.
- processor 502 may include one or more instruction caches, one or more data caches, and one or more translation lookaside buffers (TLBs).
- TLBs translation lookaside buffers
- Instructions in the instruction caches may be copies of instructions in memory 504 or storage 506, and the instruction caches may speed up retrieval of those instructions by processor 502.
- Data in the data caches may be copies of data in memory 504 or storage 506 for instructions executing at processor 502 to operate on; the results of previous instructions executed at processor 502 for access by subsequent instructions executing at processor 502 or for writing to memory 504 or storage 506; or other suitable data.
- the data caches may speed up read or write operations by processor 502.
- the TLBs may speed up virtual-address translation for processor 502.
- processor 502 may include one or more internal registers for data, instructions, or addresses. This disclosure contemplates processor 502 including any suitable number of any suitable internal registers, where appropriate. Where appropriate, processor 502 may include one or more arithmetic logic units (ALUs); be a multi-core processor; or include one or more processors 502. Although this disclosure describes and illustrates a particular processor, this disclosure contemplates any suitable processor.
- ALUs
- memory 504 includes main memory for storing instructions for processor 502 to execute or data for processor 502 to operate on.
- computer system 500 may load instructions from storage 506 or another source (such as, for example, another computer system 500) to memory 504.
- Processor 502 may then load the instructions from memory 504 to an internal register or internal cache.
- processor 502 may retrieve the instructions from the internal register or internal cache and decode them.
- processor 502 may write one or more results (which may be intermediate or final results) to the internal register or internal cache.
- Processor 502 may then write one or more of those results to memory 504.
- processor 502 executes only instructions in one or more internal registers or internal caches or in memory 504 (as opposed to storage 506 or elsewhere) and operates only on data in one or more internal registers or internal caches or in memory 504 (as opposed to storage 506 or elsewhere).
- One or more memory buses (which may each include an address bus and a data bus) may couple processor 502 to memory 504.
- Bus 512 may include one or more memory buses, as described below.
- one or more memory management units (MMUs) reside between processor 502 and memory 504 and facilitate accesses to memory 504 requested by processor 502.
- memory 504 includes random access memory (RAM). This RAM may be volatile memory, where appropriate.
- this RAM may be dynamic RAM (DRAM) or static RAM (SRAM). Moreover, where appropriate, this RAM may be single-ported or multi-ported RAM. This disclosure contemplates any suitable RAM.
- Memory 504 may include one or more memories 504, where appropriate. Although this disclosure describes and illustrates particular memory, this disclosure contemplates any suitable memory.
- storage 506 includes mass storage for data or instructions.
- storage 506 may include a hard disk drive (HDD), a floppy disk drive, flash memory, an optical disc, a magneto-optical disc, magnetic tape, or a Universal Serial Bus (USB) drive or a combination of two or more of these.
- Storage 506 may include removable or non-removable (or fixed) media, where appropriate.
- Storage 506 may be internal or external to computer system 500, where appropriate.
- storage 506 is non-volatile, solid-state memory.
- storage 506 includes read-only memory (ROM).
- this ROM may be mask- programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), electrically alterable ROM (EAROM), or flash memory or a combination of two or more of these.
- This disclosure contemplates mass storage 506 taking any suitable physical form.
- Storage 506 may include one or more storage control units facilitating communication between processor 502 and storage 506, where appropriate.
- storage 506 may include one or more storages 506. Although this disclosure describes and illustrates particular storage, this disclosure contemplates any suitable storage.
- I/O interface 508 includes hardware, software, or both, providing one or more interfaces for communication between computer system 500 and one or more I/O devices.
- Computer system 500 may include one or more of these I/O devices, where appropriate.
- One or more of these I/O devices may enable communication between a person and computer system 500.
- an I/O device may include a keyboard, keypad, microphone, monitor, mouse, printer, scanner, speaker, still camera, stylus, tablet, touch screen, trackball, video camera, another suitable I/O device or a combination of two or more of these.
- An I/O device may include one or more sensors. This disclosure contemplates any suitable I/O devices and any suitable I/O interfaces 508 for them.
- I/O interface 508 may include one or more device or software drivers enabling processor 502 to drive one or more of these I/O devices.
- I/O interface 508 may include one or more I/O interfaces 508, where appropriate. Although this disclosure describes and illustrates a particular I/O interface, this disclosure contemplates any suitable I/O interface.
- communication interface 510 includes hardware, software, or both providing one or more interfaces for communication (such as, for example, packet-based communication) between computer system 500 and one or more other computer systems 500 or one or more networks.
- communication interface 510 may include a network interface controller (NIC) or network adapter for communicating with an Ethernet or other wire-based network or a wireless NIC (WNIC) or wireless adapter for communicating with a wireless network, such as a WI-FI network.
- NIC network interface controller
- WNIC wireless NIC
- WI-FI network wireless network
- computer system 500 may communicate with an ad hoc network, a personal area network (PAN), a local area network (LAN), a wide area network (WAN), a metropolitan area network (MAN), or one or more portions of the Internet or a combination of two or more of these.
- PAN personal area network
- LAN local area network
- WAN wide area network
- MAN metropolitan area network
- computer system 500 may communicate with a wireless PAN (WPAN) (such as, for example, a BLUETOOTH WPAN), a WI-FI network, a WI-MAX network, a cellular telephone network (such as, for example, a Global System for Mobile Communications (GSM) network), or other suitable wireless network or a combination of two or more of these.
- WPAN wireless PAN
- WI-FI wireless personal area network
- WI-MAX wireless personal area network
- WI-MAX wireless personal area network
- cellular telephone network such as, for example, a Global System for Mobile Communications (GSM) network
- GSM Global System
- bus 512 includes hardware, software, or both coupling components of computer system 500 to each other.
- bus 512 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a front-side bus (FSB), a HYPERTRANSPORT (HT) interconnect, an Industry Standard Architecture (ISA) bus, an INFINIBAND interconnect, a low-pin-count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCIe) bus, a serial advanced technology attachment (SATA) bus, a Video Electronics Standards Association local (VLB) bus, or another suitable bus or a combination of two or more of these.
- Bus 512 may include one or more buses 512, where appropriate.
- a computer-readable non-transitory storage medium or media may include one or more semiconductor-based or other integrated circuits (ICs) (such, as for example, field- programmable gate arrays (FPGAs) or application-specific ICs (ASICs)), hard disk drives (HDDs), hybrid hard drives (HHDs), optical discs, optical disc drives (ODDs), magneto-optical discs, magneto-optical drives, floppy diskettes, floppy disk drives (FDDs), magnetic tapes, solid- state drives (SSDs), RAM-drives, SECURE DIGITAL cards or drives, any other suitable computer-readable non-transitory storage media, or any suitable combination of two or more of these, where appropriate.
- ICs semiconductor-based or other integrated circuits
- HDDs hard disk drives
- HHDs hybrid hard drives
- ODDs optical disc drives
- magneto-optical discs magneto-optical drives
- FDDs floppy diskettes
- FDDs floppy disk drives
- references in the appended claims to an apparatus or system or a component of an apparatus or system being adapted to, arranged to, capable of, configured to, enabled to, operable to, or operative to perform a particular function encompasses that apparatus, system, component, whether or not it or that particular function is activated, turned on, or unlocked, as long as that apparatus, system, or component is so adapted, arranged, capable, configured, enabled, operable, or operative. Additionally, although this disclosure describes or illustrates particular embodiments as providing particular advantages, particular embodiments may provide none, some, or all of these advantages.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Mathematical Physics (AREA)
- Evolutionary Computation (AREA)
- Computing Systems (AREA)
- Data Mining & Analysis (AREA)
- Artificial Intelligence (AREA)
- Computer Hardware Design (AREA)
- Computational Linguistics (AREA)
- Quality & Reliability (AREA)
- Human Computer Interaction (AREA)
- Life Sciences & Earth Sciences (AREA)
- Evolutionary Biology (AREA)
- Medical Informatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- User Interface Of Digital Computer (AREA)
- Stored Programmes (AREA)
Abstract
In one embodiment, a method includes providing, to a client system of a user, a user interface for display. The user interface may include a first set of options for selecting an artificial intelligence (AI) task for integrating into a user application, a second set of options for selecting one or more devices on which the user wants to deploy the selected AI task, and a third set of options for selecting one or more performance constraints specific to the selected devices. User specifications may be received based on user selections in the first, second, and third sets of options. A custom AI model may be generated based on the user specifications and sent to the client system of the user for integrating into the user application. The custom AI model once integrated may enable the user application to perform the selected AI task on the selected devices.
Description
GENERATING A CUSTOMIZED MACHINE-LEARNING MODEL TO PERFORM TASKS USING ARTIFICIAL INTELLIGENCE
TECHNICAL FIELD
[1] This disclosure generally relates to creation and management of artificial intelligence (AI) models, and more particularly to systems and methods for enabling users to incorporate AI technology into their applications and devices via custom AI models.
BACKGROUND
[2] Artificial intelligence (AI) makes it possible for computing devices/machines to learn from experience, adjust to new inputs, and perform human-like tasks, such as for example, chess-playing computers, self-driving cars, object detection, image tagging, speech-to-text recognition, scene recognition, etc. The AI technology relies heavily on deep learning and neural network models. Using the AI technology, computers can be trained to accomplish specific tasks by processing large amounts of data and recognizing patterns in the data. This processing of the large amounts of data may be achievable by the equivalent of supercomputers. Because of this, it is quite challenging to apply AI in small or low-computing devices, such as smartphones, tablets, embedded sensors, cameras, smartwatches, etc. Furthermore, developers associated with these types of devices may not be trained and/or have knowledge on how to implement AI into software/applications intended to run on these small/low-computing devices. Thus, there is a need for a mechanism that can enable these developers to easily integrate AI functionality into their applications.
SUMMARY OF PARTICULAR EMBODIMENTS
[3] In particular embodiments, a computing system, such as a model-management system may enable users (e.g., developers) to easily integrate artificial intelligence (AI) into their applications (e.g., software). The model-management system may provide a user-friendly interface (see FIG. 1) using which a user may provide their specifications. The user specifications may include, for example, selection of an AI task (e.g., object detection, scene
recognition, image tagging, etc.) that they are looking to integrate into their application, device(s) on which they want to deploy the AI task, and one or more performance constraints (e.g., memory, latency, power, etc.) specific to the selected devices. Based on the user specifications, the model-management system may generate a custom AI model, which is integrable into the user application and operable on user specified devices. The model- management system may generate the custom AI model by retrieving a raw or a high-level model from a database containing a plurality of AI models. The high-level model may be compiled to generate a model binary. In particular embodiments, the model binary may be created by removing unnecessary components from the retrieved model and adding one or more components as per the user specifications. The model- management system may bind one or more interface functions with the model binary. The one or more interface functions may be functions associated with the AI task selected by the user. For example, if the task is image tagging, then an interface function is a set of tags contained with an image. Responsive to binding the interface function(s) with the model binary, the model-management system may convert the model binary into a device-level model configured to operate on device(s) selected by the user. For example, the device-level model may be configured for an iPhone as specified by the user at query time. The device-level model may finally be provided to the user in the form of a downloadable link, which the user can download to integrate the desired AI functionality into their application.
[4] The embodiments disclosed herein are only examples, and the scope of this disclosure is not limited to them. Particular embodiments may include all, some, or none of the components, elements, features, functions, operations, or steps of the embodiments disclosed above. Embodiments according to the invention are in particular disclosed in the attached claims directed to a method, a storage medium, a system and a computer program product, wherein any feature mentioned in one claim category, e.g. method, can be claimed in another claim category, e.g. system, as well. The dependencies or references back in the attached claims are chosen for formal reasons only. However any subject matter resulting from a deliberate reference back to any previous claims (in particular multiple dependencies) can be claimed as well, so that any combination of claims and the features thereof are disclosed and can be claimed regardless of the dependencies chosen in the attached claims. The subject-matter which can be claimed comprises not only the combinations of features as set out in the attached claims but also any other combination of features in the claims, wherein each feature mentioned in the claims can be
combined with any other feature or combination of other features in the claims. Furthermore, any of the embodiments and features described or depicted herein can be claimed in a separate claim and/or in any combination with any embodiment or feature described or depicted herein or with any of the features of the attached claims.
[5] In an embodiment, a method for generating a customized machine-learning model to perform tasks using artificial intelligence may comprise, by one or more computing systems: providing, to a client system of a user, a user interface for display, the user interface comprising a first set of options for selecting an AI task for integration into a user application, a second set of options for selecting one or more devices on which the user wants to deploy the selected AI task, and a third set of options for selecting one or more performance constraints specific to the selected devices; receiving, from the client system of the user, user specifications based on user selections in the first set of options, the second set of options, and the third set of options; generating a custom AI model based on the user specifications; and sending, to the client system of the user, the custom AI model for integrating into the user application, wherein the custom AI model once integrated enables the user application to perform the selected AI task on the selected devices.
[6] In an embodiment, generating the custom AI model based on the user specifications comprises: retrieving a high-level model from a database comprising a plurality of AI models, wherein the plurality of AI models was generated and stored in the database based on prior user specifications; compiling the high-level model based on the user specifications to generate a model binary; binding one or more interface functions with the model binary, wherein the one or more interface functions are functions associated with the selected AI task; and converting the model binary into a device-level model that is configured to operate on the devices selected by the user.
[7] In an embodiment, sending the custom AI model comprises sending, to the client system of the user, a downloadable link to download the device-level model into the client system, wherein the device-level model once downloaded integrates one or more functionalities associated with the selected AI task into the user application.
[8] In an embodiment, compiling the high-level model comprises removing unnecessary components from the high-level model and adding one or more components as per the user specifications.
[9] In an embodiment, receiving, from the client system of the user, benchmark data associated with the custom AI model; and training the plurality of AI models based on the benchmark data.
[10] In an embodiment, training the plurality of AI models comprises: improving the performance of the AI models; adding one or more features to the AI models; or creating a new AI model and storing the new AI model in the database.
[11] In an embodiment, the benchmark data comprises user performance feedback on the custom AI model, the user performance feedback indicating how well the custom AI model served the user needs in terms of speed, memory, and power usage.
[12] In an embodiment, ranking the plurality of AI models based on performance metrics associated with each of the models, the performance metrics comprising the benchmark data; selecting a top N models from the plurality of AI models based on the ranking; converting the top N models into device-level models; performing automatic benchmarking on the device level models in terms of speed, memory, and power constraints; and storing the device-levels models in the database for future access or retrieval.
[13] In an embodiment, the AI task comprises one or more of object detection, scene recognition, image tagging, image enhancement, object segmentation, action recognition, speech recognition, or text recognition.
[14] In an embodiment, the devices comprise one or more of smartphones, tablets, wearable devices, embedded sensors, cameras, or drones.
[15] In an embodiment, the one or more performance constraints comprise: a memory constraint; a latency constraint; or a power constraint.
[16] In an embodiment, the memory constraint enables the user to specify amount of memory to be used for the selected AI task.
[17] In an embodiment, the latency constraint enables the user to specify a refresh rate or frames per second (FPS) at which the user wants the selected AI task to run on the selected devices.
[18] In an embodiment, the power constraint enables the user to specify amount of power to be utilized by the selected AI task.
[19] In an embodiment, each of the first set of options, the second set of options, or the third set of options comprises sub-options for enabling a granular level of user selection.
[20] In an embodiment, one or more computer-readable non-transitory storage media embody software for generating a customized AI machine-learning model to perform tasks using artificial intelligence, the software comprising instructions operable when executed to: provide, to a client system of a user, a user interface for display, the user interface comprising a first set of options for selecting an artificial intelligence (AI) task for integrating into a user application, a second set of options for selecting one or more devices on which the user wants to deploy the selected AI task, and a third set of options for selecting one or more performance constraints specific to the selected devices; receive, from the client system of the user, user specifications based on user selections in the first set of options, the second set of options, and the third set of options; generate a custom AI model based on the user specifications; and send, to the client system of the user, the custom AI model for integrating into the user application, wherein the custom AI model once integrated enables the user application to perform the selected AI task on the selected devices.
[21] In an embodiment of the computer-readable non-transitory storage media, generating the custom AI model based on the user specifications comprises: retrieving a high- level model from a database comprising a plurality of AI models, wherein the plurality of AI models was generated and stored in the database based on prior user specifications; compiling the high-level model based on the user specifications to generate a model binary; binding one or more interface functions with the model binary, wherein the one or more interface functions are functions associated with the selected AI task; and converting the model binary into a device level model that is configured to operate on the devices selected by the user.
[22] In an embodiment of the computer-readable non-transitory storage media, sending the custom AI model comprises sending, to the client system of the user, a downloadable link to download the device-level model into the client system, wherein the device-level model once downloaded integrates one or more functionalities associated with the selected AI task into the user application.
[23] In an embodiment of the computer-readable non-transitory storage media, compiling the high-level model comprises removing unnecessary components from the high- level model and adding one or more components as per the user specifications.
[24] In an embodiment, a system for generating a customized AI machine-learning model to perform tasks using artificial intelligence, the system comprising: one or more
processors; and a non-transitory memory coupled to the processors comprising instructions executable by the processors, the processors operable when executing the instructions to: provide, to a client system of a user, a user interface for display, the user interface comprising a first set of options for selecting an artificial intelligence (AI) task for integrating into a user application, a second set of options for selecting one or more devices on which the user wants to deploy the selected AI task, and a third set of options for selecting one or more performance constraints specific to the selected devices; receive, from the client system of the user, user specifications based on user selections in the first set of options, the second set of options, and the third set of options; generate a custom AI model based on the user specifications; and send, to the client system of the user, the custom AI model for integrating into the user application, wherein the custom AI model once integrated enables the user application to perform the selected AI task on the selected devices.
BRIEF DESCRIPTION OF THE DRAWINGS
[25] FIG. 1 illustrates an example interface for defining user specifications.
[26] FIG. 2A illustrates various components of a model-management system and their associated functionalities for dispatching an appropriate AI model as per user specifications.
[27] FIG. 2B illustrates additional components of the model-management system and their associated functionalities for training a pool of AI models.
[28] FIG. 3 illustrates an example AI task performed on a mobile device of an end user based on the user specifications defined in the interface of FIG. 1.
[29] FIG. 4 illustrates an example network environment associated with a model- management system.
[30] FIG. 5 illustrates an example computer system.
DESCRIPTION OF EXAMPLE EMBODIMENTS
[31] In particular embodiments, a computing system, such as a model-management system 200 may enable users (e.g., developers) to easily integrate artificial intelligence (AI) into their applications (e.g., software). The model-management system 200 may provide a user- friendly interface (see FIG. 1) using which a user may provide their specifications. The user specifications may include, for example, selection of an AI task (e.g., object detection, scene recognition, image tagging, etc.) that they are looking to integrate into their application,
device(s) on which they want to deploy the AI task, and one or more performance constraints (e.g., memory, latency, power, etc.) specific to the selected devices. Based on the user specifications, the model-management system 200 may generate a custom AI model, which is integrable into the user application and operable on user specified devices. The model- management system 200 may generate the custom AI model by retrieving a raw or a high-level model from a database containing a plurality of AI models. The high-level model may be compiled to generate a model binary. In particular embodiments, the model binary may be created by removing unnecessary components from the retrieved model and adding one or more components as per the user specifications. The model-management system 200 may bind one or more interface functions with the model binary. The one or more interface functions may be functions associated with the AI task selected by the user. For example, if the task is image tagging, then an interface function is a set of tags contained with an image. Responsive to binding the interface function(s) with the model binary, the model-management system 200 may convert the model binary into a device-level model configured to operate on device(s) selected by the user. For example, the device-level model may be configured for an iPhone as specified by the user at query time. The device-level model may finally be provided to the user in the form of a downloadable link, which the user can download to integrate the desired AI functionality into their application.
[32] FIG. 1 illustrates an example interface 100 for defining user specifications. In some embodiments, the interface 100 may be presented within a web browser. For instance, the user may go to a website where they are presented with the user interface 100 within their web browser. As depicted, the user interface 100 may offer a variety of menus 102-110, options within these menus, and sub-options or categories 112-114, which the user may select in order to achieve the desired AI functionality for their application. It should be noted that the user interface shown here is for exemplary purposes and is not by any means limited to the menus, options, and sub-options illustrated herein. A variety of other menus, options, and sub-options are possible and within the scope of the present disclosure.
[33] As shown in FIG. 1, the interface 100 may include a task menu 102, a device-type menu 104, and constraint menus 106-110. The task menu 102 may include a variety of AI tasks from which the user may select a desired task to incorporate into their application. As an example and without limitation, the tasks may include scene recognition, image tagging, object
detection, object tracking, object segmentation, human pose estimation, image enhancement, action recognition, human emotion recognition, speech recognition, text recognition, natural language understanding, and/or any sort of data processing tasks. In particular embodiments, one or more categories 112 may be included within one or more of these tasks. The one or more categories within a task may include specific objects or items of interest that a user may want to particularly focus on. For example, categories within the object detection task may include person, tree, automobile, bicycle, dog, building, etc. As another example, categories within the scene recognition task may include beach, snowy mountains, flowers, buildings, autumn leaves, waterfall, night scene, etc. Yet as another example, categories within the image enhancement task may include denoising, super-resolution, etc.
[34] The device-type menu 104 may include different types of user devices on which a given task (e.g., task selected from task menu 102) may be deployed. As an example and not by way of limitation, the user devices may include smartphones (e.g., various iPhone and Android models), tablets (e.g., Apple iPads, Amazon Kindle, etc.), smartwatches (e.g., Apple Watch, Samsung Gear, etc.), ARM-based platforms (e.g., Raspberry Pi, NanoPi, etc.), embedded sensors, cameras, intel-based platforms, drones, snapdragon based platforms, NVIDIA-based platforms (e.g., various GPUs), X-86 families, ambarella platforms, etc. From the list of user devices, the user may select a device on which they want the chosen task to be deployed. In other words, the user may select one or more devices targeted specific to their application. By way of an example, the user may be developing an object-detection application specific to iPhone users and therefore, the user may select particular iPhone model(s) from the device-type menu 104.
[35] The constraint menus 106-110 may include a memory-constraint menu 106, a latency-constraint menu 108, and a power-constraint menu 110. The memory-constraint menu 106 may enable the user to specify amount of memory to be used for their selected task. For example, as shown in the figure, the user may choose to allocate 100 MB memory for the object detection task. The latency-constraint menu 108 may enable the user to specify a refresh rate or frames per second (FPS) at which they want their task to run. For example, as shown in the figure, the user may choose to run the object detection task at 10 FPS. The power-constraint menu 110 may enable the user to specify amount of power to be utilized by their selected task. For example, as shown in the figure, the user may choose to allocate 1 JPI power for the object detection task.
[36] FIG. 2A illustrates various components of a model-management system 200 and their associated functionalities for dispatching an appropriate AI model as per user specifications. Once the user has defined their specifications (e.g., task, device type, memory constraint, power constraint, latency constraint) using the interface discussed in FIG. 1, the user specifications may be sent to a query generator server 202. The query generator server 202 receives the user specifications and generates a query 204, which may be used to retrieve one or more raw models 208 (or device-level models) from a database 206. The device-level models may be defined in certain programming languages. For example, a device-level model may be defined in Python language. The database 206 may include a plurality of AI models that may be defined and stored based on previous user specifications. The previous user specifications may or may not be related to the current user specification. As an example, a previous user specification may be relating to an image tagging task for an application targeted to operate on Android phones and the model-management system 200 generated a model as per this specification and stored the model in the database 206 for future access and/or retrieval. Storing previous models or having this database of models is advantageous as it may avoid creating a model from scratch and existing model(s) may be reused and tweaked to match the current user specifications.
[37] The raw or high-level model 208 retrieved from the database 206 may be processed by a model compiler 210 to make it appropriate as per the current user specification. For instance, the model compiler 210 may compile the model to remove out any unnecessary modules/components and add any required components to match the user specification. As an example, the raw model may be previously generated based on a user specification such as, task: object detection, device type: Android, memory constraint: 1 GB, latency constraint: 100 FPS, power constraint: 1 JPI, and some additional constraints. The model compiler 210 may compile this raw model to remove out the additional constraints and change the device type to iPhones and memory constraint to 100 MB to make the model appropriate for the current user specification. In particular embodiments, the output of the model compiler 210 is a compact model package or model binary 212. In particular embodiments, compiling the raw model basically converts the high-level or raw model into a model binary, which may also include the user query, as shown in FIG. 2A.
[38] An interface binder 214 may bind the compact model/model binary with one or more interface functions. An interface function may be a function that an actual user will use in
the application or software once the model is deployed into the application. For example, for performing the task of image tagging, the interface function may process the input images and the output of this function will be a bunch of tags within the images.
[39] Once the one or more interface functions are binded with the model binary, a final software binary (combination of the model binary and the interface function(s)) may be sent to a dispatcher 218, which creates a link 220 for the user to download the final software binary 216 on their device (e.g., client system 430). Upon downloading, the user may incorporate the received binary into their application, which can then be finally released for use by end users. An end user may use the developer’s software to perform AI functions. By way of an example, the developer may have developed an object-detection application, for iPhone users, that may utilize 100 MB of memory and 1 JPI of power, and may run at 10 FPS (e.g., as shown in FIG. 1). The end user may use this object-detection application on their iPhone to detect one or more objects in their surrounding environment. For example, as shown in FIG. 3, the application may be used on an iPhone 6 model to detect persons in front of the end user.
[40] In particular embodiments, an automatic -benchmarking component built into the model may automatically evaluate the performance of the model based on, for example, how well the provided model is serving the user needs and the various performance constraints (e.g., how much is the memory and power usage, speed, etc.) associated with the model. The automatic -benchmarking component may report the benchmarked data to the model- management system 200, which may store it in the database 206 of AI models and use it for training the models. In some embodiments, the training of models may also be performed based on feedback provided by a user at query time, as discussed in further detail below.
[41] FIG. 2B illustrates additional components of the model-management system 200 and their associated functionalities for training a pool of AI models. Training of models may include improving the performance of the existing models, adding one or more new features to existing models, and/or creating a new model. A user may provide training data at query time or in other words, when the user is defining their specifications using the interface 100. As an example and not by way of limitation, training data may include a request from the user to perform object detection for objects that may not be currently included in the interface 100 but the user may have data corresponding to those objects. The user may then provide their data along with their desired specification to the model-management system 200, which may use this
data to refine their existing models relating to object detection to include the new categories of objects provided by the user. As another example, the user may provide their performance feedback for a model (e.g., how well a previous model served their needs in terms of speed, memory and power usage) at query time, and the model-management system 200 may use this performance feedback to train the pool of AI models on server (indicated by reference numeral 222). Other possible ways of training the models are also possible and within the scope of the present disclosure.
[42] The trained AI models 224 may be sent to a ranker 226 for ranking. The ranker 226 may rank the models based on various factors. The factors may include, for example, performance metrics associated with each of the models, benchmark data, user feedback on the models, etc. Based on the ranking, top models 228 may be determined. For example, top five ranked models may be chosen and sent to a model converter 230 for devices. The model converter 230 may convert the top ranked models into device-level models 232 as discussed above. Automatic benchmarking (indicated by reference numeral 234) may be performed for these models in terms of speed, memory, and power constraints, and finally these device-level models along with benchmarked data may be stored in the database 206 of AI models for future access and/or retrieval. In particular embodiments, the steps 222-234 illustrated in FIG. 2B may be performed asynchronously with the steps illustrated in FIG. 2A.
[43] FIG. 3 illustrates an example AI task performed on a mobile device of an end user based on the user specifications defined in the interface of FIG. 1. For instance, as shown in FIG. 1, the user (e.g., developer) selects object detection (e.g., person detection 112) functionality to be integrated into their application that is capable of running on various iPhones 114. The developer may also define that their application with the object detection functionality may utilize 100 MB of memory and 1 JPI of power and may run at 10 FPS. Once these user specifications are integrated into the developer’s application, the developer may release their application for use by end users (e.g., consumers). For example, as shown in FIG. 3, an end user/consumer having the developer’s application installed on their iPhone may use the application to detect persons in front of them or their surrounding environment simply by holding the phone in a particular direction. This is advantageous for an end user/consumer as the consumer does not need any special or a high-powered computing device and can be able to use AI functionality on their existing devices. Also, this is advantageous for a developer as the
developer can easily integrate AI functionality into their applications (e.g., software) just by selecting desired options using the interface 100.
[44] FIG. 4 illustrates an example network environment 400 associated with a model- management system. Network environment 400 includes a user 401, a client system 430, a model-management system 460, and a third-party system 470 connected to each other by a network 410. Although FIG. 4 illustrates a particular arrangement of user 401, client system 430, model-management system 460, third-party system 470, and network 410, this disclosure contemplates any suitable arrangement of user 401, client system 430, model-management system 460, third-party system 470, and network 410. As an example and not by way of limitation, two or more of client system 430, model-management system 460, and third-party system 470 may be connected to each other directly, bypassing network 410. As another example, two or more of client system 430, model-management system 460, and third-party system 470 may be physically or logically co-located with each other in whole or in part. Moreover, although FIG. 4 illustrates a particular number of users 401, client systems 430, model-management systems 460, third-party systems 470, and networks 410, this disclosure contemplates any suitable number of users 401, client systems 430, model-management systems 460, third-party systems 470, and networks 410. As an example and not by way of limitation, network environment 400 may include multiple users 401, client system 430, model- management systems 460, third-party systems 470, and networks 410.
[45] In particular embodiments, user 401 may be an individual (human user) such as an application/software developer, an entity (e.g., an enterprise, business, or third-party application), or a group (e.g., of individuals or entities) that interacts or communicates with or over model-management system 460. In particular embodiments, model-management system 460 may be a network-addressable computing system for managing (e.g., creating, updating, training, etc.) a plurality of AI models. Model-management system 460 may be accessed by the other components of network environment 400 either directly or via network 410. In particular embodiments, model-management system 460 may include an authorization server (or other suitable component(s)) that allows users 401 to opt in to or opt out of having their actions logged by model-management system 460 or shared with other systems (e.g., third-party systems 470), for example, by setting appropriate privacy settings. A privacy setting of a user may determine what information associated with the user may be logged, how information associated with the
user may be logged, when information associated with the user may be logged, who may log information associated with the user, whom information associated with the user may be shared with, and for what purposes information associated with the user may be logged or shared. Authorization servers may be used to enforce one or more privacy settings of the users of model- management system 460 through blocking, data hashing, anonymization, or other suitable techniques as appropriate. Third-party system 470 may be accessed by the other components of network environment 400 either directly or via network 410. In particular embodiments, one or more users 401 may use one or more client systems 430 to access, send data to, and receive data from model-management system 460 or third-party system 470. Client system 430 may access model-management system 460 or third-party system 470 directly, via network 410, or via a third-party system. As an example and not by way of limitation, client system 430 may access third-party system 470 via model-management system 460. Client system 430 may be any suitable computing device, such as, for example, a personal computer, a laptop computer, a cellular telephone, a smartphone, a tablet computer, or an augmented/virtual reality device.
[46] This disclosure contemplates any suitable network 410. As an example and not by way of limitation, one or more portions of network 410 may include an ad hoc network, an intranet, an extranet, a virtual private network (VPN), a local area network (LAN), a wireless LAN (WLAN), a wide area network (WAN), a wireless WAN (WWAN), a metropolitan area network (MAN), a portion of the Internet, a portion of the Public Switched Telephone Network (PSTN), a cellular telephone network, or a combination of two or more of these. Network 410 may include one or more networks 410.
[47] Links 450 may connect client system 430, model-management system 460, and third-party system 470 to communication network 410 or to each other. This disclosure contemplates any suitable links 450. In particular embodiments, one or more links 450 include one or more wireline (such as for example Digital Subscriber Line (DSL) or Data Over Cable Service Interface Specification (DOCSIS)), wireless (such as for example Wi-Fi or Worldwide Interoperability for Microwave Access (WiMAX)), or optical (such as for example Synchronous Optical Network (SONET) or Synchronous Digital Hierarchy (SDH)) links. In particular embodiments, one or more links 450 each include an ad hoc network, an intranet, an extranet, a VPN, a LAN, a WLAN, a WAN, a WWAN, a MAN, a portion of the Internet, a portion of the PSTN, a cellular technology-based network, a satellite communications technology-based
network, another link 450, or a combination of two or more such links 450. Links 450 need not necessarily be the same throughout network environment 400. One or more first links 450 may differ in one or more respects from one or more second links 450.
[48] FIG. 5 illustrates an example computer system 500. In particular embodiments, one or more computer systems 500 perform one or more steps of one or more methods described or illustrated in reference to at- least FIGS. 2A and 2B. In particular embodiments, one or more computer systems 500 provide functionality described or illustrated herein. In particular embodiments, software running on one or more computer systems 500 performs one or more steps of one or more methods described or illustrated herein or provides functionality described or illustrated herein. Particular embodiments include one or more portions of one or more computer systems 500. Herein, reference to a computer system may encompass a computing device, and vice versa, where appropriate. Moreover, reference to a computer system may encompass one or more computer systems, where appropriate.
[49] This disclosure contemplates any suitable number of computer systems 500. This disclosure contemplates computer system 500 taking any suitable physical form. As example and not by way of limitation, computer system 500 may be an embedded computer system, a system- on-chip (SOC), a single-board computer system (SBC) (such as, for example, a computer-on- module (COM) or system-on-module (SOM)), a desktop computer system, a laptop or notebook computer system, an interactive kiosk, a mainframe, a mesh of computer systems, a mobile telephone, a personal digital assistant (PDA), a server, a tablet computer system, an augmented/virtual reality device, or a combination of two or more of these. Where appropriate, computer system 500 may include one or more computer systems 500; be unitary or distributed; span multiple locations; span multiple machines; span multiple data centers; or reside in a cloud, which may include one or more cloud components in one or more networks. Where appropriate, one or more computer systems 500 may perform without substantial spatial or temporal limitation one or more steps of one or more methods described or illustrated herein. As an example and not by way of limitation, one or more computer systems 500 may perform in real time or in batch mode one or more steps of one or more methods described or illustrated herein. One or more computer systems 500 may perform at different times or at different locations one or more steps of one or more methods described or illustrated herein, where appropriate.
[50] In particular embodiments, computer system 500 includes a processor 502, memory 504, storage 506, an input/output (I/O) interface 508, a communication interface 510, and a bus 512. Although this disclosure describes and illustrates a particular computer system having a particular number of particular components in a particular arrangement, this disclosure contemplates any suitable computer system having any suitable number of any suitable components in any suitable arrangement.
[51] In particular embodiments, processor 502 includes hardware for executing instructions, such as those making up a computer program. As an example and not by way of limitation, to execute instructions, processor 502 may retrieve (or fetch) the instructions from an internal register, an internal cache, memory 504, or storage 506; decode and execute them; and then write one or more results to an internal register, an internal cache, memory 504, or storage 506. In particular embodiments, processor 502 may include one or more internal caches for data, instructions, or addresses. This disclosure contemplates processor 502 including any suitable number of any suitable internal caches, where appropriate. As an example and not by way of limitation, processor 502 may include one or more instruction caches, one or more data caches, and one or more translation lookaside buffers (TLBs). Instructions in the instruction caches may be copies of instructions in memory 504 or storage 506, and the instruction caches may speed up retrieval of those instructions by processor 502. Data in the data caches may be copies of data in memory 504 or storage 506 for instructions executing at processor 502 to operate on; the results of previous instructions executed at processor 502 for access by subsequent instructions executing at processor 502 or for writing to memory 504 or storage 506; or other suitable data. The data caches may speed up read or write operations by processor 502. The TLBs may speed up virtual-address translation for processor 502. In particular embodiments, processor 502 may include one or more internal registers for data, instructions, or addresses. This disclosure contemplates processor 502 including any suitable number of any suitable internal registers, where appropriate. Where appropriate, processor 502 may include one or more arithmetic logic units (ALUs); be a multi-core processor; or include one or more processors 502. Although this disclosure describes and illustrates a particular processor, this disclosure contemplates any suitable processor.
[52] In particular embodiments, memory 504 includes main memory for storing instructions for processor 502 to execute or data for processor 502 to operate on. As an example
and not by way of limitation, computer system 500 may load instructions from storage 506 or another source (such as, for example, another computer system 500) to memory 504. Processor 502 may then load the instructions from memory 504 to an internal register or internal cache. To execute the instructions, processor 502 may retrieve the instructions from the internal register or internal cache and decode them. During or after execution of the instructions, processor 502 may write one or more results (which may be intermediate or final results) to the internal register or internal cache. Processor 502 may then write one or more of those results to memory 504. In particular embodiments, processor 502 executes only instructions in one or more internal registers or internal caches or in memory 504 (as opposed to storage 506 or elsewhere) and operates only on data in one or more internal registers or internal caches or in memory 504 (as opposed to storage 506 or elsewhere). One or more memory buses (which may each include an address bus and a data bus) may couple processor 502 to memory 504. Bus 512 may include one or more memory buses, as described below. In particular embodiments, one or more memory management units (MMUs) reside between processor 502 and memory 504 and facilitate accesses to memory 504 requested by processor 502. In particular embodiments, memory 504 includes random access memory (RAM). This RAM may be volatile memory, where appropriate. Where appropriate, this RAM may be dynamic RAM (DRAM) or static RAM (SRAM). Moreover, where appropriate, this RAM may be single-ported or multi-ported RAM. This disclosure contemplates any suitable RAM. Memory 504 may include one or more memories 504, where appropriate. Although this disclosure describes and illustrates particular memory, this disclosure contemplates any suitable memory.
[53] In particular embodiments, storage 506 includes mass storage for data or instructions. As an example and not by way of limitation, storage 506 may include a hard disk drive (HDD), a floppy disk drive, flash memory, an optical disc, a magneto-optical disc, magnetic tape, or a Universal Serial Bus (USB) drive or a combination of two or more of these. Storage 506 may include removable or non-removable (or fixed) media, where appropriate. Storage 506 may be internal or external to computer system 500, where appropriate. In particular embodiments, storage 506 is non-volatile, solid-state memory. In particular embodiments, storage 506 includes read-only memory (ROM). Where appropriate, this ROM may be mask- programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), electrically alterable ROM (EAROM), or flash memory or a
combination of two or more of these. This disclosure contemplates mass storage 506 taking any suitable physical form. Storage 506 may include one or more storage control units facilitating communication between processor 502 and storage 506, where appropriate. Where appropriate, storage 506 may include one or more storages 506. Although this disclosure describes and illustrates particular storage, this disclosure contemplates any suitable storage.
[54] In particular embodiments, I/O interface 508 includes hardware, software, or both, providing one or more interfaces for communication between computer system 500 and one or more I/O devices. Computer system 500 may include one or more of these I/O devices, where appropriate. One or more of these I/O devices may enable communication between a person and computer system 500. As an example and not by way of limitation, an I/O device may include a keyboard, keypad, microphone, monitor, mouse, printer, scanner, speaker, still camera, stylus, tablet, touch screen, trackball, video camera, another suitable I/O device or a combination of two or more of these. An I/O device may include one or more sensors. This disclosure contemplates any suitable I/O devices and any suitable I/O interfaces 508 for them. Where appropriate, I/O interface 508 may include one or more device or software drivers enabling processor 502 to drive one or more of these I/O devices. I/O interface 508 may include one or more I/O interfaces 508, where appropriate. Although this disclosure describes and illustrates a particular I/O interface, this disclosure contemplates any suitable I/O interface.
[55] In particular embodiments, communication interface 510 includes hardware, software, or both providing one or more interfaces for communication (such as, for example, packet-based communication) between computer system 500 and one or more other computer systems 500 or one or more networks. As an example and not by way of limitation, communication interface 510 may include a network interface controller (NIC) or network adapter for communicating with an Ethernet or other wire-based network or a wireless NIC (WNIC) or wireless adapter for communicating with a wireless network, such as a WI-FI network. This disclosure contemplates any suitable network and any suitable communication interface 510 for it. As an example and not by way of limitation, computer system 500 may communicate with an ad hoc network, a personal area network (PAN), a local area network (LAN), a wide area network (WAN), a metropolitan area network (MAN), or one or more portions of the Internet or a combination of two or more of these. One or more portions of one or more of these networks may be wired or wireless. As an example, computer system 500 may
communicate with a wireless PAN (WPAN) (such as, for example, a BLUETOOTH WPAN), a WI-FI network, a WI-MAX network, a cellular telephone network (such as, for example, a Global System for Mobile Communications (GSM) network), or other suitable wireless network or a combination of two or more of these. Computer system 500 may include any suitable communication interface 510 for any of these networks, where appropriate. Communication interface 510 may include one or more communication interfaces 510, where appropriate. Although this disclosure describes and illustrates a particular communication interface, this disclosure contemplates any suitable communication interface.
[56] In particular embodiments, bus 512 includes hardware, software, or both coupling components of computer system 500 to each other. As an example and not by way of limitation, bus 512 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a front-side bus (FSB), a HYPERTRANSPORT (HT) interconnect, an Industry Standard Architecture (ISA) bus, an INFINIBAND interconnect, a low-pin-count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCIe) bus, a serial advanced technology attachment (SATA) bus, a Video Electronics Standards Association local (VLB) bus, or another suitable bus or a combination of two or more of these. Bus 512 may include one or more buses 512, where appropriate. Although this disclosure describes and illustrates a particular bus, this disclosure contemplates any suitable bus or interconnect.
[57] Herein, a computer-readable non-transitory storage medium or media may include one or more semiconductor-based or other integrated circuits (ICs) (such, as for example, field- programmable gate arrays (FPGAs) or application-specific ICs (ASICs)), hard disk drives (HDDs), hybrid hard drives (HHDs), optical discs, optical disc drives (ODDs), magneto-optical discs, magneto-optical drives, floppy diskettes, floppy disk drives (FDDs), magnetic tapes, solid- state drives (SSDs), RAM-drives, SECURE DIGITAL cards or drives, any other suitable computer-readable non-transitory storage media, or any suitable combination of two or more of these, where appropriate. A computer-readable non-transitory storage medium may be volatile, non-volatile, or a combination of volatile and non-volatile, where appropriate.
[58] Herein,“or” is inclusive and not exclusive, unless expressly indicated otherwise or indicated otherwise by context. Therefore, herein,“A or B” means“A, B, or both,” unless expressly indicated otherwise or indicated otherwise by context. Moreover,“and” is both joint
and several, unless expressly indicated otherwise or indicated otherwise by context. Therefore, herein,“A and B” means“A and B, jointly or severally,” unless expressly indicated otherwise or indicated otherwise by context.
[59] The scope of this disclosure encompasses all changes, substitutions, variations, alterations, and modifications to the example embodiments described or illustrated herein that a person having ordinary skill in the art would comprehend. The scope of this disclosure is not limited to the example embodiments described or illustrated herein. Moreover, although this disclosure describes and illustrates respective embodiments herein as including particular components, elements, feature, functions, operations, or steps, any of these embodiments may include any combination or permutation of any of the components, elements, features, functions, operations, or steps described or illustrated anywhere herein that a person having ordinary skill in the art would comprehend. Furthermore, reference in the appended claims to an apparatus or system or a component of an apparatus or system being adapted to, arranged to, capable of, configured to, enabled to, operable to, or operative to perform a particular function encompasses that apparatus, system, component, whether or not it or that particular function is activated, turned on, or unlocked, as long as that apparatus, system, or component is so adapted, arranged, capable, configured, enabled, operable, or operative. Additionally, although this disclosure describes or illustrates particular embodiments as providing particular advantages, particular embodiments may provide none, some, or all of these advantages.
Claims
1. A method for generating a customized AI machine-learning model to perform tasks using artificial intelligence, comprising:
providing, by one or more computing systems and to a client system of a user, a user interface for display, the user interface comprising a first set of options for selecting an artificial intelligence (AI) task for integration into a user application, a second set of options for selecting one or more devices on which the user wants to deploy the selected AI task, and a third set of options for selecting one or more performance constraints specific to the selected devices;
receiving, by the one or more computing systems and from the client system of the user, user specifications based on user selections in the first set of options, the second set of options, and the third set of options;
generating, by the one or more computing systems, a custom AI model based on the user specifications; and
sending, by the one or more computing systems and to the client system of the user, the custom AI model for integrating into the user application, wherein the custom AI model once integrated enables the user application to perform the selected AI task on the selected devices.
2. The method of Claim 1, wherein generating the custom AI model based on the user specifications comprises:
retrieving a high-level model from a database comprising a plurality of AI models, wherein the plurality of AI models was generated and stored in the database based on prior user specifications;
compiling the high-level model based on the user specifications to generate a model binary;
binding one or more interface functions with the model binary, wherein the one or more interface functions are functions associated with the selected AI task; and
converting the model binary into a device-level model that is configured to operate on the devices selected by the user.
3. The method of Claim 2, wherein sending the custom AI model comprises sending, to the client system of the user, a downloadable link to download the device-level model into the client system, wherein the device-level model once downloaded integrates one or more functionalities associated with the selected AI task into the user application.
4. The method of Claim 2, wherein compiling the high-level model comprises removing unnecessary components from the high-level model and adding one or more components as per the user specifications.
5. The method of Claim 2, further comprising:
receiving, from the client system of the user, benchmark data associated with the custom AI model; and
training the plurality of AI models based on the benchmark data.
6. The method of Claim 5, wherein training the plurality of AI models comprises:
improving the performance of the AI models;
adding one or more features to the AI models; or
creating a new AI model and storing the new AI model in the database.
7. The method of Claim 5, wherein the benchmark data comprises user performance feedback on the custom AI model, the user performance feedback indicating how well the custom AI model served the user needs in terms of speed, memory, and power usage.
8. The method of Claim 7, further comprising:
ranking the plurality of AI models based on performance metrics associated with each of the models, the performance metrics comprising the benchmark data;
selecting a top N models from the plurality of AI models based on the ranking;
converting the top N models into device-level models;
performing automatic benchmarking on the device-level models in terms of speed, memory, and power constraints; and
storing the device-levels models in the database for future access or retrieval.
9. The method of Claim 1, wherein the AI task comprises one or more of object detection, scene recognition, image tagging, image enhancement, object segmentation, action recognition, speech recognition, or text recognition.
10. The method of Claim 1, wherein the devices comprise one or more of smartphones, tablets, wearable devices, embedded sensors, cameras, or drones.
11. The method of Claim 1, wherein the one or more performance constraints comprise: a memory constraint;
a latency constraint; or
a power constraint.
12. The method of Claim 11, wherein the memory constraint enables the user to specify amount of memory to be used for the selected AI task.
13. The method of Claim 11, wherein the latency constraint enables the user to specify a refresh rate or frames per second (FPS) at which the user wants the selected AI task to run on the selected devices.
14. The method of Claim 11, wherein the power constraint enables the user to specify amount of power to be utilized by the selected AI task.
15. The method of Claim 1, wherein each of the first set of options, the second set of options, or the third set of options comprises sub-options for enabling a granular level of user selection.
16. One or more computer-readable non-transitory storage media embodying software for generating a customized AI machine-learning model to perform tasks using artificial intelligence, the software comprising instructions operable when executed to:
provide, to a client system of a user, a user interface for display, the user interface comprising a first set of options for selecting an artificial intelligence (AI) task for integrating into a user application, a second set of options for selecting one or more devices on which the
user wants to deploy the selected AI task, and a third set of options for selecting one or more performance constraints specific to the selected devices;
receive, from the client system of the user, user specifications based on user selections in the first set of options, the second set of options, and the third set of options;
generate a custom AI model based on the user specifications; and
send, to the client system of the user, the custom AI model for integrating into the user application, wherein the custom AI model once integrated enables the user application to perform the selected AI task on the selected devices.
17. The computer-readable non-transitory storage media of Claim 16, wherein generating the custom AI model based on the user specifications comprises:
retrieving a high-level model from a database comprising a plurality of AI models, wherein the plurality of AI models was generated and stored in the database based on prior user specifications;
compiling the high-level model based on the user specifications to generate a model binary;
binding one or more interface functions with the model binary, wherein the one or more interface functions are functions associated with the selected AI task; and
converting the model binary into a device-level model that is configured to operate on the devices selected by the user.
18. The computer-readable non-transitory storage media of Claim 17, wherein sending the custom AI model comprises sending, to the client system of the user, a downloadable link to download the device-level model into the client system, wherein the device-level model once downloaded integrates one or more functionalities associated with the selected AI task into the user application.
19. The computer-readable non-transitory storage media of Claim 17, wherein compiling the high-level model comprises removing unnecessary components from the high-level model and adding one or more components as per the user specifications.
20. A system for generating a customized AI machine-learning model to perform tasks using artificial intelligence, the system comprising: one or more processors; and a non-transitory memory coupled to the processors comprising instructions executable by the processors, the processors operable when executing the instructions to:
provide, to a client system of a user, a user interface for display, the user interface comprising a first set of options for selecting an artificial intelligence (AI) task for integrating into a user application, a second set of options for selecting one or more devices on which the user wants to deploy the selected AI task, and a third set of options for selecting one or more performance constraints specific to the selected devices;
receive, from the client system of the user, user specifications based on user selections in the first set of options, the second set of options, and the third set of options;
generate a custom AI model based on the user specifications; and
send, to the client system of the user, the custom AI model for integrating into the user application, wherein the custom AI model once integrated enables the user application to perform the selected AI task on the selected devices.
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201980030065.1A CN112088386B (en) | 2018-05-07 | 2019-05-07 | Generating customized machine learning models to perform tasks using artificial intelligence |
EP19800091.1A EP3791338B1 (en) | 2018-05-07 | 2019-05-07 | Generating a customized machine-learning model to perform tasks using artificial intelligence |
CN202410344918.1A CN118114789A (en) | 2018-05-07 | 2019-05-07 | Generating customized machine learning models to perform tasks using artificial intelligence |
Applications Claiming Priority (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US201862667991P | 2018-05-07 | 2018-05-07 | |
US62/667,991 | 2018-05-07 | ||
US16/404,023 | 2019-05-06 | ||
US16/404,023 US11263540B2 (en) | 2018-05-07 | 2019-05-06 | Model selection interface |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019217451A1 true WO2019217451A1 (en) | 2019-11-14 |
Family
ID=68385316
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/US2019/031160 WO2019217451A1 (en) | 2018-05-07 | 2019-05-07 | Generating a customized machine-learning model to perform tasks using artificial intelligence |
Country Status (4)
Country | Link |
---|---|
US (2) | US11263540B2 (en) |
EP (1) | EP3791338B1 (en) |
CN (2) | CN118114789A (en) |
WO (1) | WO2019217451A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024058823A1 (en) * | 2022-09-15 | 2024-03-21 | Intel Corporation | Dynamic explainable artificial intelligence pipeline composability and customization |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11636333B2 (en) * | 2018-07-26 | 2023-04-25 | Tesla, Inc. | Optimizing neural network structures for embedded systems |
US11544594B2 (en) * | 2019-04-11 | 2023-01-03 | Sunghee Woo | Electronic device comprising user interface for providing user-participating-type AI training service, and server and method for providing user-participating-type AI training service using the electronic device |
CN113050955A (en) * | 2019-12-26 | 2021-06-29 | 阿尔法云计算(深圳)有限公司 | Self-adaptive AI model deployment method |
CN113254885A (en) * | 2020-02-13 | 2021-08-13 | 支付宝(杭州)信息技术有限公司 | Machine learning model protection method and device |
CN111427677B (en) * | 2020-03-20 | 2024-03-01 | 网易(杭州)网络有限公司 | Artificial intelligence product generation method, device and server |
US11451480B2 (en) | 2020-03-31 | 2022-09-20 | Micron Technology, Inc. | Lightweight artificial intelligence layer to control the transfer of big data |
WO2021228373A1 (en) * | 2020-05-12 | 2021-11-18 | Telefonaktiebolaget Lm Ericsson (Publ) | Optimized model transmission |
KR20220000039A (en) * | 2020-06-25 | 2022-01-03 | 주식회사 딥엑스 | A mobile artificial neural network apparatus |
US11615260B2 (en) | 2020-09-29 | 2023-03-28 | Servicenow Canada Inc. | Systems and methods for enforcing constraints in character recognition |
KR102632607B1 (en) * | 2020-10-22 | 2024-02-02 | 주식회사 마음에이아이 | Method for service building |
JPWO2023047774A1 (en) * | 2021-09-27 | 2023-03-30 | ||
US11868749B2 (en) * | 2022-01-14 | 2024-01-09 | Discover Financial Services | Configurable deployment of data science models |
KR102645690B1 (en) * | 2023-06-13 | 2024-03-11 | 주식회사 노타 | Device and method for providing artificial intelligence based model corresponding to node |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100114618A1 (en) * | 2008-10-30 | 2010-05-06 | Hewlett-Packard Development Company, L.P. | Management of Variants of Model of Service |
US20120310618A1 (en) * | 2011-05-31 | 2012-12-06 | Oracle International Corporation | Techniques for application tuning |
WO2013079006A1 (en) * | 2011-11-29 | 2013-06-06 | Huawei Technologies Co., Ltd. | Systems and Methods for Customizing Optimization/Transformation/ Processing Strategies |
US20150170053A1 (en) * | 2013-12-13 | 2015-06-18 | Microsoft Corporation | Personalized machine learning models |
US20160170742A1 (en) | 2014-12-15 | 2016-06-16 | Paul Pallath | Automated approach for integrating automated function library functions and algorithms in predictive analytics |
US20170308800A1 (en) * | 2016-04-26 | 2017-10-26 | Smokescreen Intelligence, LLC | Interchangeable Artificial Intelligence Perception Systems and Methods |
US20170357893A1 (en) | 2016-06-10 | 2017-12-14 | Apple Inc. | Artificial intelligence controller that procedurally tailors itself to an application |
Family Cites Families (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050216560A1 (en) * | 2004-03-26 | 2005-09-29 | Seppo Pohja | Marketing using distributed computing |
US8087015B2 (en) * | 2007-10-26 | 2011-12-27 | Microsoft Corporation | Assignment of application models to deployment targets |
US9852176B2 (en) * | 2010-09-03 | 2017-12-26 | Vocus, Inc. | Dynamic gathering of social media content |
US20120185867A1 (en) * | 2011-01-17 | 2012-07-19 | International Business Machines Corporation | Optimizing The Deployment Of A Workload On A Distributed Processing System |
US8930959B2 (en) * | 2011-05-13 | 2015-01-06 | Orions Digital Systems, Inc. | Generating event definitions based on spatial and relational relationships |
US8424026B1 (en) * | 2011-10-03 | 2013-04-16 | Cisco Technology, Inc. | Execution of applications distributed across a plurality of computing devices |
JP5895813B2 (en) * | 2012-01-18 | 2016-03-30 | 富士ゼロックス株式会社 | Program and search device |
US9582254B2 (en) * | 2014-05-22 | 2017-02-28 | Oracle International Corporation | Generating runtime components |
CA3200347A1 (en) * | 2014-06-30 | 2016-01-07 | Amazon Technologies, Inc. | Interactive interfaces for machine learning model evaluations |
US9886670B2 (en) * | 2014-06-30 | 2018-02-06 | Amazon Technologies, Inc. | Feature processing recipes for machine learning |
US11868896B2 (en) * | 2016-01-27 | 2024-01-09 | Microsoft Technology Licensing, Llc | Interface for working with simulations on premises |
WO2018182357A1 (en) * | 2017-03-30 | 2018-10-04 | Samsung Electronics Co., Ltd. | Data learning server and method for generating and using learning model thereof |
CN107766940B (en) * | 2017-11-20 | 2021-07-23 | 北京百度网讯科技有限公司 | Method and apparatus for generating a model |
-
2019
- 2019-05-06 US US16/404,023 patent/US11263540B2/en active Active
- 2019-05-07 CN CN202410344918.1A patent/CN118114789A/en active Pending
- 2019-05-07 EP EP19800091.1A patent/EP3791338B1/en active Active
- 2019-05-07 WO PCT/US2019/031160 patent/WO2019217451A1/en unknown
- 2019-05-07 CN CN201980030065.1A patent/CN112088386B/en active Active
-
2022
- 2022-01-24 US US17/583,133 patent/US12020179B2/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100114618A1 (en) * | 2008-10-30 | 2010-05-06 | Hewlett-Packard Development Company, L.P. | Management of Variants of Model of Service |
US20120310618A1 (en) * | 2011-05-31 | 2012-12-06 | Oracle International Corporation | Techniques for application tuning |
WO2013079006A1 (en) * | 2011-11-29 | 2013-06-06 | Huawei Technologies Co., Ltd. | Systems and Methods for Customizing Optimization/Transformation/ Processing Strategies |
US20150170053A1 (en) * | 2013-12-13 | 2015-06-18 | Microsoft Corporation | Personalized machine learning models |
US20160170742A1 (en) | 2014-12-15 | 2016-06-16 | Paul Pallath | Automated approach for integrating automated function library functions and algorithms in predictive analytics |
US20170308800A1 (en) * | 2016-04-26 | 2017-10-26 | Smokescreen Intelligence, LLC | Interchangeable Artificial Intelligence Perception Systems and Methods |
US20170357893A1 (en) | 2016-06-10 | 2017-12-14 | Apple Inc. | Artificial intelligence controller that procedurally tailors itself to an application |
Non-Patent Citations (1)
Title |
---|
See also references of EP3791338A4 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024058823A1 (en) * | 2022-09-15 | 2024-03-21 | Intel Corporation | Dynamic explainable artificial intelligence pipeline composability and customization |
Also Published As
Publication number | Publication date |
---|---|
CN118114789A (en) | 2024-05-31 |
US20220222550A1 (en) | 2022-07-14 |
EP3791338B1 (en) | 2023-12-27 |
EP3791338A1 (en) | 2021-03-17 |
US11263540B2 (en) | 2022-03-01 |
US20190340524A1 (en) | 2019-11-07 |
CN112088386A (en) | 2020-12-15 |
CN112088386B (en) | 2024-04-09 |
EP3791338A4 (en) | 2021-12-29 |
US12020179B2 (en) | 2024-06-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12020179B2 (en) | Model selection interface | |
US11176485B2 (en) | Dynamic integration of machine-learning modules | |
US9864589B2 (en) | Decision tree ensemble compilation | |
US11521038B2 (en) | Electronic apparatus and control method thereof | |
US11093818B2 (en) | Customer profile learning based on semi-supervised recurrent neural network using partially labeled sequence data | |
US10817314B1 (en) | Augmented shareable video files for robotic process automation | |
US20170223108A1 (en) | Concurrently uploading multimedia objects and associating metadata with the multimedia objects | |
US10963645B2 (en) | Bi-directional contextualized text description | |
US20180047136A1 (en) | Display object pre-generation | |
CN109725961A (en) | The system and method that execution task is inputted based on user using natural language processing | |
US20160259635A1 (en) | Software patch management incorporating sentiment analysis | |
US11991253B2 (en) | Intelligent layer to power cross platform, edge-cloud hybrid artificial intelligence services | |
US11071912B2 (en) | Virtual reality immersion | |
US11842278B2 (en) | Object detector trained via self-supervised training on raw and unlabeled videos | |
US11586858B2 (en) | Image object recognition through multimodal conversation templates | |
CN116615731A (en) | Hybrid data enhancement for knowledge distillation framework | |
US11556650B2 (en) | Methods and systems for preventing utilization of problematic software | |
US20180268290A1 (en) | Model training by discarding relatively less relevant parameters | |
US20220261535A1 (en) | Automatically modifying responses from generative models using artificial intelligence techniques | |
US20180357802A1 (en) | Augmenting Reality with Reactive Programming | |
US20180101579A1 (en) | Adapting an application based on mood and biometrics | |
US10891437B2 (en) | Script modification | |
US20200394532A1 (en) | Detaching Social Media Content Creation from Publication |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19800091 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
ENP | Entry into the national phase |
Ref document number: 2019800091 Country of ref document: EP Effective date: 20201207 |