USING AI MODEL TO DETECT AND REMOVE MEDIA
Embodiments relate to using an artificial intelligence (AI) model to detect and remove media from a mobile device of a user. Aspects include, in response to media being captured on a device, presenting a selection for a mark for the media, where metadata for the media comprises the mark, location information at which the media was captured, and a timestamp at which the media was captured. Aspects include, inputting the metadata for the media in an AI model to generate an output, the output comprising a temporary score. Aspects include, in response to the output generated by the AI model, determining to automatically delete the media from the device.
The present disclosure generally relates to computer systems, and more specifically, to computer-implemented methods, computer systems, and computer program products configured and arranged for using an artificial intelligence (AI) model to detect and remove media from a device of a user such as a mobile device.
In recent years, media such as photos/images, videos, etc., captured using a mobile device have increased in popularity and are stored indefinitely until a user determines which media to remove manually or until some other standard time is reached. Saved photos and videos on the mobile device of a user are typically located within the default photo gallery application, often identified as “Photos” or “Gallery.” The user can access these photos through the application's main interface, which usually displays them in a grid or list format. Additionally, the user can find photos and videos saved from other applications. Although some media is no longer relevant to the user, this media typically remains on the mobile device indefinitely and/or for the service life of the mobile device.
SUMMARYEmbodiments of the disclosure are directed to computer-implemented methods for using an artificial intelligence (AI) model to detect and remove media from a mobile device of a user. A non-limiting method includes, in response to media being captured on a device, presenting a selection for a mark for the media, wherein metadata for the media comprises the mark, location information of the mobile device at the time the media was captured, and a timestamp at which the media was captured. The method includes inputting the metadata for the media in an AI model to generate an output, the output comprising a temporary score. Also, the method includes, in response to the output generated by the AI model, determining to automatically delete the media from the device.
Other embodiments implement features of the above-described methods in computer systems and computer program products.
Additional technical features and benefits are realized through the techniques of the present invention. Embodiments and aspects of the invention are described in detail herein and are considered a part of the claimed subject matter. For a better understanding, refer to the detailed description and to the drawings.
The specifics of the exclusive rights described herein are particularly pointed out and distinctly claimed in the claims at the conclusion of the specification. The foregoing and other features and advantages of the embodiments of the invention are apparent from the following detailed description taken in conjunction with the accompanying drawings in which:
One or more embodiments are configured and arranged to use an artificial intelligence (AI) model to detect and remove media from a mobile device of a user. As an AI-drive approach, one or more embodiments can automatically delete media based on criteria such as location, time, etc. The criteria and additional media deletion criteria are fed into the AI model. The AI model can classify the media (e.g., a photo/image, etc.) into several categories, where each category represents a duration for the media before deletion, such as a day, week, month, year, or more before deletion. According to one or more embodiments, a feedback loop can be provided in which the user is asked for approval before automatically deleting the media. This improves the AI model over time and the number of requests for approval is reduced. In one or more embodiments, a request for approval is eliminated when the AI model is confident that the media is temporary, for example, based on the temporary score meeting a threshold and/or based on a determined category for the media. According to one or more embodiments, various factors/criteria can be considered by the AI model. The AI model can consider the location such as a parking garage, airport, stores, etc. The AI model can consider the content of the media such as numeric content only, text content only, only numeric and text content, or only people (where having media only with people means that the media should probably not be deleted). The AI model can consider repeated media, whether eyes are open or closed, whether there are minor changes from a previously captured photo, etc.
In one or more embodiments, the system can store the media to be deleted in a separate temporal trash folder, and before deleting the media, the system asks the user to review the trash folder. In some cases, the AI model can be utilized to identify media that can be deleted by identifying by-mistake or unintentional photos, identifying images with no light, identifying images where no object is recognized in the image, etc.
Currently, media such as photos/images, videos, etc., captured using a mobile device are stored indefinitely until a user determines which to remove manually or until some other time is reached. Tools exist that can automatically delete similar or duplicate photos or even all media after a period, for example, keeping text messages for 1 year. However, one or more embodiments provide a mechanism to automatically delete media based on specific criteria to analyze and learn the life of the media, according to one or more embodiments.
One or more embodiments described herein can utilize machine learning techniques to perform tasks, such as classifying a feature of interest. More specifically, one or more embodiments described herein can incorporate and utilize rule-based decision making and artificial intelligence reasoning to accomplish the various operations described herein, namely classifying a feature of interest. The phrase “machine learning” broadly describes a function of electronic systems that learn from data. A machine learning system, engine, or module can include a trainable machine learning algorithm that can be trained, such as in an external cloud environment, to learn functional relationships between inputs and outputs, and the resulting model (sometimes referred to as a “trained neural network,” “trained model,” “a trained classifier,” and/or “trained machine learning model”) can be used for classifying a feature of interest, for example. In one or more embodiments, machine learning functionality can be implemented using an Artificial Neural Network (ANN) having the capability to be trained to perform a function. In machine learning and cognitive science, ANNs are a family of statistical learning models inspired by the biological neural networks in nature. ANNs can be used to estimate or approximate systems and functions that depend on a large number of inputs. Convolutional Neural Networks (CNN) are a class of deep, feed-forward ANNs that are particularly useful at tasks such as, but not limited to analyzing visual imagery and natural language processing (NLP). Recurrent Neural Networks (RNN) are another class of deep, feed-forward ANNs and are particularly useful at tasks such as, but not limited to, unsegmented connected handwriting recognition and speech recognition. Other types of neural networks are also known and can be used in accordance with one or more embodiments described herein.
Turning now to
As shown in
The computer system 100 comprises an input/output (I/O) adapter 106 and a communications adapter 107 coupled to the system bus 102. The I/O adapter 106 may be a small computer system interface (SCSI) adapter that communicates with a hard disk 108 and/or any other similar component. The I/O adapter 106 and the hard disk 108 are collectively referred to herein as a mass storage 110.
Software 111 for execution on the computer system 100 may be stored in the mass storage 110. The mass storage 110 is an example of a tangible storage medium readable by the processors 101, where the software 111 is stored as instructions for execution by the processors 101 to cause the computer system 100 to operate, such as is described herein below with respect to the various Figures. Examples of computer program products and the execution of such instruction are discussed herein in more detail. The communications adapter 107 interconnects the system bus 102 with a network 112, which may be an outside network, enabling the computer system 100 to communicate with other such systems. In one embodiment, a portion of the system memory 103 and the mass storage 110 collectively store an operating system, which may be any appropriate operating system to coordinate the functions of the various components shown in
Additional input/output devices are shown as connected to the system bus 102 via a display adapter 115 and an interface adapter 116. In one embodiment, the adapters 106, 107, 115, and 116 may be connected to one or more I/O buses that are connected to the system bus 102 via an intermediate bus bridge (not shown). A display 119 (e.g., a screen or a display monitor) is connected to the system bus 102 by the display adapter 115, which may include a graphics controller to improve the performance of graphics intensive applications and a video controller. A keyboard 121, a mouse 122, a speaker 123, a microphone 124, etc., can be interconnected to the system bus 102 via the interface adapter 116, which may include, for example, a Super I/O chip integrating multiple device adapters into a single integrated circuit. Suitable I/O buses for connecting peripheral devices such as hard disk controllers, network adapters, and graphics adapters typically include common protocols, such as the Peripheral Component Interconnect (PCI) and the Peripheral Component Interconnect Express (PCIe). Thus, as configured in
In some embodiments, the communications adapter 107 can transmit data using any suitable interface or protocol, such as the internet small computer system interface, among others. The network 112 may be a cellular network, a radio network, a wide area network (WAN), a local area network (LAN), or the Internet, among others. An external computing device may connect to the computer system 100 through the network 112. In some examples, an external computing device may be an external webserver or a cloud computing node.
It is to be understood that the block diagram of
In some examples, the computer systems 240 can be representative of user devices. The computer systems 240 can include various software and hardware components including software applications (apps) for communicating over the network 250 as understood by one of ordinary skill in the art. In some examples, the computer systems 240 can include user devices such a personal computer or laptop. The user devices can be a mobile device such as a cellular phone or tablet or a smart device. A smart device is an electronic device, generally connected to other devices or networks via different wireless protocols that can operate to some extent interactively. Several notable types of smart devices are smartphones, smart speakers, tablets, smartwatches, smart bands, smart glasses, and many others.
The network 250 can be a wired and/or wireless communication network, and the communication network includes a telecommunications network, the public switched telephone network (PTSN), voice over IP (VOIP) network, etc. The communication network includes cellular networks, satellite networks, etc.
In one or more embodiments, the computer system 240 can be a stand-alone device that detects and removes media from computer system 240. The computer systems 240 can include one or more input/output (I/O) devices 246 including microphones, displays, sensors, and other peripherals. A computer system 240 can include numerous sensors including motion sensors, light sensors, accelerometers, gyroscopes, a global positioning unit/sensor, image/video sensors including cameras, infrared sensors, etc.
The computer system 240 can include software 242 for operating as a user device and performing functions in accordance with one or more embodiments. The computer system 240 include software 242 for operating as, for example, a mobile device like a smartphone, etc. The computer system 240 includes AI model 210 for outputting a temporary score and/or outputting a category for media in accordance with the context of the media, an image classification model 212 for outputting image descriptors describing the media, and a natural language processing (NLP) model 214 for understanding/processing text or speech. In one or more embodiments, the computer system 240 can request one or more services from the computer system 202, which may include services of one or more of the AI model 210, the image classification model 212, and the NLP model 214, in order to detect and remove media from computer system 240.
The computer system 202, computer systems 240, software 204, software 242, AI model 210, image classification model 212, NLP model 214, etc., can include functionality and features of the computer system 100 in
The computer system 202 may be representative of numerous computer systems and/or distributed computer systems. The computer system 202 can be part of a cloud computing environment such as a cloud computing environment 50 depicted in
At block 302 of the computer-implemented method 300, the software 242 of computer system 240 is configured to receive a media 248, which can be captured and then stored in a repository 244 with other media. The media 248 may be captured at a location using one of the I/O devices 246 such as a camera, and metadata 249 about the media 248 can be stored in the repository 244 or another repository. Examples of metadata for media can include the date and time (or timestamp) media was captured, a unique identification for the media, the location including GPS information (e.g., GPS coordinates of the location) the media was captured, etc. Names and tags input by the user about the media 248 may be stored as metadata. The software 242 can use the location to search a database or the Internet to obtain the address, place, event, etc., associated with the location at the given date and time, and this location information is stored as metadata about the media. In one or more embodiments, the location information may denote a parking garage, an airport, stores, etc. The location information is fed into the AI model 210 as discussed herein.
At block 304, the software 242 of computer system 240 is configured to request that the user mark the media 248 such that the software 242 receives a mark 260 corresponding to the media 248. For example, the software 242 may present to the user a request to mark the media as temporary immediately after capturing the media 248, for example, by presenting an inquiry or pop-up box requesting the user to mark the recently captured media. In one or more embodiments, the software 242 can present the user with a request to mark the media as temporary at some point later in time, for example, later that day, the next day, after a few days, etc. The mark 260 may be a “temporary mark” indicating that the user identified the media 248 as temporary, a “not temporary mark” indicating that the user identified the media 248 as not temporary, and/or “not marked” indicating that the inquiry was closed without the user making a selection. There may be a case in which the user knows that the upcoming capture of the media is going to be temporary, for example, the next few pictures/videos are only temporary. Accordingly, the user can set a temporary flag (e.g., mark 260) in advance that all media to be captured in a predetermined timeframe (e.g., the next 1 hour) are going to be marked as temporary, and the user can set the deletion duration for the media for a desired time (e.g., 1 day, 1 week, 1 month, 1 year, etc.), according to one or more embodiments.
Additionally, according to one or more embodiments, once the media 248 is captured (e.g., photo, video, etc.) by the computer system 240,
At block 306, the software 242 of computer system 240 is configured to identify whether the media 248 has the mark 260 stored as temporary mark, not temporary mark, and/or not marked. Also, the software 242 identifies whether the mark 260 and/or media 248 has a duration 262 before deletion, such as X days, X weeks, X months, and/or X years before deletion. The mark 260 including the duration 262 may be stored as metadata 249 for the media 248. The mark 260 and the duration 262 are to be fed as input to the AI model 210.
In some embodiments, the user may choose not to select an option for the mark 260, and not making any selection means not marked or no mark (e.g., the mark 260 is empty), but the user may still choose to select a duration 262 for the media 248. In some embodiments, the user may choose not to select a duration 262 (e.g., the duration 262 is empty), but the user still selects a mark 260 such as temporary or not temporary for the media 248. In one or more embodiments, the user may not select an option for the mark 260 (e.g., not marked or no mark such that the mark 260 is empty) and the user may not select a duration 262 meaning that the duration 262 is empty. In one or more embodiments, both the options for the mark 260 and the duration 262 may be selected or input for the media 248.
At block 308, the software 242 of computer system 240 is configured to obtain metadata 249 about the media 248. The metadata 249 can include the mark 260, the duration 262, an original location (e.g., of the computer system 240) at which the media 248 was captured, tags, names, original date, original time (e.g., time stamp), a unique identification, etc., for the media 248. A tag or name may be an identification of the media input by the user who captured the media 248, such as family vacation.
At block 310, the software 242 of computer system 240 is configured to input the media 248 into an image classification model 212 to obtain an image description for the media 248. The image description of the media 248 generated by the image classification model 212 may be stored as metadata 249 for media 248. An image classification model is a type of machine learning model designed to recognize and categorize images into predefined classes or labels for identification. The image classification model 212 may be a computer vision model which is a type of machine learning or deep learning model designed to understand and interpret visual information from the world like images or videos. The image classification model 212 is configured to output an image description of the media 248, for example, to describe the content/objects in the media 248. Image classification models can include neural networks such as convolutional neural networks (CNNs). Some examples may include residual networks (ResNet), inception networks, visual geometry group (VGG), vision transformers (ViT), You Only Look Once (YOLO), Faster R-CNN, Mask R-CNN, etc.
At block 311, after waiting a period of time, the software 242 of computer system 240 is configured to obtain external data including the current date, current time, and/or current location of the computer system 240.
At block 312, the software 242 of computer system 240 is configured to input the metadata 249 including the mark 260 and duration 262 into the AI model 210, along with input from social media of the user, input from a calendar application of the user, information from an NLP model, etc., along with input of other external data including the current date, current time, and current location of the computer system 240. In one or more embodiments, the media 248 may be processed by an NLP model 214 to interpret any text or speech in the media 248, and the NLP interpretation of the media 248 is also input into the AI model 210. The NLP model 214 may interpret information in the calendar application, recent text messages, recent emails, social media accounts, etc., of the user on the computer system 240 in order to understand the current context of the media 248 for the user. In one or more embodiments, the image classification model 212 can identify an object (e.g., a temporary object) in the media 248 such as a movie ticket, plane ticket, etc., and the NLP model 214 can interpret the information on the object as having a date and/or time. In accordance with one or more embodiments, the software 242 is configured to recognize that the original date and/or original time has passed, recognize that the computer system 240 (e.g., mobile device) is no longer at the original location associated with an object in the media 240 (e.g., the current location of the computer system 240 is no longer the original location of the movie theater), and identify that the object in the media 248 is no longer useful based on the difference in the original date, original time, and/or original location as respectively compared to the current date, current time, and/or current location; based on the difference, the software 242 is configured to delete the media 248.
In one or more embodiments, the software 242 may parse a calendar application to obtain present and upcoming entries for the user. In one or more embodiments, the software 242 may parse social media accounts of the user for posts, messages, etc., indicating current events associated with the user. The AI model 210 is trained to output a temporary score 270 and/or a category 272 for the media 248 based on the various inputs. The temporary score 270 is a likelihood that the media 248 is temporary, for example, a likelihood that the media 248 is to be deleted. A higher temporary score 270 indicates that the corresponding media is likely to be deleted and not remain stored on the computer system 240 (e.g., user device) for the life of the device. As such, the software 242 is configured to delete the media based on its temporary score. A lower temporary score 270 indicates that the corresponding media is likely permanent and should remain stored on the computer system 240. For instance, an example scenario is a user driving a vehicle into an airport parking lot and taking a picture of the parking location so that the user can remember where the vehicle is parked. This photo is only useful while the vehicle is parked in the parking space of the parking lot. Once the vehicle is driven out of the parking lot, the photo is no longer useful. Accordingly, for such a photo or video, the AI model 210 is trained to output a high temporary score 270, for example, with a value of 92%, 93%, 95%, 96%, 97%, 98%, 99%, or 100%. An image a child's birthday party may have a very low temporary score 270 or even a value of 0, which means that the software 242 should not delete the image. In such a case with a low temporary score 270, for example, below a low temporary score threshold (e.g., less than 20, 15, 10, 5), the software 242 may be configured to discontinue the process of the computer-implemented method 300 because of the low temporary score 270.
As noted above, the AI model 210 can classify the media 248 into categories. Each category represents a duration for the media 248 before deletion such as, for example, a day(s), a week(s), a month(s), a year(s), or more. There could be 2, 3, 4, 5, 6, 7, 8, or more distinctive categories. The categories can include a Y days category, a Y weeks category, a Y months category, a Y years category, etc. Also, the categories could be delineated as a very short duration, a short duration (which is greater than a very short duration), a medium duration (which is greater than the short duration), a long duration (which is greater than a medium duration), and/or a life duration (e.g., storing the media on the computer system 240 for the life of the device). The AI model 210 outputs a category 272 for the media 248. The output category 272 is a time period for keeping the media 248 stored on the computer system 240 before deletion. The category 272 output by the AI model 210 may be analogous to the duration 262 except the category 272 is output by the AI model 210 while the duration 262 is input by the user. Continuing the example scenario of the vehicle being parked in the airport parking lot and a picture of the parking location being captured, the AI model 210 may output the category 272 indicative of a short duration such as 1 or 2 weeks.
At block 314, the software 242 of computer system 240 is configured to receive output of the temporary score 270 and the category 272 for deletion from the AI model 210.
At block 316, after waiting a period of time, the software 242 of computer system 240 is configured to obtain the current date, current time, and/or current location of the computer system 240. When the software 242 has received the duration 262 for the time of the media 248, the software 242 waits some period of time that is equivalent to and/or greater than the duration 262 before obtaining the current date, time, and location. In one or more embodiments, the waiting period may be a predefined period. The predefined period may be a default setting such as 1 week or more, 1 month or more, etc. In one or more embodiments, the predefined period to wait can be user configurable. For example, a user may set the waiting period as 1 year in the software 242.
At block 318, the software 242 of computer system 240 is configured to check whether a category 272 was output from the AI model 210. In one or more embodiments, the AI model 210 may not output a category 272 for deletion for the media based on a user setting. If there is no category 270 for deletion output from the AI model 210, the flow proceeds to block 322.
At block 320, the software 242 of computer system 240 is configured to check whether the time (e.g., X weeks such as 1 week or 2 weeks) for the category 272 for deletion has been met or expired based on comparing the original date and time that the media 248 was captured to the current date and time. When the time for the category 272 for deletion has not been met or has not expired, flow returns to block 316.
At block 322, the software 242 of computer system 240 is configured to check whether the temporary score 270 of the media 248 is equal to or greater than a threshold score. For example, the threshold score may be 90%, 91%, 92%, 93%, 95%, 97%, 98%, etc. This may be a threshold score for automatic deletion of the media.
At block 324, when (NO) the temporary score of the media is not equal to or greater than the threshold score for automatic deletion, the software 242 of computer system 240 is configured to ask the user if this media 248 can be deleted.
At block 326, when (YES) the user response affirms that the media 248 can be deleted from the computer system 240, the software 242 of computer system 240 is configured to delete the media 248 from the computer system 240. Also, the software 242 provides feedback as training data to further train the AI model 210. In this case, the feedback includes the response (YES) from the user to the inquiry and all the metadata 249 associated with the media 248.
At block 328, when (NO) the user response is that the media 248 cannot be deleted, the media 248 is not deleted and feedback is provided as training data to further train the AI model 210. The feedback includes the response (NO) from the user and all the metadata 249 associated with the media 248.
After executing the decision block 322, when (YES) the temporary score 270 of the media 248 is equal to or greater than the threshold score for automatic deletion, the software 242 of computer system 240 is configured to automatically delete the media 248 from the computer system 240 at block 326. In one or more embodiments, as an option, the software 242 may move the media 248 that is to be automatically deleted into a deletion pool 280 (e.g., a trash file) and inform the user that the media 248 is to be automatically deleted in Z days. At this point, the user can choose to remove the media 248 from the automatic deletion pool 280 by selecting the media 248 in a graphical user interface or ignore the message. After Z days, the software 242 is configured to automatically delete the media 248 in the deletion pool 280 with no further user input.
As an example, there can be an image of a user's family, and this may be an image that is to be stored indefinitely. In contrast, there can be in an image of a user's hotel room number on a business trip or a parking space in a parking lot, where these images are temporary. According to one or more embodiments, once the image/photo, video, or other media is captured in the mobile device, there can be an option presented to the user to keep the media for a certain duration like, for example, 1 day, 1 week, 1 month, and/or 1 year. This may be implemented by a specific selection on the media, such as a long touch on the photo/video, a double/triple press, and/or other gesture either while taking the picture/video or when reviewing it.
As an example, the software 242 may use a set of logical rules (e.g., rules-based algorithms) as a configuration to delete the photos/videos that were taken at any given geographical location (e.g., a parking lot) and/or specify the time frame (e.g., photos/videos taken today between 5 PM to 9 PM) in which photos/videos can be deleted after 1 day, 1 week, 1 month, or 1 year. Another example is, if the global positioning system (GPS) unit of the computer system 240 (e.g., mobile device) detects that the user is in a parking lot, the software 242 is configured to keep the image until after the computer system 240 of the user arrives back at the same parking lot and then automatically delete the image. This is because the software 242 recognizes that the GPS unit output matching locations or nearly matching locations as a different date and time. As technical solutions and effects, this saves mobile storage/memory. This saves time and effort for the user, so that the user does not have to scroll through the old photos/videos to delete the photos/videos that are no longer useful. This also provides an improved user experience (UX) in this age when numerous images and videos are taken.
For example, one feature is the mark 260 which can have a value for “temporary mark,” “not temporary,” and “not marked” such that the AI model 210 can learn to generate the temporary score 270 and the category 272. Another feature is the duration 262 which can have different values according to the answer. Other features for training the AI model 210 may include: is the media of a residence (e.g., home, a hotel, etc.), is the media a parking lot (e.g., an airport parking lot, mall parking lot, amusement park parking lot, etc.), is the media of a store, is the media of your vehicle (e.g., an image of vehicle at home has a different context from a picture of a vehicle in a parking lot), is the media with people, does the media contain text, is the media of an accident location, does the media contain an event date and/or time, is the media of a temporary item (e.g., a plane/train/bus/ship boarding pass, movie ticket, luggage tag, game/sports ticket, event pass, parking pass, etc.), etc. Also, features may include whether the media has content that is numeric only (e.g., without people), with letters and numerals only (e.g., without people), of a sign, of a placard, etc. The features may include whether eyes are open or closed, whether the media is a repeat of an earlier/later taken image, whether there are only minor changes from an earlier/later taken image, etc. The values (or answers) to these features are fed as training data to the AI model 210 such that the AI model 210 can learn to make adjustments based on the training data. The training data can be labeled such that the AI model 210 knows when the features should have a likelihood of being temporary or a likelihood of being permanent.
Additional features may include an image description of the media, location information of the media, etc. Also, features may include social information from social media accounts, event information from a calendar application, and text messages associated with the media. As example features, social media information may indicate that the user is on vacation such that images of the beach are permanent while images of the hotel room door (or key car room number) are temporary. There can be many other features in the training data that help the AI model 210 to distinguish between media that is temporary versus media that is to be stored for a longer period of time. This allows the AI model 210 to classify media into one category 272 of the categories each representing a different duration for the media before deletion, as well as generate the temporary score 270 indicating the likelihood that the media is to be stored temporarily and then deleted.
During the labeling phase 702, a labeled data generator 706 and/or a subject matter expert can generate labeled training data 708 from initial training data 710. In one or more embodiments, the labeled data generator 706 can include an algorithm configured to generate labeled training data 708 from initial training data 710. The initial training data 710 refers to the dataset used as the starting point for training the AI model 210. In some embodiments, initial training data 710 includes the features (e.g., including the metadata 249) of the media 248.
In some cases, the initial training data 710 may include media known in advance to be temporary, which has features used to generate a high temporary score (e.g., greater than 90%, 91%, 92%, and so forth) and a category of, for example, a short duration. Also, the initial training data 710 may include media known in advance to be permanent (e.g., to be stored for an extended time or for the life of the device) and be in a category of, for example, a long duration (e.g., for the life of the device).
Additionally, the initial training data 710 includes initial positive and negative labels that may be in the form [feature 1, feature 2, feature 3, feature N, label], where a negative label indicates permanent storage (e.g., for the service life of device) for the given media, where a positive label indicates temporary storage (e.g., for a short duration, a few days, few weeks, etc.) for the given media. In order to label the training data (e.g., which may be historical data of some previously stored media on the user device), the logic of the labeled data generator 706 is configured to designate media that is temporary with a positive label and media that is permanent with a negative label. In some cases, the user of the computer system may identify media that is to be stored permanently, as a way to further personalize the AI model. Similarly, the user of the computer system may identify media that is to be stored temporarily.
During training phase 704, an initial model 712 is trained on the labeled training data 708 to generate the AI model 210. In some embodiments, the initial model 712 processes the labeled training data 708 through one or more layers, for example, using a machine learning architecture such as a neural network, transformer, or other advanced models, to identify patterns and relationships within the labeled training data 708 that are indicative of a temporary score and category for the media. In some embodiments, parameters of the initial model 712 are initialized (randomly or to predetermined parameters learned from prior training phases for the current or any prior model) and adjusted iteratively to minimize a loss function, which quantifies the difference between the predicted temporal score/category and the actual temporal score observed in the labeled training data 708. Common loss functions used in this context can include cross-entropy loss and mean squared error (MSE).
Throughout the training process, techniques such as backpropagation and gradient descent can be employed to update the internal parameters of the initial model 712, such as the weights and biases of one or more layers, thereby gradually improving its predictive accuracy. The training phase may also involve techniques like regularization to prevent overfitting, ensuring that resultant AI model 210 generalizes well to new, unseen data. Additionally, the training process may include validation steps, where a portion of the labeled training data 708 is set aside to evaluate the performance and fine-tune the hyperparameters of the AI model 210.
Once the training phase 704 is complete, the resulting AI model 210 is capable of generating predictions of temporary scores and categories for media. During inference, a temporary score and a category for each media are determined. In accordance with one or more embodiments, these predictions of temporary scores and categories are used to determine whether to automatically delete the media 248 from the computer system 240 or to continue storing the media.
As noted above, the AI model can be built on a pre-trained model and then further trained as discussed herein. Foundation models: Foundation models (FMs) are machine learning models trained on a broad spectrum of generalized and unlabeled data. Foundation models are capable of performing a wide variety of general tasks. Foundation models are the result of the latest advancements in a technology that has been evolving for decades. In general, a foundational model uses learned patterns and relationships to predict the next item in a sequence. For example, with image generation, the foundational model analyzes the image and creates a sharper, more clearly defined version of the image. Similarly, with text, the foundational model predicts the next word in a string of text based on the previous words and their context. The foundational model then selects the next word using probability distribution techniques.
Large language models: Large language models (LLMs) are one class of foundational models. LLMs are specifically focused on language-based tasks such as such as summarization, text generation, classification, open-ended conversation, and information extraction.
Turning to
Further, the temporary score 270 indicates a likelihood that the media 248 is temporary. The output comprises a category 272 for the media, the category denoting a period of time in which the media 248 should be stored on the device before deletion. The selection for the mark 260 has options of a temporary mark or a not temporary mark. Receiving no selection for the mark 260 is denoted as not marked.
The software 242 is configured to present an opportunity for selecting a duration for the media 248, where the duration is a user indication of how long the media should remain on the device before deletion, wherein the metadata input to the AI model comprises the duration.
The location information provides a context of a location in which the media 248 was captured such that the output of the AI model 210 is generated based at least in part on the context of the location. The location information is obtained from location coordinates (e.g., GPS coordinates, waypoints, etc.); and a search is performed on the location coordinates to identify details (e.g., the location is a parking lot) about the location to include as the location information, in which the details indicate the context about a temporariness of the media captured at the location. The metadata further comprises social information from social media, event information from a calendar application, and text messages associated with the media.
It is to be understood that although this disclosure includes a detailed description on cloud computing, implementation of the teachings recited herein are not limited to a cloud computing environment. Rather, embodiments of the present invention are capable of being implemented in conjunction with any other type of computing environment now known or later developed.
Cloud computing is a model of service delivery for enabling convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services) that can be rapidly provisioned and released with minimal management effort or interaction with a provider of the service. This cloud model may include at least five characteristics, at least three service models, and at least four deployment models.
Characteristics are as follows:
-
- On-demand self-service: a cloud consumer can unilaterally provision computing capabilities, such as server time and network storage, as needed automatically without requiring human interaction with the service's provider.
- Broad network access: capabilities are available over a network and accessed through standard mechanisms that promote use by heterogeneous thin or thick client platforms (e.g., mobile phones, laptops, and PDAs).
- Resource pooling: the provider's computing resources are pooled to serve multiple consumers using a multi-tenant model, with different physical and virtual resources dynamically assigned and reassigned according to demand. There is a sense of location independence in that the consumer generally has no control or knowledge over the exact location of the provided resources but may be able to specify location at a higher level of abstraction (e.g., country, state, or datacenter).
- Rapid elasticity: capabilities can be rapidly and elastically provisioned, in some cases automatically, to quickly scale out and rapidly released to quickly scale in. To the consumer, the capabilities available for provisioning often appear to be unlimited and can be purchased in any quantity at any time.
- Measured service: cloud systems automatically control and optimize resource use by leveraging a metering capability at some level of abstraction appropriate to the type of service (e.g., storage, processing, bandwidth, and active user accounts). Resource usage can be monitored, controlled, and reported, providing transparency for both the provider and consumer of the utilized service.
Service Models are as follows:
-
- Software as a Service (SaaS): the capability provided to the consumer is to use the provider's applications running on a cloud infrastructure. The applications are accessible from various client devices through a thin client interface such as a web browser (e.g., web-based e-mail). The consumer does not manage or control the underlying cloud infrastructure including network, servers, operating systems, storage, or even individual application capabilities, with the possible exception of limited user-specific application configuration settings.
- Platform as a Service (PaaS): the capability provided to the consumer is to deploy onto the cloud infrastructure consumer-created or acquired applications created using programming languages and tools supported by the provider. The consumer does not manage or control the underlying cloud infrastructure including networks, servers, operating systems, or storage, but has control over the deployed applications and possibly application hosting environment configurations.
- Infrastructure as a Service (IaaS): the capability provided to the consumer is to provision processing, storage, networks, and other fundamental computing resources where the consumer is able to deploy and run arbitrary software, which can include operating systems and applications. The consumer does not manage or control the underlying cloud infrastructure but has control over operating systems, storage, deployed applications, and possibly limited control of select networking components (e.g., host firewalls).
Deployment Models are as follows:
-
- Private cloud: the cloud infrastructure is operated solely for an organization. It may be managed by the organization or a third party and may exist on-premises or off-premises.
- On-premises data center: on-premises data center is the cloud infrastructure that is privately owned, operated, and controlled solely for an organization. The on-premises data center may be considered traditional cloud computing.
- Community cloud: the cloud infrastructure is shared by several organizations and supports a specific community that has shared concerns (e.g., mission, security requirements, policy, and compliance considerations). It may be managed by the organizations or a third party and may exist on-premises or off-premises.
- Public cloud: the cloud infrastructure is made available to the general public or a large industry group and is owned by an organization selling cloud services.
- Hybrid cloud: the cloud infrastructure is a composition of two or more clouds (private, community, or public) that remain unique entities but are bound together by standardized or proprietary technology that enables data and application portability (e.g., cloud bursting for load-balancing between clouds).
A cloud computing environment is service oriented with a focus on statelessness, low coupling, modularity, and semantic interoperability. At the heart of cloud computing is an infrastructure that includes a network of interconnected nodes.
Referring now to
Referring now to
Hardware and software layer 60 includes hardware and software components. Examples of hardware components include: mainframes 61; RISC (Reduced Instruction Set Computer) architecture based servers 62; servers 63; blade servers 64; storage devices 65; and networks and networking components 66. In some embodiments, software components include network application server software 67 and database software 68.
Virtualization layer 70 provides an abstraction layer from which the following examples of virtual entities may be provided: virtual servers 71; virtual storage 72; virtual networks 73, including virtual private networks; virtual applications and operating systems 74; and virtual clients 75.
In one example, management layer 80 may provide the functions described below. Resource provisioning 81 provides dynamic procurement of computing resources and other resources that are utilized to perform tasks within the cloud computing environment. Metering and Pricing 82 provide cost tracking as resources are utilized within the cloud computing environment, and billing or invoicing for consumption of these resources. In one example, these resources may include application software licenses. Security provides identity verification for cloud consumers and tasks, as well as protection for data and other resources. User portal 83 provides access to the cloud computing environment for consumers and system administrators. Service level management 84 provides cloud computing resource allocation and management such that required service levels are met. Service Level Agreement (SLA) planning and fulfillment 85 provide pre-arrangement for, and procurement of, cloud computing resources for which a future requirement is anticipated in accordance with an SLA.
Workloads layer 90 provides examples of functionality for which the cloud computing environment may be utilized. Examples of workloads and functions which may be provided from this layer include: mapping and navigation 91; software development and lifecycle management 92; virtual classroom education delivery 93; data analytics processing 94; transaction processing 95; and workloads and functions 96. One or more aspects of embodiments may be executed, at least in part, by workloads and functions 96. In one or more embodiments, the software 204, the AI model 210, image classification model 212, NLP model 214, etc., can utilize, be executed as, and/or be integrated with workloads and functions 96.
Various embodiments of the present invention are described herein with reference to the related drawings. Alternative embodiments can be devised without departing from the scope of this invention. Although various connections and positional relationships (e.g., over, below, adjacent, etc.) are set forth between elements in the following description and in the drawings, persons skilled in the art will recognize that many of the positional relationships described herein are orientation-independent when the described functionality is maintained even though the orientation is changed. These connections and/or positional relationships, unless specified otherwise, can be direct or indirect, and the present invention is not intended to be limiting in this respect. Accordingly, a coupling of entities can refer to either a direct or an indirect coupling, and a positional relationship between entities can be a direct or indirect positional relationship. As an example of an indirect positional relationship, references in the present description to forming layer “A” over layer “B” include situations in which one or more intermediate layers (e.g., layer “C”) is between layer “A” and layer “B” as long as the relevant characteristics and functionalities of layer “A” and layer “B” are not substantially changed by the intermediate layer(s).
For the sake of brevity, conventional techniques related to making and using aspects of the invention may or may not be described in detail herein. In particular, various aspects of computing systems and specific computer programs to implement the various technical features described herein are well known. Accordingly, in the interest of brevity, many conventional implementation details are only mentioned briefly herein or are omitted entirely without providing the well-known system and/or process details.
In some embodiments, various functions or acts can take place at a given location and/or in connection with the operation of one or more apparatuses or systems. In some embodiments, a portion of a given function or act can be performed at a first device or location, and the remainder of the function or act can be performed at one or more additional devices or locations.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and/or “comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, element components, and/or groups thereof.
The corresponding structures, materials, acts, and equivalents of all means or step plus function elements in the claims below are intended to include any structure, material, or act for performing the function in combination with other claimed elements as specifically claimed. The present disclosure has been presented for the purposes of illustration and description but is not intended to be exhaustive or limited to the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the disclosure. The embodiments were chosen and described in order to best explain the principles of the disclosure and the practical application, and to enable others of ordinary skill in the art to understand the disclosure for various embodiments with various modifications as are suited to the particular use contemplated.
The diagrams depicted herein are illustrative. There can be many variations to the diagrams or the steps (or operations) described therein without departing from the spirit of the disclosure. For instance, the actions can be performed in a differing order or actions can be added, deleted, or modified. Also, the term “coupled” describes having a signal path between two elements and does not imply a direct connection between the elements with no intervening elements/connections therebetween. All of these variations are considered a part of the present disclosure.
The following definitions and abbreviations are to be used for the interpretation of the claims and the specification. As used herein, the terms “comprises,” “comprising,” “includes,” “including,” “has,” “having,” “contains” or “containing,” or any other variation thereof, are intended to cover a non-exclusive inclusion. For example, a composition, a mixture, process, method, article, or apparatus that comprises a list of elements is not necessarily limited to only those elements but can include other elements not expressly listed or inherent to such composition, mixture, process, method, article, or apparatus.
Additionally, the term “exemplary” is used herein to mean “serving as an example, instance or illustration.” Any embodiment or design described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments or designs. The terms “at least one” and “one or more” are understood to include any integer number greater than or equal to one, e.g., one, two, three, four, etc. The terms “a plurality” are understood to include any integer number greater than or equal to two, e.g., two, three, four, five, etc. The term “connection” can include both an indirect “connection” and a direct “connection.”
The terms “about,” “substantially,” “approximately,” and variations thereof, are intended to include the degree of error associated with measurement of the particular quantity based upon the equipment available at the time of filing the application. For example, “about” can include a range of ±8% or 5%, or 2% of a given value.
The present invention may be a system, a method, and/or a computer program product at any possible technical detail level of integration. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention.
The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.
Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, configuration data for integrated circuitry, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++, or the like, and procedural programming languages, such as the “C” programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instruction by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present invention.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the Figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.
The descriptions of the various embodiments of the present invention have been presented for purposes of illustration but are not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over technologies found in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments described herein.
Claims
1. A computer-implemented method comprising:
- in response to media being captured on a device, presenting a selection for a mark for the media, wherein metadata for the media comprises the mark, location information at which the media was captured, and a timestamp at which the media was captured;
- inputting the metadata for the media in an artificial intelligence (AI) model to generate an output, the output comprising a temporary score; and
- in response to the output generated by the AI model, determining to automatically delete the media from the device.
2. The computer-implemented method of claim 1, wherein the temporary score indicates a likelihood that the media is temporary.
3. The computer-implemented method of claim 1, wherein the output comprises a category for the media, the category denoting a period of time in which the media should be stored on the device before deletion.
4. The computer-implemented method of claim 1, wherein the selection for the mark has options of a temporary mark or a not temporary mark.
5. The computer-implemented method of claim 4, wherein receiving no selection for the mark is denoted as not marked.
6. The computer-implemented method of claim 1, further comprising presenting an opportunity for selecting a duration for the media, wherein the duration is a user indication of how long the media should remain on the device before deletion, wherein the metadata input to the AI model comprises the duration.
7. The computer-implemented method of claim 1, wherein the location information provides a context of a location in which the media was captured such that the output of the AI model is generated based at least in part on the context of the location.
8. The computer-implemented method of claim 7, wherein:
- the location information is obtained from location coordinates; and
- a search is performed on the location coordinates to identify details about the location to include as the location information, in which the details indicate the context about a temporariness of the media captured at the location.
9. The computer-implemented method of claim 1, wherein the metadata further comprises social information from social media, event information from a calendar application, and text messages associated with the media.
10. A device comprising:
- one or more memories having computer readable instructions; and
- one or more processors for executing the computer readable instructions, the computer readable instructions when executed cause the one or more processors to perform operations comprising: in response to media being captured on the device, presenting a selection for a mark for the media, wherein metadata for the media comprises the mark, location information at which the media was captured, and a timestamp at which the media was captured; inputting the metadata for the media in artificial intelligence (AI) model to generate an output, the output comprising a temporary score; and in response to the output generated by the AI model, determining to automatically delete the media from the device.
11. The device of claim 10, wherein the temporary score indicates a likelihood that the media is temporary.
12. The device of claim 10, wherein the output comprises a category for the media, the category denoting a period of time in which the media should be stored on the device before deletion.
13. The device of claim 10, wherein the selection for the mark has options of a temporary mark or a not temporary mark.
14. The device of claim 13, wherein receiving no selection for the mark is denoted as not marked.
15. The device of claim 10, wherein the one or more processors to perform the operations further comprising presenting an opportunity for selecting a duration for the media, where the duration is a user indication of how long the media should remain on the device before deletion, where the metadata input to the AI model comprises the duration.
16. The device of claim 10, wherein the location information provides a context of a location in which the media was captured such that the output of the AI model is generated based at least in part on the context of the location.
17. The device of claim 16, wherein:
- the location information is obtained from location coordinates; and
- a search is performed on the location coordinates to identify details about the location to include as the location information, in which the details indicate the context about a temporariness of the media captured at the location.
18. The device of claim 10, wherein the metadata further comprises social information from social media, event information from a calendar application, and text messages associated with the media.
19. A computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by one or more processors to cause the one or more processors to perform operations comprising:
- in response to media being captured on a device, presenting a selection for a mark for the media, wherein metadata for the media comprises the mark, location information at which the media was captured, and a timestamp at which the media was captured;
- inputting the metadata for the media in an artificial intelligence (AI) model to generate an output, the output comprising a temporary score; and
- in response to the output generated by the AI model, determining to automatically delete the media from the device.
20. The computer program product of claim 19, wherein the temporary score indicates a likelihood that the media is temporary.
Type: Application
Filed: May 20, 2025
Publication Date: Nov 26, 2026
Inventors: Shaik Ismail (Bangalore), Christopher Dawson (Arlington, VA), Omar Odibat (Cedar Park, TX), José Cano (Heredia)
Application Number: 19/212,874