A video storage method, apparatus, device, and storage medium

By constructing user profiles and calculating comprehensive importance scores, the problem of the inability to store data in a differentiated manner in existing home monitoring systems has been solved, enabling long-term storage of high-value video events and meeting the personalized storage needs of family members.

CN123075151APending Publication Date: 2026-11-10SHANGHAI ZHIWEI ROBOT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611216642.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-12
Publication Date
2026-11-10

AI Technical Summary

Technical Problem

Existing home surveillance video systems cannot identify the attention preferences of different family members, resulting in all videos using the same storage strategy, failing to achieve differentiated storage, and failing to guarantee the long-term storage of high-value video events.

Method used

By acquiring user interaction data to build user profiles, interest scores are determined based on event content attributes and user profiles. Combined with preset event importance scores, a comprehensive importance score is calculated, and the storage level of video events is determined based on the score, enabling differentiated storage for multiple users.

Benefits of technology

It enables multi-user differentiated storage of home surveillance videos, ensuring the long-term storage of high-value video events and meeting the personalized storage needs of different family members.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123075151A_ABST
    Figure CN123075151A_ABST
Patent Text Reader

Abstract

This invention discloses a video storage method, apparatus, device, and storage medium. The method includes: acquiring user interaction behavior data with a monitoring system and constructing user profile information for each user based on the interaction behavior data; acquiring event content attributes corresponding to video events to be stored and determining the interest score of each user for the video events to be stored based on the event content attributes and user profile information; determining the comprehensive importance score of the video events to be stored for each user based on a preset event importance score and the interest score, and selecting a target comprehensive importance score from the comprehensive importance scores; determining the storage level corresponding to the video events to be stored based on the target comprehensive importance score and a preset mapping rule, and storing the video according to the storage level. These technical features enable precise quantification of video event content, achieving multi-user differentiated storage of home monitoring videos, and ensuring the long-term storage of high-value video events.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of interdisciplinary technology of intelligent video storage and home monitoring systems, and in particular to a video storage method, apparatus, device, and storage medium. Background Technology

[0002] Unlike photos taken by users, home surveillance videos are passively and continuously recorded, and users cannot pre-select which content is worth saving. Existing home video surveillance systems (such as Ring, Nest, and Arlo) all use a uniform storage strategy: all family members share the same storage plan (based on the number of devices or the number of days), failing to identify the different members' preferences. These differentiated needs are ignored in existing systems, and all videos are stored at the same quality. Summary of the Invention

[0003] This invention provides a video storage method, apparatus, device, and storage medium that can accurately quantify video event content, realize multi-user differentiated storage of home surveillance videos, and ensure long-term storage of high-value video events.

[0004] In one embodiment, the present invention provides a video storage method, including: acquiring user interaction behavior data with a monitoring system, and constructing user profile information corresponding to each user based on the interaction behavior data;

[0005] Obtain the event content attributes corresponding to the video event to be stored, and determine the interest score of each user for the video event to be stored based on the event content attributes and the user profile information;

[0006] The overall importance score of the video event to be stored to each user is determined based on the preset event importance score and the interest score, and a target overall importance score is selected from the overall importance scores.

[0007] Based on the target comprehensive importance score and the preset mapping rules, the storage level corresponding to the video event to be stored is determined, and the video is stored according to the storage level.

[0008] In one embodiment, the present invention provides a video storage device, including: a user profile construction module, used to acquire user interaction behavior data of a monitoring system, and construct user profile information corresponding to each user based on the interaction behavior data;

[0009] The interest score determination module is used to obtain the event content attributes corresponding to the video event to be stored, and determine the interest score of each user for the video event to be stored based on the event content attributes and the user profile information.

[0010] The comprehensive importance score determination module is used to determine the target comprehensive importance score of the video event to be stored for each user based on the preset event importance score and the interest score;

[0011] The storage level determination module is used to determine the storage level corresponding to the video event to be stored based on the target comprehensive importance score and the preset mapping rules, and to store the video according to the storage level.

[0012] In one embodiment, the present invention provides an electronic device, including:

[0013] At least one processor; and

[0014] A memory that is communicatively connected to at least one processor; wherein,

[0015] The memory stores a computer program that can be executed by at least one processor, such that the at least one processor can perform a video storage method provided in any embodiment of the present invention.

[0016] In one embodiment, the present invention provides a computer-readable storage medium storing computer instructions that, when executed by a processor, implement a video storage method provided in any embodiment of the present invention.

[0017] In one embodiment, the present invention provides a computer program product, the computer program product including a computer program, which, when executed by a processor, implements a video storage method provided in any embodiment of the present invention.

[0018] The technical solution of this invention constructs user profile information for each user through interactive behavior data. Then, based on event content attributes and user profile information, it determines the interest score of each user for the video event to be stored. On this basis, it determines the comprehensive importance score of the video event to be stored for each user according to a preset event importance score and the interest score. Then, it selects a target comprehensive importance score from the comprehensive importance scores. Based on the target comprehensive importance score and a preset mapping rule, it determines the storage level corresponding to the video event to be stored. This enables precise quantification of video event content, realizes multi-user differentiated storage of home surveillance videos, and ensures the long-term storage of high-value video events.

[0019] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0020] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 This is a flowchart of a video storage method provided in an embodiment of the present invention;

[0022] Figure 2 This is a flowchart of another video storage method provided in an embodiment of the present invention;

[0023] Figure 3 This is a schematic diagram of the architecture of a video storage method provided in an embodiment of the present invention;

[0024] Figure 4 This invention provides a diagram illustrating the collaborative relationship between a four-dimensional user profile structure and a differentiated storage strategy, as shown in one embodiment.

[0025] Figure 5 This is a schematic diagram of the structure of a video storage device provided in an embodiment of the present invention;

[0026] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0027] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0028] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0029] In one embodiment, Figure 1 This is a flowchart of a video storage method provided by an embodiment of the present invention. This embodiment is applicable to the allocation of video storage resources in a multi-user scenario in a home monitoring network. The method can be executed by a video storage device, which can be implemented in hardware and / or software.

[0030] like Figure 1 As shown, the method includes:

[0031] S110. Obtain user interaction data with the monitoring system, and construct user profile information for each user based on the interaction data.

[0032] Each piece of interaction behavior data includes at least: user ID, timestamp, event ID, user behavior type, and user behavior weight; the user profile information includes at least: interest preferences, time period preferences, event type preferences, and user role information. The monitoring system in this embodiment can be a home monitoring system or other monitoring systems covering a certain area.

[0033] In this embodiment, user interaction behavior data is collected from the log information of the home monitoring system. This log information may include, but is not limited to, query logs, playback logs, favorite logs, deletion logs, and explicit feedback logs. When constructing user profile information, user ID, timestamp, event ID, behavior type, and behavior weight are first extracted from interactive behaviors such as querying, playing, favorites, deleting, and explicit feedback. Then, people, locations, items, event types, and occurrence times are extracted from the interacted events as entity information. Based on this entity information and the interactive behavior data, user profile information corresponding to each user is constructed. In this embodiment, the user profile information can be a four-dimensional profile of the user, which may include: 1) Object of interest preference: recording the user's interest score for entities such as people, locations, items, and pets; 2) Time period preference: recording the user's activity and attention patterns to the home video at different times throughout the 24 hours; 3) Event type preference: recording the user's preference for event types such as human detection, doorbell triggering, motion detection, abnormal sounds, and baby crying; 4) User role information: recording family roles such as first role, second role, third role, fourth role, or protector role. It should be noted that when a video event to be stored enters the storage decision chain, the above profile is read as the basis for subsequent scoring. If the profile has not been fully learned, the parent settings, the default role template, and the system default median score are used as the initial profile.

[0034] S120. Obtain the event content attributes corresponding to the video event to be stored, and determine the interest score of each user for the video event to be stored based on the event content attributes and user profile information.

[0035] The event content attributes should include at least: user list, location of occurrence, event type, event details, and camera source. Event types can include various events such as human detection, doorbell triggering, motion detection, abnormal sounds, and baby crying.

[0036] In this embodiment, a home camera or event detection module generates video events, forming video event segments to be saved. The original video stream automatically generates event segments through event detection, including human detection events, doorbell trigger events, motion detection events, etc. When the upstream event detection module or home camera generates video event e, the content attributes of the event are read, including at least a list of involved personnel, location of occurrence, event type, occurrence time, camera source, and a preset event importance score. This content attribute information is matched with user profiles and weighted to calculate an interest score. Specifically, a four-dimensional profile is read for each relevant user u, and the attribute content of event e is matched item by item with the user profile information to obtain each user's interest contribution to the video event to be stored. This interest contribution can include the user interest contribution, location interest contribution, and event interest contribution of the personnel involved in the video to be stored. The user interest contribution, location interest contribution, and event interest contribution are weighted and fused, and combined with the time period weighting coefficient corresponding to the occurrence time of the video event to be stored, to obtain the final interest score.

[0037] S130. Determine the overall importance score of the video event to be stored for each user based on the preset event importance score and interest score, and select the target overall importance score from the overall importance scores.

[0038] The preset event importance score can be obtained by querying the importance score of the video event to be stored from a preset event importance table. In this embodiment, the preset event importance score can be set based on camera location, event type, historical access frequency, etc. For example, the video event to be stored can generally be set to 0.5 to 0.8.

[0039] In this embodiment, the importance score of the video event to be stored is queried from a preset event importance table. Then, based on the preset event importance score and each user's interest score, the target comprehensive importance score of the video event to be stored for the target user is determined. The target user is a user selected from all users, specifically the user most closely matched from all user profile information. The target comprehensive importance score for this user is obtained. In some embodiments, after obtaining the comprehensive importance scores of each user, the target comprehensive importance score of the target user can be determined from these comprehensive importance scores based on preset adjudication rules. Specifically, the preset adjudication rules may include, but are not limited to, various adjudication methods such as role level and ranking of comprehensive importance scores. Of course, the adjudication method may be to select only one method for adjudication, or it may combine at least two adjudication methods for the final adjudication. This embodiment does not impose specific limitations here.

[0040] S140. Based on the target's comprehensive importance score and preset mapping rules, determine the storage level corresponding to the video event to be stored, and store the video according to the storage level.

[0041] The preset mapping rule is a pre-set mapping storage strategy for video events to be stored. This storage strategy can include at least four storage strategies. Different storage strategies correspond to different storage levels, and different storage levels correspond to different storage methods. The content of the storage method may include, but is not limited to, video encoding format, bitrate, number of days to store, and backup strategy.

[0042] In this embodiment, based on the overall importance score of the target after adjudication, the video event to be stored is mapped to four levels of storage strategies. The corresponding video encoding format, bitrate, retention days, and backup strategy are executed according to the storage level, which constitutes the event's final storage level, encoding parameters, retention period, and backup strategy. In some embodiments, if the overall importance score is greater than or equal to a preset first threshold, the storage level is determined to be Level 1, and full HD storage is performed. If the overall importance score is less than the preset first threshold but greater than or equal to a preset second threshold, the storage level is determined to be Level 2, and standard compression storage is performed. If the overall importance score is less than the preset second threshold but greater than or equal to a preset third threshold, the storage level is determined to be Level 3, and extreme compression storage is performed. If the overall importance score is less than the preset third threshold, the storage level is determined to be Level 4, and direct archiving storage is performed.

[0043] In addition, storage needs to be performed in conjunction with user quotas and role minimum constraints. This can be understood as follows: before performing storage, the storage quota status of the current user or household is read; when the remaining quota is insufficient, the storage level of low-value events is adjusted according to role minimum constraints and interest weight ratios, prioritizing the basic storage needs of first role, second role, and protected events.

[0044] The video storage method provided in this invention constructs user profile information for each user based on interactive behavior data. Then, based on event content attributes and user profile information, it determines the interest score of each user for the video event to be stored. On this basis, it determines the comprehensive importance score of the video event to be stored for each user according to a preset event importance score and the interest score. Then, it selects a target comprehensive importance score from the comprehensive importance scores. Based on the target comprehensive importance score and a preset mapping rule, it determines the storage level corresponding to the video event to be stored. This method can accurately quantify the content of video events, realize multi-user differentiated storage of home surveillance videos, and ensure the long-term storage of high-value video events.

[0045] In one embodiment, prior to storing the video according to the storage level, the method further includes:

[0046] Read the storage quota status for each user;

[0047] When the storage quota status shows insufficient remaining quota, the storage level of low-priority video events is adjusted according to the preset role lower limit constraint and preset interest weight ratio, so as to give priority to ensuring the storage needs of first role, second role and protected video events.

[0048] The preset role lower limit constraints include: the quota lower limit for the first role is greater than or equal to the quota lower limit for the second role; the quota lower limit for the second role is greater than or equal to the quota lower limit for the third role; and the quota lower limit for the third role is greater than or equal to the quota lower limit for the fourth role. In this embodiment, the first role can be a parent; the second role can be an elderly person, such as a grandparent; the third role can be a child with independent behavioral capacity; and the fourth role can be a visitor, while the protector role is a child without independent behavioral capacity.

[0049] In this embodiment, the storage quota status of the current user or family is also read. When the remaining quota is insufficient, the storage level of low-value events is adjusted according to the role lower limit constraint and interest weight ratio, prioritizing the basic storage needs of the first role, the second role, and protected events. This can be understood as determining the storage space usage boundary corresponding to the event based on the interest weight and role lower limit constraint of each user profile, and children without autonomous behavior capacity do not participate in quota allocation.

[0050] Specifically, 1) Role Classification: All users are classified by role: Role 1 (Parents), Role 2 (Elderly), Role 3 (Children with Independent Behavior), Role 4 (Visitors), and Protective Role (Children without Independent Behavior). 2) Valid User Screening: Only users entitled to participate in quota allocation are retained: Protective roles do not participate in quota allocation; all other roles participate. 3) Overall Interest Weighting Statistics: ,in, This is the sum of the individual interest weights of each valid user. 4) Proportional allocation: For each valid user, calculate the initial quota: 5) Apply role-based lower limit constraints: Ensure that the lower limit of the quota for the first role is greater than or equal to that of the second role, the third role, and the fourth role. If the initial quota violates the lower limit, the quota for high-priority users will be increased to the lower limit, and the quota for low-priority users will be reduced proportionally. 6) Quota persistence: Persist the final quota for each user to the database as the basis for subsequent storage space scheduling. This yields the final storage quota for each user, along with the corresponding role type and privacy isolation rules.

[0051] In one embodiment, after storing the video according to storage levels, the method further includes:

[0052] The storage space occupied by video storage is included in the corresponding user quota, and the available quota lower limit is updated according to the preset role lower limit constraint. The privacy level is determined according to the location of the event corresponding to the stored video and whether it involves a protected role.

[0053] In one embodiment, if storing video involves a protected role, the video events of the protected role are adjudicated by a first role or a second role, and a privacy label is applied.

[0054] In this embodiment, if the quota status and privacy label are not updated simultaneously after an event is stored, subsequent queries or space allocation may result in unauthorized access or quota imbalance. Therefore, after the storage policy is executed, the storage space occupied by this event is included in the corresponding user or family quota, and the available quota is updated according to the role's lower limit constraint. Simultaneously, the privacy level is determined based on the event's location and the personnel involved. Specifically, privacy levels can include: Public level: the event occurs in public areas such as the doorway, living room, and balcony; Family activity level: the event occurs in family activity areas such as the dining room, kitchen, and study; Privacy level: the event occurs in private areas such as the bathroom, toilet, master bedroom, and children's room. It should be noted that if the event involves protected roles, it is automatically marked as a privacy level regardless of its location, and is also written into the set of allowed access roles, providing a basis for subsequent query filtering.

[0055] More specifically, the privacy isolation method includes: 1) Event location classification: The event location is classified into three areas: public area (doorway / living room / balcony), family activity area (dining room / kitchen / study), and private area (bathroom / toilet / master bedroom / children's room). The classification is based on a preset location-area mapping table. 2) Privacy level determination: If the event location belongs to the privacy level corresponding to the private area; if the event location belongs to the family activity area, it belongs to the family activity level; if the event location belongs to the public area, it belongs to the public level. Special rule: If the event involves a protected role (a child without independent behavior capacity), it is automatically marked as a privacy level. 3) Access permission query: Based on the privacy access control matrix (3 levels × 4 roles), the access permissions (permission granted / no permission) of each role for the event at this level are determined. 4) Data filtering: When a user queries the event, if the user does not have access permissions, data filtering is performed at the technical level: an empty result is returned (without returning a "no access" prompt to avoid leakage of privacy level information); if the user has partial permissions (e.g., the family activity level is only open to the first / second / third role), only the part of the event that the user has permission to access is returned.

[0056] In this embodiment, the above technical solution enables the storage policy and privacy policy to be closed in the same event processing chain, avoiding inconsistencies in the states of "saved but permissions not synchronized" or "quota used but not credited".

[0057] In one embodiment, after storing the video according to storage levels, the method further includes:

[0058] When a user queries a stored video event, the system reads the user's role and the privacy level and allowed access role set corresponding to the stored video event. If the user does not have access rights, the system filters the stored video events at the data layer and returns an empty result or only the non-sensitive parts that the user is allowed to access. If the user has access rights, the system returns the video content or metadata corresponding to the resolution, bitrate, and storage period of the stored video event.

[0059] In this embodiment, privacy protection cannot rely solely on hiding the event through the front-end UI; otherwise, unauthorized users could still perceive the existence of sensitive events through interfaces, caches, or search results. Therefore, when a user subsequently queries a video event, the system first reads the user's role, then reads the event's privacy level and the set of allowed access roles. If the user lacks access rights, the system filters the event at the data layer, returning an empty result or only returning the non-sensitive portion that the user is authorized to access, without returning a "no access to this privacy event" message to avoid revealing the existence of the privacy event. Only if the user has access rights does the system return the video content or metadata at the corresponding resolution, bitrate, and storage period.

[0060] In this embodiment, the above technical solution enables the same family video event to be controlled by user profiles and roles in the three stages of saving, quota and access, forming a complete closed loop of "preference-driven saving + privacy and security access".

[0061] In one embodiment, Figure 2 This is a flowchart of another video storage method provided by an embodiment of the present invention. This embodiment is a further optimization of any of the above embodiments and can be applied to the video storage resource allocation situation in a multi-user scenario in a home monitoring network. The method can be executed by a video storage device, which can be implemented in hardware and / or software.

[0062] like Figure 2 As shown, the method includes:

[0063] S210. Extract the interaction behavior data corresponding to each user from the log information of the monitoring system.

[0064] Each piece of interaction data includes at least: user ID, timestamp, event ID, user behavior type, and user behavior weight; user behavior type may include, but is not limited to, query, play, favorite, delete, and explicit feedback.

[0065] In this embodiment, user interaction data is collected from the query logs, playback logs, favorites logs, deletion logs, and explicit feedback logs of the home monitoring system. Each piece of interaction data includes: user ID, timestamp, event ID, behavior type (query / play / favorite / delete / feedback), and behavior weight (playback completeness = 1.0, favorite = 1.5, explicit positive feedback = 2.0, explicit negative feedback = -1.0). This can be understood as follows: the weight for playback completeness is 1.0, the weight for favorites is 1.5, the weight for explicit positive feedback is 2.0, and the weight for explicit negative feedback is -1.0.

[0066] S220. Extract entity information from the corresponding interacted video event based on the event ID.

[0067] The entity information includes at least: location ID, the person identifier in the interacted video event, the event type, and the time period in which it occurred.

[0068] In this embodiment, entities involved in the interaction event are extracted, including Person ID (from the person detection result of the event), Location ID (from the camera location of the event), and Event Type (from the classification output of the event detection module). This can be understood as extracting entity information from the corresponding interacted event based on the Event ID; the entity information includes at least: Person ID, Location ID, and Event Type; wherein, the Person ID is extracted from the person detection result of the event, the Location ID is extracted from the camera location information of the event, and the Event Type is extracted from the classification output result of the event detection module.

[0069] S230. Based on entity information and interaction behavior data, construct user profile information corresponding to each user.

[0070] The user profile information includes at least: preferences for objects of interest, time periods, event types, and user roles.

[0071] In this embodiment, the preferences for objects of interest, time periods, and event types are determined based on entity information; user roles are periodically evaluated based on interaction behavior data (according to age, historical behavior patterns, parental settings, etc.). Specifically, based on the entities involved in the interaction events, the four dimensions of the user profile are updated: Preferences for objects of interest: The weighting coefficient can typically be set to 0.1 for smooth updates; time period preference: Among them, a typical value can be 0.05, reflecting the user's active period; event type preference: User role information: Based on interaction behavior data, user roles are periodically evaluated (based on age, historical behavior patterns, parental settings, etc.). Preferences for each dimension are normalized to the [0, 1] interval (preference for the object of attention: divided by the maximum value; preference for time period: divided by the sum of 24 hours; preference for event type: divided by the maximum value) to facilitate subsequent weighted calculations.

[0072] It should be noted that roles need to be periodically evaluated. At regular intervals, the user's current role type is assessed based on the match between the user's profile content (breadth of interest distribution, active time periods, event type preferences) and typical role profiles. Typical implementation: rule-based role classification (Parents: dispersed active time periods + broad interests; Elderly: high attention to unusual events; Children: high attention to toys / activities; Visitors: low-frequency visits).

[0073] In this embodiment, storage decisions are based on interpretable user preferences from the outset. In the case of multiple users sharing devices in the same household, profiles are independently built and maintained based on user IDs, rather than relying on uniform packages or black-box recommendation features, which can ensure that the personalized preferences of different family members do not interfere with each other.

[0074] S240. Obtain the event content attributes corresponding to the video event to be stored, and match the event content attributes with the user profile information for the user's interest in the target audience, time period, and event type to obtain the user interest contribution, location interest contribution, and event interest contribution of each user to the people involved in the video to be stored.

[0075] In this embodiment, the event content attributes may also include the following: an event where someone rings the doorbell at the door will generate an event attribute of "location = doorway, event type = doorbell, time = 18:30, involved object = visitor / package probability"; an event where a baby sleeps in the children's room will generate an event attribute of "location = children's room, event type = human body / sleep, involved object = protector role".

[0076] Specifically, the interest score is calculated in the following order: First, the interest scores of the people or entities involved in the event are retrieved from the object of interest preferences; second, the interest scores of the event's location are retrieved from the object of interest preferences; third, the interest scores of the event type are retrieved from the event type preferences; fourth, the time-weighted coefficient corresponding to the hour the event occurred is retrieved from the time-time preferences; fifth, the interest contributions of individuals, locations, and events are combined according to preset weights, and then multiplied by the time-time weighted coefficient to obtain the interest score of user u for event e. This can be understood as follows: First, from the "Preference for Attention Targets" field of the user profile, query the interest scores of the individuals (possibly multiple) involved in the event, and take the arithmetic mean as their interest contribution. Second, from the "Preference for Attention Targets" field of the user profile, query the interest score corresponding to "location:{Event Location ID}"; if it does not exist, use the default median score of 0.5. Third, from the "Event Type Preference" field of the user profile, query the interest score corresponding to the event type; if it does not exist, use the default median score of 0.5.

[0077] S250. Query the time period weighting coefficient corresponding to the occurrence time of the video event to be stored from the time period preference.

[0078] In this embodiment, the time weighting coefficient T(hour) corresponding to the current hour is queried from the "time period preference" field of the user profile; its value can be set to any value between 0.7 and 1.3, and this time weighting coefficient can be based on the user's historical active time period statistics.

[0079] S260. According to the preset weights, the user interest contribution, location interest contribution, and event interest contribution are combined to obtain the combined interest score.

[0080] In this embodiment, the preset weights are the weight coefficients corresponding to the user interest contribution, location interest contribution, and event interest contribution, which are customized according to needs or experience, and the sum of the weight coefficients of the three is 1. In this embodiment, the user interest contribution, location interest contribution, and event type contribution are integrated according to the preset weights, and then multiplied by the time period weighting coefficient to obtain the user u's interest score on event e. .

[0081] S270. Determine the interest score of the video to be stored based on the fusion interest score and the time period weighting coefficient.

[0082] In this embodiment, the interest score of the video to be stored is determined based on the fused interest score and the time-segment weighting coefficient. The specific calculation formula is as follows: [Formula omitted for brevity] Calculate, where W1+W2+W3=1, and the weight values ​​can be W1=0.4; W2=0.3; W3=0.3.

[0083] In this embodiment, each user forms an independent and interpretable interest score for the same event, providing a basis for subsequent multi-user storage decisions.

[0084] S280. Obtain the preset event importance score from the event content attributes.

[0085] S290. The preset event importance score and interest score are weighted and fused to obtain the comprehensive importance score of the video event to be stored for each user.

[0086] In this embodiment, the importance score of reading event e is... This rating can be determined by camera location, event type, historical access frequency, or security level. Subsequently, an interest score is assigned to each user. and Weighted fusion yields the overall importance. More specifically, the overall importance is calculated using the following formula, expressed as: ,in, The weight value can be taken as follows: , S can be used as a joint confidence level for relative comparisons between events. This S value is used for relative comparisons between events and storage level mapping. The S value for each user is retained for subsequent multi-user conflict resolution.

[0087] S2100. Determine the target comprehensive importance score of the target user from each comprehensive importance score based on the preset adjudication rules; wherein, the target user is a user selected from all users.

[0088] The preset adjudication rules include one of the following: adjudicating according to the role priority of each user, adjudicating according to the overall event score ranking of each user, or first adjudicating according to the role priority of each user, and then adjudicating according to the overall event score ranking of each user.

[0089] In this embodiment, when the same event involves multiple users or is matched by multiple user profiles, the system determines the final overall importance S_final according to preset adjudication rules. Typical adjudication methods include: adjudication by role priority: the first role takes precedence over the second role, the second role over the third role, and the third role over the fourth role; adjudication by maximum overall importance: taking the maximum overall importance of all authorized users; and hybrid adjudication: first filtering users who can participate in adjudication by role, and then taking the maximum value within the same role level. Video events involving protected roles are not subject to quota and storage priority competition by the protected role itself, but are adjudicated by the first or second role on a representative basis and enter the privacy labeling process. For example, the overall importance of each user is sorted according to preset role priority (first role > second role > third role > fourth role), and the S of the user with the highest priority is taken as the final S of the event; or the maximum value of S for each user is taken.

[0090] In this embodiment, the above technical solution can resolve the multi-user value conflict of "fathers caring about the doorway, mothers caring about the baby, and the elderly caring about abnormal sounds", ensuring that high-value events are not saved at a low quality due to averaging.

[0091] S2110. If the overall importance score of the target is greater than or equal to the preset first threshold, the storage level is determined to be the first level, and full HD storage is performed; wherein, full HD storage includes: high-efficiency video encoding, a first preset bitrate range, a storage duration of the first storage duration, and automatic backup.

[0092] In this embodiment, when S_final is greater than or equal to T1 (a preset first threshold), full HD storage is performed, employing high-efficiency video encoding, a first preset bitrate range, long-term storage, and automatic backup; that is, when S is greater than or equal to T1 (T1 can be 0.75), full HD storage is performed, which includes: high-efficiency video encoding (can be 265), a first preset bitrate range (can be 4-8 Mbps), 180-365 days, and automatic backup.

[0093] S2120. If the overall importance score of the target is less than the preset first threshold and greater than or equal to the preset second threshold, the storage level is determined to be the second level, and standard compressed storage is performed. The standard compressed storage includes: high-efficiency video encoding, a second preset bitrate range, and a storage duration of the second storage duration without backup.

[0094] In this embodiment, when T1 is greater than S_final and greater than or equal to T2 (a preset second threshold), standard compression storage is performed, using high-efficiency video encoding, a second preset bitrate range, and mid-term storage without backup; that is, when T1 is greater than S_final and greater than or equal to T2 (which can be 0.50), standard compression storage is performed. Standard compression: high-efficiency video encoding, a second preset bitrate range (which can be 1-3 Mbps), 60-180 days, and no backup.

[0095] S2130. If the overall importance score of the target is less than the preset second threshold and greater than or equal to the preset third threshold, the storage level is determined to be the third level, and extreme compression storage is performed. The extreme compression storage includes: standard video encoding, the third preset bitrate range, and the storage duration is the third storage duration without backup.

[0096] In this embodiment, when T2 is greater than S_final and greater than or equal to T3 (a preset third threshold), extreme compression storage is performed, using standard video encoding, a third preset bitrate range, short-term storage, and no backup; that is, when T2 is greater than S_final and greater than or equal to T3 (which can be 0.25), extreme compression storage is performed. Extreme compression: standard video encoding (which can be H.264), a third preset bitrate range (which can be 0.3-1 Mbps), 15-60 days, and no backup.

[0097] S2140. If the overall importance score of the target is less than the preset third threshold, the storage level is determined to be the fourth level, and direct archiving storage is performed; wherein, direct archiving storage includes: low complexity encoding, a fourth preset bitrate range, and a storage duration of the fourth storage duration.

[0098] Among them, the first storage duration is longer than the second storage duration, the second storage duration is longer than the third storage duration, and the third storage duration is longer than the fourth storage duration.

[0099] In this embodiment, when S_final is less than T3, direct archiving storage is performed, using low-complexity encoding, a fourth preset bitrate range, and short-term storage. That is, direct archiving is performed when S is less than T3, and direct archiving includes: low-complexity encoding, a fourth preset bitrate range (which can be 0.1-0.3 Mbps), storage time less than or equal to 15 days, and no backup.

[0100] To facilitate a better understanding of video storage methods, Figure 3 This is a schematic diagram of the architecture of a video storage method provided in an embodiment of the present invention. Figure 4 This invention provides a diagram illustrating the collaborative relationship between a four-dimensional user profile structure and a differentiated storage strategy. In this embodiment, the storage decision for home surveillance videos is transformed from "unified storage" to "tiered storage based on user profiles." Based on a four-dimensional structure of multi-user profiles (interest preferences + time period preferences + event type preferences + user role information), a multi-user differentiated storage of home surveillance videos is achieved through an end-to-end decision-making chain of "interest scoring - comprehensive importance - differentiated storage levels - cross-user quota allocation - privacy isolation." This is the process of "user interaction - four-dimensional profile - interest scoring - comprehensive importance - storage levels - quota allocation - privacy filtering."

[0101] like Figure 3 As shown, the architecture of the specific video storage method is as follows:

[0102] a1. Input layer: User interaction behavior data (query / play / favorite / delete / feedback), and video event stream (human detection / doorbell / motion / abnormal sound).

[0103] a2. Processing Layer: Based on user interaction behavior data (query / play / favorite / delete / feedback), maintain a profile for each user that includes four dimensions: preference for followed objects, preference for time periods, preference for event types, and user role information.

[0104] a3. Processing layer: When a video event occurs, based on the matching of the event content attributes (involved personnel / location / event type) with the target user profile, the interest score of the event for the user is calculated. The multi-dimensional interest scores are then weighted and integrated with the system's preset event importance score to obtain the comprehensive importance.

[0105] a4. Processing layer: Mapped to four storage levels (full HD / standard compression / extreme compression / direct archiving) according to preset thresholds.

[0106] a5. Processing Layer: Based on the interest weights and role lower limits of each user profile, determine the storage space usage boundary corresponding to the event. Children without autonomous behavior capacity are not included in the quota allocation. Determine the event privacy level based on the user role type and the location of the event, and perform technical data filtering on unauthorized users during subsequent queries.

[0107] a6. Output Layer 1: Full HD: High-efficiency video encoding (can be H.265), first preset bitrate range (can be 4-8 Mbps), 180-365 days, automatic backup; Standard Compression: High-efficiency video encoding, second preset bitrate range (can be 1-3 Mbps), 60-180 days, no backup; Extreme Compression: Standard video encoding (can be H.264), third preset bitrate range (can be 0.3-1 Mbps), 15-60 days, no backup; Direct Archiving: Low-complexity encoding, fourth preset bitrate range (can be 0.1-0.3 Mbps), less than or equal to 15 days, no backup. Output Layer 2: Cross-user quota allocation; privacy isolation. When a user queries an event, if the user does not have access rights, data filtering is performed at the technical level: return an empty result (without returning a "no access" prompt to avoid leakage of privacy-level information); if the user has partial permissions (such as family activity level being open only to the first / second / third role), only the part of the event that the user has access to is returned.

[0108] like Figure 4 As shown, the specific synergistic relationship between the four-dimensional user profile structure and the differentiated storage strategy is as follows:

[0109] b1. User's four-dimensional profile: Interest object preference: user interest score; Time period preference: 24-hour interest score; Event type preference: event type interest score; User role information.

[0110] b2. Interest Score: The interest score of user u for event e is obtained by combining the interest contribution of personnel, location and event type according to the preset weights and then multiplying it by the time period weighting coefficient.

[0111] b3. Quota allocation: Allocated according to interest weight ratio; role lower limit constraint.

[0112] b4. Privacy isolation: Role access; special rules to protect roles and technical data filtering.

[0113] b5. Differentiated storage.

[0114] To facilitate a better understanding of the video storage method, this embodiment uses a multi-user scenario as an example. The family configuration in this embodiment is a family of four (father, mother, grandmother, and a 4-year-old child); the total family storage space is 2TB (2048GB, of which 200GB is reserved buffer); user profiles and quota allocations are shown in Table 1.

[0115] Table 1: User Profile and Quota Allocation Diagram

[0116]

[0117] Video event to be stored 1: Someone rings the doorbell at the door (18:30 on June 3, 2026). The preset event importance score (S_sys), comprehensive importance score (S), storage level and privacy status of this event are shown in Table 2. Final storage: full HD (based on the highest priority first role father's S ruling).

[0118] Table 2: Preset event importance score (S_sys), comprehensive importance score (S), storage level, and privacy visibility for the events to be stored.

[0119]

[0120] Video event to be stored 2: Baby playing in the living room (14:00 on June 3, 2026). The preset event importance score (S_sys), comprehensive importance score (S), storage level and privacy status of this event are shown in Table 3. Final storage: full HD (Mom is the first role, highest priority).

[0121] Table 3: Preset event importance score (S_sys), comprehensive importance score (S), storage level, and privacy visibility for the events to be stored.

[0122]

[0123] Video event to be stored 3: Baby sleeping in the children's room (2026-06-03 22:00). The preset event importance score (S_sys), comprehensive importance score (S), storage level and privacy status of this event are shown in Table 4. Final storage: full HD (Mom is the first role, with the highest priority; and it involves a protected role, so it is automatically marked as privacy level).

[0124] Table 4: Preset event importance score (S_sys), comprehensive importance score (S), storage level, and privacy visibility for the events to be stored.

[0125]

[0126] In one embodiment, Figure 5 This is a schematic diagram of the structure of a video storage device provided in an embodiment of the present invention. Figure 5 As shown, the device includes: a user profile construction module 510, an interest score determination module 520, a comprehensive importance score determination module 530, and a storage level determination module 540;

[0127] The user profile building module 510 is used to acquire user interaction behavior data with the monitoring system and build user profile information corresponding to each user based on the interaction behavior data.

[0128] The interest score determination module 520 is used to obtain the event content attributes corresponding to the video event to be stored, and determine the interest score of each user for the video event to be stored based on the event content attributes and the user profile information.

[0129] The comprehensive importance score determination module 530 is used to determine the comprehensive importance score of the video event to be stored to each user based on the preset event importance score and the interest score, and to select a target comprehensive importance score from the comprehensive importance scores.

[0130] The storage level determination module 540 is used to determine the storage level corresponding to the video event to be stored based on the target comprehensive importance score and the preset mapping rules, and to store the video according to the storage level.

[0131] This technical solution employs a video storage device and a user profile construction module. The user profile construction module builds user profile information for each user based on interactive behavior data. Then, an interest score determination module determines each user's interest score for the video events to be stored based on event content attributes and user profile information. On this basis, a comprehensive importance score determination module determines the comprehensive importance score of the video events to be stored for each user based on a preset event importance score and the interest scores, and selects a target comprehensive importance score from these scores. Finally, a storage level determination module determines the storage level corresponding to the video events to be stored based on the target comprehensive importance score and preset mapping rules. This enables differentiated multi-user storage of home surveillance videos.

[0132] In one embodiment, the user profile construction module 510 includes:

[0133] The behavior data acquisition unit is used to extract the interaction behavior data corresponding to each user from the log information of the monitoring system; wherein each piece of interaction behavior data includes at least: user ID, timestamp, event ID, user behavior type and user behavior weight;

[0134] An entity extraction unit is used to extract entity information from the corresponding interacted video event based on the event ID; wherein, the entity information includes at least: location ID, personnel identifier in the interacted video event, event type, and time period;

[0135] The user profile building unit is used to build user profile information corresponding to each user based on the entity information and the interaction behavior data; wherein, the user profile information includes at least: interest object preference, time period preference, event type preference, and user role information.

[0136] In one embodiment, the event content attributes include at least: user list, location of occurrence, event type, event occurrence, and camera source;

[0137] Correspondingly, the interest score determination module 520 includes:

[0138] The matching unit is used to match the event content attributes with the user profile information item by item, including the preferences for the objects of interest, the time period, and the event type, so as to obtain the user interest contribution, location interest contribution, and event interest contribution of each user to the people involved in the video to be stored.

[0139] The weighting coefficient determination unit is used to query the time period weighting coefficient corresponding to the occurrence time of the video event to be stored from the time period preference;

[0140] The fusion score determination unit is used to fuse the user interest contribution, the location interest contribution, and the event interest contribution according to preset weights to obtain a fusion interest score.

[0141] An interest score determination unit is used to determine the interest score of the video to be stored based on the fused interest score and the time period weighting coefficient.

[0142] In one embodiment, the comprehensive importance score determination module 530 includes:

[0143] A preset score acquisition unit is used to acquire a preset event importance score from the event content attributes;

[0144] The weighted fusion unit is used to weight and fuse the preset event importance score and the interest score to obtain the comprehensive importance score of the video event to be stored for each user.

[0145] The importance score determination unit is used to determine the target comprehensive importance score of the target user from each of the comprehensive importance scores based on a preset adjudication rule; wherein the target user is a user selected from all users;

[0146] The preset adjudication rules include one of the following: adjudicating according to the role priority of each user, adjudicating according to the overall event score ranking of each user, or first adjudicating according to the role priority of each user, and then adjudicating according to the overall event score ranking of each user.

[0147] In one embodiment, the storage level determination module 540 includes:

[0148] The first storage unit is used to determine the storage level as the first level and perform full HD storage when the target comprehensive importance score is greater than or equal to a preset first threshold; wherein, the full HD storage includes: high-efficiency video encoding, a first preset bitrate range, a storage duration of a first storage duration, and automatic backup;

[0149] The second storage unit is used to determine the storage level as the second level and perform standard compressed storage when the target's overall importance score is less than a preset first threshold and greater than or equal to a preset second threshold; wherein the standard compressed storage includes: high-efficiency video encoding, a second preset bitrate range, and a storage duration of the second storage duration without backup;

[0150] The third storage unit is used to determine the storage level as the third level and perform extreme compression storage when the target's overall importance score is less than a preset second threshold and greater than or equal to a preset third threshold; wherein, the extreme compression storage includes: standard video encoding, a third preset bitrate range, and a storage duration of the third storage duration without backup;

[0151] The fourth storage unit is used to determine the storage level as the fourth level and perform direct archiving storage when the target's overall importance score is less than a preset third threshold; wherein, the direct archiving storage includes: low complexity encoding, a fourth preset code rate range, and a fourth storage duration;

[0152] Wherein, the first storage duration is greater than the second storage duration, the second storage duration is greater than the third storage duration, and the third storage duration is greater than the fourth storage duration.

[0153] In one embodiment, the device further includes:

[0154] The quota reading module is used to read the storage quota status of each user before storing the video according to the storage level;

[0155] The adjustment module is used to adjust the storage level of low-priority video events according to the preset role lower limit constraint and preset interest weight ratio when the storage quota status shows insufficient remaining quota, so as to give priority to ensuring the storage needs of the first role, the second role and the protected video events.

[0156] The preset role lower limit constraints include: the quota lower limit of the first role is greater than or equal to the quota lower limit of the second role; the quota lower limit of the second role is greater than or equal to the quota lower limit of the third role; and the quota lower limit of the third role is greater than or equal to the quota lower limit of the fourth role.

[0157] In one embodiment, the device further includes:

[0158] The privacy determination module is used to include the storage space occupied by the video storage in the corresponding user quota after the video is stored according to the storage level, update the available quota lower limit according to the preset role lower limit constraint, and determine the privacy level according to the location of the event corresponding to the stored video and whether it involves a protected role.

[0159] In one embodiment, the device further includes:

[0160] A tagging module is used to, if the stored video involves a protected role, have the video events of the protected role adjudicated by a first role or a second role, and to perform privacy tagging.

[0161] In one embodiment, the device further includes:

[0162] The access module is used to read the user's role and the privacy level and allowed access role set corresponding to the stored video event when the user queries the stored video event after the video is stored according to the storage level; if the user does not have access rights, the stored video event is filtered at the data layer and an empty result is returned or only the non-sensitive part that is allowed to be accessed is returned; if the user has access rights, the video content or metadata corresponding to the resolution, bitrate and storage period of the stored video event is returned.

[0163] The video storage device provided in the embodiments of the present invention can execute the video storage method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method.

[0164] In one embodiment, Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Figure 6The diagram illustrates a schematic representation of an electronic device 10 that can be used to implement embodiments of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device 10 may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0165] like Figure 6 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0166] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0167] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, central processing units, graphics processing units, various special-purpose artificial intelligence computing chips, various processors running machine learning model algorithms, digital signal processors, and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as video storage methods.

[0168] In some embodiments, the video storage method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the video storage method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the video storage method by any other suitable means (e.g., by means of firmware).

[0169] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays, application-specific integrated circuits (ASICs), application-specific standard products (ASICs), systems-on-a-chip (SoCs), payload programmable logic devices, computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0170] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0171] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory, read-only memory, erasable programmable read-only memory, optical fibers, portable compact disk read-only memory, optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0172] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a cathode ray tube or liquid crystal display) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0173] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0174] A computing system can include clients and servers. Clients and servers are generally geographically separated and typically interact via communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product within the cloud computing service system to address the shortcomings of traditional physical host and virtual machine services, such as high management difficulty and weak business scalability.

[0175] This invention also provides a computer program product, including a computer program that, when executed by a processor, can implement the video storage method provided in any embodiment of this invention.

[0176] In implementing the computer program product, computer program code for performing the operations of this invention can be written in one or more programming languages ​​or a combination thereof. Programming languages ​​include object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including local area networks (LANs) or wide area networks (WANs), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0177] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0178] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A video storage method, characterized in that, The method includes: Acquire user interaction data with the monitoring system, and construct user profile information for each user based on the interaction data; Obtain the event content attributes corresponding to the video event to be stored, and determine the interest score of each user for the video event to be stored based on the event content attributes and the user profile information; The overall importance score of the video event to be stored to each user is determined based on the preset event importance score and the interest score, and a target overall importance score is selected from the overall importance scores. Based on the target comprehensive importance score and the preset mapping rules, the storage level corresponding to the video event to be stored is determined, and the video is stored according to the storage level.

2. The method according to claim 1, characterized in that, The process of constructing user profile information for each user based on the interaction behavior data includes: The interaction behavior data corresponding to each user is extracted from the log information of the monitoring system; wherein each interaction behavior data includes at least: user ID, timestamp, event ID, user behavior type and user behavior weight; Entity information is extracted from the corresponding interacted video event based on the event ID; wherein, the entity information includes at least: location ID, personnel identifier in the interacted video event, event type, and time period; Based on the entity information and the interaction behavior data, user profile information corresponding to each user is constructed; wherein, the user profile information includes at least: interest object preference, time period preference, event type preference, and user role information.

3. The method according to claim 1, characterized in that, The step of determining the interest score of each user for the video event to be stored based on the event content attributes and the user profile information includes: The event content attributes are matched item by item with the user profile information for interest object preference, time period preference, and event type preference, so as to obtain the user interest contribution, location interest contribution, and event interest contribution of each user to the people involved in the video to be stored. Query the time period weighting coefficient corresponding to the occurrence time of the video event to be stored from the time period preference; A fused interest score is obtained by fusing the user interest contribution, the location interest contribution, and the event interest contribution according to preset weights. The interest score of the video to be stored is determined based on the fused interest score and the time period weighting coefficient.

4. The method according to claim 1, characterized in that, The step of determining the comprehensive importance score of the video event to be stored to each user based on the preset event importance score and the interest score, and selecting a target comprehensive importance score from the comprehensive importance scores, includes: Obtain a preset event importance score from the event content attributes; The preset event importance score and the interest score are weighted and fused to obtain the comprehensive importance score of the video event to be stored for each user; The target comprehensive importance score of the target user is determined from the comprehensive importance scores based on preset adjudication rules; wherein, the target user is a user selected from all users; The preset adjudication rules include one of the following: adjudicating according to the role priority of each user, adjudicating according to the overall event score ranking of each user, or first adjudicating according to the role priority of each user, and then adjudicating according to the overall event score ranking of each user.

5. The method according to claim 1, characterized in that, The process of determining the storage level corresponding to the video event to be stored based on the target comprehensive importance score and a preset mapping rule includes: If the overall importance score of the target is greater than or equal to a preset first threshold, the storage level is determined to be the first level, and full HD storage is performed; wherein, the full HD storage includes: high-efficiency video encoding, a first preset bitrate range, a storage duration of a first storage duration, and automatic backup; If the overall importance score of the target is less than a preset first threshold and greater than or equal to a preset second threshold, the storage level is determined to be the second level, and standard compressed storage is performed; wherein, the standard compressed storage includes: high-efficiency video encoding, a second preset bitrate range, and a storage duration of the second storage duration without backup; If the overall importance score of the target is less than a preset second threshold and greater than or equal to a preset third threshold, the storage level is determined to be the third level, and extreme compression storage is performed; wherein, the extreme compression storage includes: standard video encoding, a third preset bitrate range, a storage duration of the third storage duration, and no backup; If the overall importance score of the target is less than a preset third threshold, the storage level is determined to be the fourth level, and direct archiving storage is performed; wherein, the direct archiving storage includes: low complexity encoding, a fourth preset code rate range, and a fourth storage duration; Wherein, the first storage duration is greater than the second storage duration, the second storage duration is greater than the third storage duration, and the third storage duration is greater than the fourth storage duration.

6. The method according to claim 1, characterized in that, Before storing the video according to the storage level, the method further includes: Read the storage quota status corresponding to each user; When the storage quota status shows that the remaining quota is insufficient, the storage level of low-priority video events is adjusted according to the preset role lower limit constraint and preset interest weight ratio, so as to give priority to ensuring the storage needs of the first role, the second role and the protected video events. The preset role lower limit constraints include: the quota lower limit of the first role is greater than or equal to the quota lower limit of the second role; the quota lower limit of the second role is greater than or equal to the quota lower limit of the third role; and the quota lower limit of the third role is greater than or equal to the quota lower limit of the fourth role.

7. The method according to claim 1, characterized in that, After storing the video according to the storage level, the method further includes: The storage space occupied by video storage is included in the corresponding user quota, and the available quota lower limit is updated according to the preset role lower limit constraint. The privacy level is determined according to the location of the event corresponding to the stored video and whether it involves a protected role.

8. The method according to claim 7, characterized in that, If the stored video involves a protected role, the video events of the protected role are adjudicated by either the first or second role, and a privacy flag is applied.

9. The method according to claim 1, characterized in that, After storing the video according to the storage level, the method further includes: When a user queries a stored video event, the system reads the user's role and the privacy level and allowed access role set corresponding to the stored video event. If the user does not have access rights, the system filters the stored video events at the data layer and returns an empty result or only the non-sensitive parts that the user is allowed to access. If the user has access rights, the system returns the video content or metadata corresponding to the resolution, bitrate, and storage period of the stored video event.

10. A video storage device, characterized in that, The device includes: The user profile building module is used to acquire user interaction behavior data with the monitoring system and build user profile information corresponding to each user based on the interaction behavior data. The interest score determination module is used to obtain the event content attributes corresponding to the video event to be stored, and determine the interest score of each user for the video event to be stored based on the event content attributes and the user profile information. The comprehensive importance score determination module is used to determine the comprehensive importance score of the video event to be stored for each user based on the preset event importance score and the interest score, and to select a target comprehensive importance score from the comprehensive importance scores. The storage level determination module is used to determine the storage level corresponding to the video event to be stored based on the target comprehensive importance score and the preset mapping rules, and to store the video according to the storage level.

11. An electronic device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform a video storage method according to any one of claims 1-9.

12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute and implement a video storage method according to any one of claims 1-9.

13. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements a video storage method according to any one of claims 1-9.