Shared file management method and device, equipment, medium and program product

By adjusting the file information model on the server side, the content classification, attributes, and parameters of shared files are dynamically adjusted, which solves the security risks of shared file management, realizes accurate and effective management of shared files, and protects user information security.

CN121786012APending Publication Date: 2026-04-03CHINA MOBILE INTERNET CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-26
Publication Date
2026-04-03

AI Technical Summary

Technical Problem

Existing technologies cannot effectively manage shared files, leading to information security risks associated with shared files, especially since access control policies cannot be adjusted in a timely manner when the content of shared files changes.

Method used

The server-side file information adjustment model generates shared file adjustment information based on the target user's feature information and shared file information. This includes dynamic adjustments to content classification identifiers, sharing attributes, and sharing parameters. The system then updates the shared files using a preset update strategy.

Benefits of technology

It enables dynamic management of shared file information for different users, ensuring that the content of shared files is adapted to user characteristics, thereby improving the security and accuracy of shared file information management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121786012A_ABST
    Figure CN121786012A_ABST
Patent Text Reader

Abstract

The invention discloses a shared file management method and device, equipment, a medium and a program product. The method comprises the steps of obtaining feature information and shared file information of a target user; according to the feature information and the shared file information, obtaining shared file adjustment information of the target user by using a file information adjustment model; wherein the file information adjustment model is obtained by training with training data with an expected adjustment information label, and the training data comprises feature information for training and shared file information for training; and based on the shared file adjustment information, updating a target shared file of the target user according to a preset shared file updating strategy. According to the method and the device, the generated shared file adjustment information can be ensured to be adaptive to the characteristics of the target user and the content of the shared file without depending on self-adjustment of the target user, so that the shared file information of different users can be dynamically managed accurately and effectively, and the security of the shared file information of the users is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of cloud storage technology, and in particular to a shared file management method, apparatus, electronic device, computer-readable storage medium, and computer program product. Background Technology

[0002] Currently, cloud storage allows users to store and use files in an internet environment. By saving files in a cloud storage product, users can access the saved files anytime on internet terminals (such as browsers or clients), without being limited by the storage terminal. Furthermore, to enhance user experience, cloud storage also provides a file sharing function. This function generates a shared link for a target file, allowing the recipient to access the target file through the shared link, thus improving the efficiency of document collaboration and transfer among users.

[0003] In existing technologies, the management of shared files usually relies on user self-management. However, users typically only set an expiration date when sharing files to make them expire at a set time. Some users even habitually set file sharing to be permanently valid. When the content of the shared file changes, the access control policy is not adjusted accordingly, which can easily lead to information security risks of shared files. Therefore, existing technologies cannot effectively manage shared files. Summary of the Invention

[0004] This invention provides a shared file management method, apparatus, device, medium, and program product to solve the technical problem that existing technologies cannot effectively manage shared files.

[0005] To address the aforementioned technical problems, a first aspect of this invention provides a shared file management method, the method being executed by a server, comprising: Obtain the target user's characteristic information and shared file information; Based on the feature information and the shared file information, the shared file adjustment information of the target user is obtained using a file information adjustment model; wherein, the file information adjustment model is obtained by training with training data having expected adjustment information labels, and the training data includes training feature information and training shared file information; Based on the shared file adjustment information, the target shared files of the target user are updated according to the preset shared file update strategy.

[0006] As a preferred embodiment, the step of obtaining the shared file adjustment information of the target user using a file information adjustment model based on the feature information and the shared file information specifically includes: Based on the aforementioned feature information, the target user's personal feature information and associated user information are determined; Based on the shared file information, determine the content classification identifier and file metadata of each of the target shared files; Based on the personal feature information, the associated user information, the content classification identifier, and the file metadata, the target content classification identifier, target sharing attribute, and target sharing parameter of the target shared file are generated using the file information adjustment model. Based on the target content classification identifier, the target sharing attribute, and the target sharing parameter, the file metadata is adjusted to generate the shared file adjustment information.

[0007] As a preferred embodiment, the file information adjustment model includes a content classification adjustment module, a shared attribute adjustment module, and a shared parameter adjustment module; The step of generating the target content classification identifier, target sharing attribute, and target sharing parameter of the target shared file using the file information adjustment model based on the personal feature information, the associated user information, the content classification identifier, and the file metadata specifically includes: Based on the personal characteristic information, the content classification identifier, and the file metadata, the target content classification identifier is generated by the content classification adjustment module. Based on the personal characteristic information, the content classification identifier, and the file metadata, the target sharing attribute is generated through the sharing attribute adjustment module. Based on the personal characteristic information, the content category identifier, the associated user information, and the file metadata, the target sharing attribute is used as the activation condition, and the target sharing parameter is generated by the sharing parameter adjustment module.

[0008] As a preferred embodiment, the loss function of the content classification adjustment module is determined based on the difference between the content classification identifier of the shared files after content classification adjustment and the content classification identifier of the shared files before content classification adjustment; The loss function of the shared attribute adjustment module is determined based on the difference between the first shared attribute of the shared file before the shared attribute adjustment and the second shared attribute of the shared file after the shared attribute adjustment; The loss function of the shared parameter adjustment module is determined based on the difference between the first shared parameter activation value after shared parameter adjustment and the second shared parameter activation value before shared parameter adjustment; wherein, the first shared parameter activation value is calculated using the ReLU function based on the shared parameter after shared parameter adjustment, the first shared attribute, and a preset attribute activation threshold; the second shared parameter activation value is calculated using the ReLU function based on the shared parameter before shared parameter adjustment, the second shared attribute, and the attribute activation threshold.

[0009] As a preferred embodiment, updating the target shared file of the target user according to the shared file adjustment information and a preset shared file update strategy specifically includes: Based on the preset sharing scheme change strategies corresponding to different sharing attributes, determine the target change sharing scheme information corresponding to the target sharing attribute in the shared file adjustment information; According to the shared file update strategy, the target shared file is updated using the shared file adjustment information and the target changed sharing scheme information.

[0010] As a preferred embodiment, updating the target shared file according to the shared file update strategy, using the shared file adjustment information and the target changed sharing scheme information, specifically includes: When the shared file update strategy is managed update, the target shared file is updated using the shared file adjustment information and the target changed sharing scheme information; Obtain the difference comparison information between the shared file adjustment information and the shared file information, so that when the target user's user terminal is detected to have enabled the target cloud storage application, the difference comparison information is sent to the user terminal and displayed in the interface of the target cloud storage application.

[0011] As a preferred embodiment, the step of updating the target shared file according to the shared file update strategy, using the shared file adjustment information and the target changed sharing scheme information, further includes: When the shared file update strategy is manual update, file adjustment instruction information is generated based on the shared file adjustment information; When it is detected that the target user's terminal has enabled the target cloud storage application, the file adjustment instruction information is sent to the user terminal; wherein, the file adjustment instruction information is used to instruct the user terminal to provide confirmation or non-confirmation information corresponding to the shared file adjustment information; Upon receiving the confirmation information, the target shared file is updated using the shared file adjustment information and the target changed sharing scheme information.

[0012] As a preferred embodiment, the method further includes: When the non-confirmation information is received, the adjusted shared file adjustment information is obtained from the non-confirmation information; When the adjusted shared file adjustment information contains an updated sharing attribute that is inconsistent with the target sharing attribute, the update change sharing scheme information corresponding to the updated sharing attribute is obtained; The target shared file is updated using the adjusted shared file information and the updated shared scheme information.

[0013] As a preferred embodiment, the method further includes: When the target sharing attribute is a file sharing based on user attributes, the current target associated user information is obtained from the target sharing parameters; Based on the target associated user information, detect whether there are common associated user attributes among the target associated users corresponding to the target associated user information; If one or more of the aforementioned common associated user attributes exist, then any one of the aforementioned common associated user attributes is selected to adjust the target associated user attributes corresponding to each target associated user; If the common associated user attribute does not exist, the target associated user attribute corresponding to each target associated user is adjusted using the preset associated user shared attribute; The common associated user attribute and the associated user shared attribute are used to perform sharing legal authentication on the user terminal of the target associated user when the user terminal of the target associated user requests to obtain the target shared file.

[0014] As a preferred embodiment, the method further includes: When the target sharing attribute is file sharing based on multi-user authentication, the current target associated user information is obtained from the target sharing parameters, and the number of target associated users is determined based on the target associated user information; Based on the target number of associated users and the preset key fragment length, the file identifier of the target shared file is expanded to obtain a verification key; wherein, the file identifier is obtained from the file metadata; According to the key fragment length, the verification key is divided into N key fragments and sent to each target associated user respectively; where N is equal to the number of target associated users; the N key fragments are used to perform sharing legal authentication on the user terminals of each target associated user when each user terminal requests to obtain the target shared file.

[0015] As a preferred embodiment, the method further includes: The target shared parameter verification rule corresponding to the target shared attribute is obtained from the preset verification rule library; wherein, the target shared parameter verification rule is used to indicate the target verification strategy for the target shared parameter and the target shared file correction strategy when the target shared parameter verification fails; The target shared parameters are verified using the target verification strategy. When the target shared parameter verification fails, the target shared file is corrected using the target shared file correction strategy.

[0016] As a preferred embodiment, the method further includes: When a file sharing instruction is received, the current file to be shared and its corresponding required sharing attributes are determined based on the file sharing instruction. Based on the preset sharing scheme information corresponding to different sharing attributes, the demand sharing scheme corresponding to the demand sharing attribute is determined. Based on the aforementioned demand sharing attributes and demand sharing scheme, the file to be shared is configured for sharing.

[0017] A second aspect of the present invention provides a shared file management device, comprising: The information acquisition module is used to acquire the target user's characteristic information and shared file information; The shared file adjustment information acquisition module is used to acquire the shared file adjustment information of the target user based on the feature information and the shared file information using a file information adjustment model; wherein, the file information adjustment model is obtained by training with training data having expected adjustment information labels, and the training data includes training feature information and training shared file information; The shared file update module is used to update the target shared file of the target user according to the shared file adjustment information and a preset shared file update strategy.

[0018] As a preferred embodiment, the shared file adjustment information acquisition module is used to acquire the shared file adjustment information of the target user based on the feature information and the shared file information using a file information adjustment model, specifically including: Based on the aforementioned feature information, the target user's personal feature information and associated user information are determined; Based on the shared file information, determine the content classification identifier and file metadata of each of the target shared files; Based on the personal feature information, the associated user information, the content classification identifier, and the file metadata, the target content classification identifier, target sharing attribute, and target sharing parameter of the target shared file are generated using the file information adjustment model. Based on the target content classification identifier, the target sharing attribute, and the target sharing parameter, the file metadata is adjusted to generate the shared file adjustment information.

[0019] As a preferred embodiment, the file information adjustment model includes a content classification adjustment module, a shared attribute adjustment module, and a shared parameter adjustment module; The shared file adjustment information acquisition module is used to generate the target content classification identifier, target sharing attribute, and target sharing parameter of the target shared file based on the personal feature information, the associated user information, the content classification identifier, and the file metadata, using the file information adjustment model. Specifically, this includes: Based on the personal characteristic information, the content classification identifier, and the file metadata, the target content classification identifier is generated by the content classification adjustment module. Based on the personal characteristic information, the content classification identifier, and the file metadata, the target sharing attribute is generated through the sharing attribute adjustment module. Based on the personal characteristic information, the content category identifier, the associated user information, and the file metadata, the target sharing attribute is used as the activation condition, and the target sharing parameter is generated by the sharing parameter adjustment module.

[0020] As a preferred embodiment, the loss function of the content classification adjustment module is determined based on the difference between the content classification identifier of the shared files after content classification adjustment and the content classification identifier of the shared files before content classification adjustment; The loss function of the shared attribute adjustment module is determined based on the difference between the first shared attribute of the shared file before the shared attribute adjustment and the second shared attribute of the shared file after the shared attribute adjustment; The loss function of the shared parameter adjustment module is determined based on the difference between the first shared parameter activation value after shared parameter adjustment and the second shared parameter activation value before shared parameter adjustment; wherein, the first shared parameter activation value is calculated using the ReLU function based on the shared parameter after shared parameter adjustment, the first shared attribute, and a preset attribute activation threshold; the second shared parameter activation value is calculated using the ReLU function based on the shared parameter before shared parameter adjustment, the second shared attribute, and the attribute activation threshold.

[0021] As a preferred embodiment, the shared file update module is used to update the target shared file of the target user according to the shared file adjustment information and a preset shared file update strategy, specifically including: Based on the preset sharing scheme change strategies corresponding to different sharing attributes, determine the target change sharing scheme information corresponding to the target sharing attribute in the shared file adjustment information; According to the shared file update strategy, the target shared file is updated using the shared file adjustment information and the target changed sharing scheme information.

[0022] As a preferred embodiment, the shared file update module is used to update the target shared file according to the shared file update strategy, using the shared file adjustment information and the target changed sharing scheme information, specifically including: When the shared file update strategy is managed update, the target shared file is updated using the shared file adjustment information and the target changed sharing scheme information; Obtain the difference comparison information between the shared file adjustment information and the shared file information, so that when the target user's user terminal is detected to have enabled the target cloud storage application, the difference comparison information is sent to the user terminal and displayed in the interface of the target cloud storage application.

[0023] As a preferred embodiment, the shared file update module is used to update the target shared file according to the shared file update strategy, using the shared file adjustment information and the target changed sharing scheme information, and specifically further includes: When the shared file update strategy is manual update, file adjustment instruction information is generated based on the shared file adjustment information; When it is detected that the target user's terminal has enabled the target cloud storage application, the file adjustment instruction information is sent to the user terminal; wherein, the file adjustment instruction information is used to instruct the user terminal to provide confirmation or non-confirmation information corresponding to the shared file adjustment information; Upon receiving the confirmation information, the target shared file is updated using the shared file adjustment information and the target changed sharing scheme information.

[0024] As a preferred embodiment, the shared file update module is further configured to: When the non-confirmation information is received, the adjusted shared file adjustment information is obtained from the non-confirmation information; When the adjusted shared file adjustment information contains an updated sharing attribute that is inconsistent with the target sharing attribute, the update change sharing scheme information corresponding to the updated sharing attribute is obtained; The target shared file is updated using the adjusted shared file information and the updated shared scheme information.

[0025] As a preferred embodiment, the device is further used for: When the target sharing attribute is a file sharing based on user attributes, the current target associated user information is obtained from the target sharing parameters; Based on the target associated user information, detect whether there are common associated user attributes among the target associated users corresponding to the target associated user information; If one or more of the aforementioned common associated user attributes exist, then any one of the aforementioned common associated user attributes is selected to adjust the target associated user attributes corresponding to each target associated user; If the common associated user attribute does not exist, the target associated user attribute corresponding to each target associated user is adjusted using the preset associated user shared attribute; The common associated user attribute and the associated user shared attribute are used to perform sharing legal authentication on the user terminal of the target associated user when the user terminal of the target associated user requests to obtain the target shared file.

[0026] As a preferred embodiment, the device is further used for: When the target sharing attribute is file sharing based on multi-user authentication, the current target associated user information is obtained from the target sharing parameters, and the number of target associated users is determined based on the target associated user information; Based on the target number of associated users and the preset key fragment length, the file identifier of the target shared file is expanded to obtain a verification key; wherein, the file identifier is obtained from the file metadata; According to the key fragment length, the verification key is divided into N key fragments and sent to each target associated user respectively; where N is equal to the number of target associated users; the N key fragments are used to perform sharing legal authentication on the user terminals of each target associated user when each user terminal requests to obtain the target shared file.

[0027] As a preferred embodiment, the device is further used for: The target shared parameter verification rule corresponding to the target shared attribute is obtained from the preset verification rule library; wherein, the target shared parameter verification rule is used to indicate the target verification strategy for the target shared parameter and the target shared file correction strategy when the target shared parameter verification fails; The target shared parameters are verified using the target verification strategy. When the target shared parameter verification fails, the target shared file is corrected using the target shared file correction strategy.

[0028] As a preferred embodiment, the device is further used for: When a file sharing instruction is received, the current file to be shared and its corresponding required sharing attributes are determined based on the file sharing instruction. Based on the preset sharing scheme information corresponding to different sharing attributes, the demand sharing scheme corresponding to the demand sharing attribute is determined. Based on the aforementioned demand sharing attributes and demand sharing scheme, the file to be shared is configured for sharing.

[0029] A third aspect of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the shared file management method described in any of the first aspects.

[0030] A fourth aspect of the present invention provides a computer-readable storage medium, the computer-readable storage medium including a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform the shared file management method described in any of the first aspects.

[0031] A fifth aspect of the present invention provides a computer program product, including a computer program / instructions, wherein when the computer program / instructions are executed by a processor, they implement the steps of the shared file management method described in any of the first aspects.

[0032] Compared with the prior art, the beneficial effect of the embodiments of the present invention is that by using the file information adjustment model to generate corresponding shared file adjustment information based on the target user's feature information and shared file information, it can ensure that the generated shared file adjustment information can be adapted to the target user's features and shared file content, without relying on the target user to adjust it themselves. Thus, it can accurately and effectively manage the shared file information of different users dynamically and protect the security of users' shared file information. Attached Figure Description

[0033] Figure 1 This is a flowchart illustrating the shared file management method in an embodiment of the present invention; Figure 2 This is a diagram of the file information adjustment model architecture in an embodiment of the present invention; Figure 3 This is a schematic diagram of the structure of the shared file management device in an embodiment of the present invention; Figure 4 This is a schematic diagram of the structure of the electronic device in an embodiment of the present invention. Detailed Implementation

[0034] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. 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 are within the scope of protection of the present invention.

[0035] Please see Figure 1The first aspect of this invention provides a shared file management method, which is executed by a server and includes the following steps S1 to S3: Step S1: Obtain the target user's characteristic information and shared file information.

[0036] It is worth noting that the server-side in this embodiment specifically refers to the server-side of a cloud storage application, such as the server-side of a cloud disk application; this embodiment does not impose any specific limitations. The target users are those who currently require shared file management services. For users who have created shared files, this embodiment can periodically manage each user's shared files to ensure the security of the shared attributes corresponding to the shared files and their reasonableness over time. For example, this embodiment periodically iterates through each user who has not managed shared files since the last time the cloud storage application was enabled, designating them as target users U0, and then obtaining their personal characteristic information: , Let be the k-th user feature value. Each user feature value is used to represent different feature information. Further, obtain the list of target shared files that the target user has already sent on the cloud storage platform: , For the nth target shared file. Obtain file metadata for each target shared file. : ; in, A unique identifier for the target shared file. For file type, For filename, For file size, For shared attributes, To share the start time, To share the expiry date, For shared accounts, Verification code for shared file access. This is the directory for storing files. This represents the maximum number of times a file can be shared. This is a private file tag, specifically indicating whether the file is located in an encrypted file directory, hidden file directory, or safe deposit box on a cloud storage platform.

[0037] Furthermore, this embodiment also obtains content classification identifiers by analyzing and identifying the content of the target shared file. It needs to parse the documents according to their respective file types to achieve content recognition, and obtain the content classification identifiers according to the content. These content classification identifiers include: user's private files, user's public data, user's business files, public entertainment files, public academic files, and public business files, etc.

[0038] Based on the file metadata and content classification identifiers mentioned above, the shared file information of the target user can be determined.

[0039] Furthermore, this embodiment can directly obtain the associated user information U of the target user through the user management system: ; in, This represents the i-th associated user of the current target user. Indicates associated users Relationship with the current target users Indicates associated users The list of attribute parameters, It is a specific attribute value used to describe the associated user. Its characteristics.

[0040] Based on the aforementioned personal characteristics and associated user information, the target user's characteristics can be determined. Based on the target user's characteristics and shared file information, the target user's preferences, shared file content, and changes in associated users can be identified, thus enabling more accurate generation of corresponding shared file adjustment information.

[0041] Step S2: Based on the feature information and the shared file information, obtain the shared file adjustment information of the target user using the file information adjustment model; wherein, the file information adjustment model is obtained by training with training data having expected adjustment information labels, and the training data includes training feature information and training shared file information.

[0042] Specifically, this embodiment uses a file information adjustment model to infer shared file information based on currently acquired feature information and shared file information. This allows for the acquisition of the target user's current shared file adjustment information, tailored to the target user's preferences, shared file content, and changes in associated users, thus achieving dynamic adjustment of shared file information. It's worth noting that the file information adjustment model is obtained by training data with expected adjustment information labels. That is, the training data clearly defines multiple sets of training feature information and training shared file information, along with their corresponding expected adjustment information labels. Based on this input data and expected output data, a backpropagation (BP) algorithm is used to train the neural network model. By changing the parameters of the neural network model, the file information adjustment model is obtained.

[0043] Step S3: Based on the shared file adjustment information, update the target shared file of the target user according to the preset shared file update strategy.

[0044] Specifically, after obtaining the shared file adjustment information, the target shared file can be updated according to the preset shared file update strategy. It can be understood that the shared file update strategy can be set by the user to meet the shared file update habits and preferences of different users.

[0045] The shared file management method provided in this invention generates corresponding shared file adjustment information based on the target user's feature information and shared file information using a file information adjustment model. This ensures that the generated shared file adjustment information can be adapted to the target user's features and the content of the shared files, without relying on the target user to make adjustments themselves. As a result, it can accurately and effectively manage the shared file information of different users dynamically, thus ensuring the security of users' shared file information.

[0046] As a preferred embodiment, the step of obtaining the shared file adjustment information of the target user using a file information adjustment model based on the feature information and the shared file information specifically includes: Based on the aforementioned feature information, the target user's personal feature information and associated user information are determined; Based on the shared file information, determine the content classification identifier and file metadata of each of the target shared files; Based on the personal feature information, the associated user information, the content classification identifier, and the file metadata, the target content classification identifier, target sharing attribute, and target sharing parameter of the target shared file are generated using the file information adjustment model. Based on the target content classification identifier, the target sharing attribute, and the target sharing parameter, the file metadata is adjusted to generate the shared file adjustment information.

[0047] Specifically, this embodiment first determines personal characteristic information, associated user information, content classification identifiers of each target shared file, and file metadata based on the target user's characteristic information and shared file information. Since this information can characterize the target user's current preferences, associated users, and target shared file content, this information is input into the file information adjustment model for model inference to generate target content classification identifiers, target sharing attributes, and target sharing parameters that match the current target user's preferences, associated users, and target shared file content. Then, the remaining information in the original file metadata is combined to generate the current shared file adjustment information.

[0048] This invention, by fully considering the target user's personal characteristics, associated user information, and the content classification identifiers and file metadata of each target shared file when generating shared file adjustment information, ensures that the generated target content classification identifiers, target sharing attributes, and target sharing parameters match the current target user's preferences, associated users, and target shared file content, thus guaranteeing the accuracy and rationality of shared file management.

[0049] As a preferred embodiment, the file information adjustment model includes a content classification adjustment module, a shared attribute adjustment module, and a shared parameter adjustment module; The step of generating the target content classification identifier, target sharing attribute, and target sharing parameter of the target shared file using the file information adjustment model based on the personal feature information, the associated user information, the content classification identifier, and the file metadata specifically includes: Based on the personal characteristic information, the content classification identifier, and the file metadata, the target content classification identifier is generated by the content classification adjustment module. Based on the personal characteristic information, the content classification identifier, and the file metadata, the target sharing attribute is generated through the sharing attribute adjustment module. Based on the personal characteristic information, the content category identifier, the associated user information, and the file metadata, the target sharing attribute is used as the activation condition, and the target sharing parameter is generated by the sharing parameter adjustment module.

[0050] Specifically, such as Figure 2 The diagram shown is an architecture diagram of the file information adjustment model in this embodiment. The main function of the content classification adjustment module is to readjust the original target shared files according to their content, with the main purpose of generating target content classification identifiers. This module reclassifies the target shared files. Its inputs are personal characteristic information T and content classification identifiers. and file metadata .

[0051] The content categorization adjustment module includes multiple neural network layers. Figure 2 middle, This indicates the number of neural network layers in the content classification adjustment module, and the calculation logic for each neural network layer is as follows: ; in, This is the i-th output of the l-th neural network layer. Let be the activation value of the i-th feature in the l-th neural network layer, as shown in the following expression: ; ; ; ; in, For the q-th input of the l-th neural network layer, Let l be the query matrix of the l-th neural network layer. Let l be the key matrix of the l-th neural network layer. Let be the attention value obtained by processing the QK matrix through the q-th input of the l-th neural network layer. For the (l-1)th layer of the neural network, the i-th input is... This means that in the first layer of the neural network, This is the original input information.

[0052] Furthermore, the shared attribute adjustment module is used to adjust shared attributes, and its inputs are personal characteristic information T and content category identifier. and file metadata To regenerate the sharing attributes of the target shared file, matching the current personal characteristic information T and content category identifier. and file metadata .

[0053] The shared attribute adjustment module includes multiple neural network layers, in Figure 2 middle, This indicates the number of neural network layers in the shared attribute adjustment module. Indicates the first shared attribute adjustment module l The first layer of a neural network s The _th neuron, i.e., the _th ... l A layered neural network has a total of s The computational logic for each layer of a neural network with 1 neuron is as follows: ; ; Where cl is the number of neurons in the l-th neural network layer. Let J be the weight of the j-th neuron in the l-th neural network layer. This is the output of the previous neural network layer. The bias of the l-th neural network layer is defined by a softmax operation in its last layer. The shared attribute corresponding to the largest value in this operation is then taken as the final target shared attribute. .

[0054] Furthermore, the shared parameter adjustment module will adjust the target shared attributes generated by the shared attribute adjustment module. As activation conditions, personal characteristic information T and content classification identifier will be used. Associated user information U and file metadata As input, the adjusted shared attribute parameters are used as output, including the target shared validity period expiration time. Target shared file access verification code Maximum number of times the target is shared Target private file tag Share user information with target U .

[0055] The shared parameter tuning module includes multiple neural network layers, in Figure 2 middle, This indicates the number of neural network layers in the shared parameter adjustment module. Indicating the first shared parameter adjustment module l The first layer of a neural network s The nth neuron, i.e., the nth neuron in the shared parameter adjustment module l A layered neural network has a total of s The computational logic for each layer of a neural network with 1 neuron is as follows: ; Where dl represents the number of neurons in the l-th neural network layer. The weight of the j-th neuron in the l-th neural network layer. This is the output of the (l-1)th neural network layer. This is the bias of the l-th neural network layer.

[0056] Furthermore, a conversion output is added after the last layer of the shared parameter adjustment module, specifically as follows: ; This allows us to obtain the module's output parameter results. To adjust the output of the last layer of the shared parameter adjustment module, the matrix in the expression is the parameter result transformation matrix. Finally, the parameter solution result is format-converted according to the target data format. The specific conversion method is as follows: time(x) is a function that converts x into a timestamp and then into time. int(x) is a function that expands x to the specified integer; , This means using an activation function to convert y into a binary form, creating a set of the same length as x, and then filtering x using the values ​​at corresponding positions. The final result is: the expiration time of the target shared validity period. Target shared file access verification code Maximum number of times the target is shared Target private file tag Share user information with target U .

[0057] Then, the outputs of the above modules are summarized with the file metadata to obtain the shared file adjustment information, including the adjusted file metadata. As shown below: ; and target shared user information As shown below: ; in, The total number of target sharing users after adjusting for shared file information.

[0058] This invention, through the use of a content classification adjustment module, a sharing attribute adjustment module, and a sharing parameter adjustment module, obtains the target content classification identifier, target sharing attribute, and target sharing parameter of the target shared file via feedforward propagation, ensuring that it matches the preferences of the current target user, associated users, and the content of the target shared file.

[0059] As a preferred embodiment, the loss function of the content classification adjustment module is determined based on the difference between the content classification identifier of the shared files after content classification adjustment and the content classification identifier of the shared files before content classification adjustment; The loss function of the shared attribute adjustment module is determined based on the difference between the first shared attribute of the shared file before the shared attribute adjustment and the second shared attribute of the shared file after the shared attribute adjustment; The loss function of the shared parameter adjustment module is determined based on the difference between the first shared parameter activation value after shared parameter adjustment and the second shared parameter activation value before shared parameter adjustment; wherein, the first shared parameter activation value is calculated using the ReLU function based on the shared parameter after shared parameter adjustment, the first shared attribute, and a preset attribute activation threshold; the second shared parameter activation value is calculated using the ReLU function based on the shared parameter before shared parameter adjustment, the second shared attribute, and the attribute activation threshold.

[0060] Specifically, the loss function of the content classification adjustment module in this embodiment Specifically as follows: ; in, This indicates the greater of the number of content category identifiers for shared files before the content category adjustment and the number of content category identifiers for shared files after the content category adjustment. The first shared file before content categorization adjustment Content category identifiers, The shared files after content categorization adjustment Content category identifier. When or If it does not exist, define it as 0.

[0061] Furthermore, the loss function of the shared attribute adjustment module Specifically as follows: ; in, The second sharing attribute of the shared file after adjusting the sharing attributes. Adjust the first sharing attribute of the previously shared file for the sharing attributes.

[0062] Furthermore, the loss function of the shared parameter adjustment module Specifically as follows: ; in, After adjusting the shared parameters, the first Shared parameters The first time before adjusting shared parameters Shared parameters The attribute activation threshold, The number of shared parameters.

[0063] Therefore, the global loss function of the model is adjusted based on the file information. Specifically as follows: ; in, Indicates the number of shared attributes. This indicates that filtering is performed using pairs, when When corresponding to a shared attribute, take Otherwise, take 0.

[0064] By defining the loss functions for the content classification adjustment module, the shared attribute adjustment module, and the shared parameter adjustment module, this embodiment of the invention can ensure the effective training of the file information adjustment model.

[0065] As a preferred embodiment, updating the target shared file of the target user according to the shared file adjustment information and a preset shared file update strategy specifically includes: Based on the preset sharing scheme change strategies corresponding to different sharing attributes, determine the target change sharing scheme information corresponding to the target sharing attribute in the shared file adjustment information; According to the shared file update strategy, the target shared file is updated using the shared file adjustment information and the target changed sharing scheme information.

[0066] Specifically, in this embodiment, different sharing attributes correspond to different sharing schemes. Therefore, when the original sharing attribute changes, the sharing scheme needs to be changed according to the corresponding sharing scheme change strategy to form changed sharing scheme information. The sharing scheme change strategy is shown in Table 1 below: Table 1. Shared attributes and their corresponding sharing scheme change strategies

[0067] Considering that different sharing attributes correspond to different sharing schemes, and that the sharing attributes of the original shared files may change after the shared file information is adjusted, it is necessary to determine the target changed sharing scheme information corresponding to the target sharing attribute in the shared file adjustment information, and update the target shared file according to the shared file update strategy, so as to ensure that the sharing scheme of the target shared file matches the current target user's preferences, associated users, and target shared file content.

[0068] As a preferred embodiment, updating the target shared file according to the shared file update strategy, using the shared file adjustment information and the target changed sharing scheme information, specifically includes: When the shared file update strategy is managed update, the target shared file is updated using the shared file adjustment information and the target changed sharing scheme information; Obtain the difference comparison information between the shared file adjustment information and the shared file information, so that when the target user's user terminal is detected to have enabled the target cloud storage application, the difference comparison information is sent to the user terminal and displayed in the interface of the target cloud storage application.

[0069] Specifically, in this embodiment, when the current shared file update strategy is managed update, the target shared file is updated directly using the shared file adjustment information and the target changed sharing scheme information. The difference comparison information between the shared file adjustment information and the shared file information is calculated. When the target user uses the target cloud storage application next time, this embodiment directly sends the difference comparison information to the target user's terminal for display in the target cloud storage application interface. Preferably, the difference comparison information is displayed in the form of a pop-up window, thereby ensuring that the target user can know the adjustment content of the target shared file each time.

[0070] As a preferred embodiment, the step of updating the target shared file according to the shared file update strategy, using the shared file adjustment information and the target changed sharing scheme information, further includes: When the shared file update strategy is manual update, file adjustment instruction information is generated based on the shared file adjustment information; When it is detected that the target user's terminal has enabled the target cloud storage application, the file adjustment instruction information is sent to the user terminal; wherein, the file adjustment instruction information is used to instruct the user terminal to provide confirmation or non-confirmation information corresponding to the shared file adjustment information; Upon receiving the confirmation information, the target shared file is updated using the shared file adjustment information and the target changed sharing scheme information.

[0071] Specifically, this embodiment also provides another shared file update strategy, namely manual update, to accommodate the habit of some users determining the adjustments to shared files themselves. Preferably, the shared file update strategy defaults to managed update to ensure timely updates of the target shared file information and the security of the target user's shared file information. Under the manual update strategy, this embodiment first generates file adjustment instruction information based on the generated shared file adjustment information. When the target user uses the target cloud storage application next time, this instruction information is sent to the target user's terminal to instruct the target user to confirm or adjust the shared file adjustment information. When confirmation information is received, it indicates that the target user agrees to update the target shared file using the shared file adjustment information, thereby updating the target shared file using the shared file adjustment information and the target changed sharing scheme information.

[0072] As a preferred embodiment, the method further includes: When the non-confirmation information is received, the adjusted shared file adjustment information is obtained from the non-confirmation information; When the adjusted shared file adjustment information contains an updated sharing attribute that is inconsistent with the target sharing attribute, the update change sharing scheme information corresponding to the updated sharing attribute is obtained; The target shared file is updated using the adjusted shared file information and the updated shared scheme information.

[0073] Specifically, under the manual update strategy, when a non-confirmation message is received, it indicates that the target user needs to manually adjust the currently generated shared file adjustment information a second time. Therefore, this embodiment obtains the adjusted shared file adjustment information from the non-confirmation message. Since different sharing attributes correspond to different sharing schemes, if there are updated sharing attributes in the adjusted shared file adjustment information that are inconsistent with the adjusted target sharing attributes, it is necessary to obtain the updated sharing scheme information of the updated sharing attributes before updating the target shared file.

[0074] Preferably, an updated training set is generated based on the final determined shared file adjustment information or the adjusted shared file adjustment information obtained from the target user. Then, the updated training set is used to iteratively train the file information adjustment model to update the file information adjustment model and ensure that its output can further match the current target user's preferences, associated users, and target shared file content.

[0075] As a preferred embodiment, the method further includes: When the target sharing attribute is a file sharing based on user attributes, the current target associated user information is obtained from the target sharing parameters; Based on the target associated user information, detect whether there are common associated user attributes among the target associated users corresponding to the target associated user information; If one or more of the aforementioned common associated user attributes exist, then any one of the aforementioned common associated user attributes is selected to adjust the target associated user attributes corresponding to each target associated user; If the common associated user attribute does not exist, the target associated user attribute corresponding to each target associated user is adjusted using the preset associated user shared attribute; The common associated user attribute and the associated user shared attribute are used to perform sharing legal authentication on the user terminal of the target associated user when the user terminal of the target associated user requests to obtain the target shared file.

[0076] Specifically, since file sharing based on user attributes requires obtaining the common attributes of each target associated user, and these common attributes may or may not exist, this embodiment needs to first detect whether there are common associated user attributes among the target associated users corresponding to the target associated user information. Specifically, iterate through... ,for , , among which when At that time, the preset associated user shared attributes are utilized. As a property used for file sharing authentication, even Otherwise, select any common associated user attribute to adjust the target associated user attributes corresponding to each target associated user, that is, to serve as the attribute for file sharing verification. Preferably, let , As the first commonly associated user attribute, For the number of users associated with the target, This allows for the sharing attributes of the target file, thereby ensuring the reliability of file sharing based on user attributes.

[0077] As a preferred embodiment, the method further includes: When the target sharing attribute is file sharing based on multi-user authentication, the current target associated user information is obtained from the target sharing parameters, and the number of target associated users is determined based on the target associated user information; Based on the target number of associated users and the preset key fragment length, the file identifier of the target shared file is expanded to obtain a verification key; wherein, the file identifier is obtained from the file metadata; According to the key fragment length, the verification key is divided into N key fragments and sent to each target associated user respectively; where N is equal to the number of target associated users; the N key fragments are used to perform sharing legal authentication on the user terminals of each target associated user when each user terminal requests to obtain the target shared file.

[0078] Specifically, since file sharing based on multi-user authentication requires authentication of participating users during the file sharing process, this embodiment first expands the file identifier of the target shared file based on the number of target associated users and the preset key fragment length, so that the length of the final obtained verification key is the product of the number of target associated users and the key fragment length.

[0079] Preferably, this embodiment uses a cyclical approach to identify files. To expand, the target number of associated users is: The key fragment length is 5 characters, serving as a file identifier. For string S, iteratively perform the following steps until the length is 5× Stop iteration when: ; ; Swap the values ​​of S[i] and S[j], i.e., swap(S[i], S[j]); Through calculation This yields a single byte value: Let d = d|S[t], where | represents string concatenation. After iteration, the verification key d is obtained. The target associated users in the target associated user information are sorted, and 5 characters from the verification key d are assigned to each target associated user in sequence, forming a key fragment for each target associated user. In the actual user authentication process, the key fragments of each participating user are obtained and combined to obtain a reconstructed key, which is compared with the verification key. If the two match, the multi-user authentication is considered successful, thus ensuring the security of file sharing based on multi-user authentication.

[0080] As a preferred embodiment, the method further includes: The target shared parameter verification rule corresponding to the target shared attribute is obtained from the preset verification rule library; wherein, the target shared parameter verification rule is used to indicate the target verification strategy for the target shared parameter and the target shared file correction strategy when the target shared parameter verification fails; The target shared parameters are verified using the target verification strategy. When the target shared parameter verification fails, the target shared file is corrected using the target shared file correction strategy.

[0081] Specifically, to further ensure the matching and accuracy of the target shared parameters, this embodiment verifies the target shared parameters corresponding to the target shared attributes based on a preset verification rule base. It can be understood that the target shared parameter verification rules obtained from the verification rule base are denoted as follows: , For the number of shared parameter validation rules for the target, , Its inputs are target shared attributes and target shared parameters, and its outputs are target shared parameters that meet the rule conditions. For target shared parameters that do not meet the rules, they are adjusted or deleted according to the target shared file correction strategy.

[0082] Since the purpose of this verification is to check the matching between the target shared attributes and the target shared parameters output by the file information adjustment model, that is, to check whether the setting of the target shared parameters meets the conditions of the target shared attributes, it is only necessary to verify the type of shared parameters used by the target shared attributes. Therefore, by default, only the following rules need to be verified: shared access verification under unlimited sharing, validity period verification under timed sharing, associated user verification under specified user sharing, and maximum number of times verification under limited number of times sharing. Other rules can be written and checked according to the rule base and configured according to the management specifications. This embodiment does not make specific limitations here.

[0083] Specifically, for shared access verification under indefinite sharing, when the target share attribute is indefinite file sharing, the adjusted file metadata will be used. In , , and Clear.

[0084] For validity period verification under timed sharing, the maximum pre-configured sharing time limit is obtained. ,and Compare and adjust based on the comparison results: ; For the verification of associated users under a specified user share, check Is it empty? If If empty, then sharing of the target shared file will be disabled.

[0085] For the limit check of the number of shared attempts, the maximum number of shared attempts should be obtained by retrieving the pre-configured limit. ,and Compare and adjust based on the comparison results: ; By verifying the target shared parameters corresponding to the target shared attributes, this embodiment of the invention can further ensure the matching between the target shared attributes and the target shared parameters, and improve the accuracy of the target shared parameters.

[0086] As a preferred embodiment, the method further includes: When a file sharing instruction is received, the current file to be shared and its corresponding required sharing attributes are determined based on the file sharing instruction. Based on the preset sharing scheme information corresponding to different sharing attributes, the demand sharing scheme corresponding to the demand sharing attribute is determined. Based on the aforementioned demand sharing attributes and demand sharing scheme, the file to be shared is configured for sharing.

[0087] Specifically, when using the target cloud storage application, the user can select the file or folder to be shared and choose the desired sharing attributes. This allows the user terminal to generate and send file sharing instructions. The sharing scheme information corresponding to different sharing attributes in this embodiment is shown in Table 2 below: Table 2 Mapping Table of Shared Attributes and Shared Scheme Information

[0088] In this embodiment, upon receiving a file sharing instruction, the current file to be shared and its corresponding required sharing attributes are determined. Based on Table 2 above, a required sharing scheme is further determined. Then, based on the required sharing attributes and the required sharing scheme, the file to be shared is configured to generate the target shared file.

[0089] This invention provides users with various sharing attributes and corresponding sharing schemes, thereby meeting users' diverse management needs for shared files.

[0090] Please see Figure 3 A second aspect of the present invention provides a shared file management device 100, comprising: Information acquisition module 11 is used to acquire the target user's characteristic information and shared file information; The shared file adjustment information acquisition module 12 is used to acquire the shared file adjustment information of the target user based on the feature information and the shared file information using a file information adjustment model; wherein, the file information adjustment model is obtained by training with training data having expected adjustment information labels, and the training data includes training feature information and training shared file information; The shared file update module 13 is used to update the target shared file of the target user according to the shared file adjustment information and a preset shared file update strategy.

[0091] As a preferred embodiment, the shared file adjustment information acquisition module 12 is used to acquire the shared file adjustment information of the target user based on the feature information and the shared file information using a file information adjustment model, specifically including: Based on the aforementioned feature information, the target user's personal feature information and associated user information are determined; Based on the shared file information, determine the content classification identifier and file metadata of each of the target shared files; Based on the personal feature information, the associated user information, the content classification identifier, and the file metadata, the target content classification identifier, target sharing attribute, and target sharing parameter of the target shared file are generated using the file information adjustment model. Based on the target content classification identifier, the target sharing attribute, and the target sharing parameter, the file metadata is adjusted to generate the shared file adjustment information.

[0092] As a preferred embodiment, the file information adjustment model includes a content classification adjustment module, a shared attribute adjustment module, and a shared parameter adjustment module; The shared file adjustment information acquisition module 12 is used to generate the target content classification identifier, target sharing attribute, and target sharing parameter of the target shared file based on the personal feature information, the associated user information, the content classification identifier, and the file metadata, using the file information adjustment model. Specifically, this includes: Based on the personal characteristic information, the content classification identifier, and the file metadata, the target content classification identifier is generated by the content classification adjustment module. Based on the personal characteristic information, the content classification identifier, and the file metadata, the target sharing attribute is generated through the sharing attribute adjustment module. Based on the personal characteristic information, the content category identifier, the associated user information, and the file metadata, the target sharing attribute is used as the activation condition, and the target sharing parameter is generated by the sharing parameter adjustment module.

[0093] As a preferred embodiment, the loss function of the content classification adjustment module is determined based on the difference between the content classification identifier of the shared files after content classification adjustment and the content classification identifier of the shared files before content classification adjustment; The loss function of the shared attribute adjustment module is determined based on the difference between the first shared attribute of the shared file before the shared attribute adjustment and the second shared attribute of the shared file after the shared attribute adjustment; The loss function of the shared parameter adjustment module is determined based on the difference between the first shared parameter activation value after shared parameter adjustment and the second shared parameter activation value before shared parameter adjustment; wherein, the first shared parameter activation value is calculated using the ReLU function based on the shared parameter after shared parameter adjustment, the first shared attribute, and a preset attribute activation threshold; the second shared parameter activation value is calculated using the ReLU function based on the shared parameter before shared parameter adjustment, the second shared attribute, and the attribute activation threshold.

[0094] As a preferred embodiment, the shared file update module 13 is used to update the target shared file of the target user according to the shared file adjustment information and a preset shared file update strategy, specifically including: Based on the preset sharing scheme change strategies corresponding to different sharing attributes, determine the target change sharing scheme information corresponding to the target sharing attribute in the shared file adjustment information; According to the shared file update strategy, the target shared file is updated using the shared file adjustment information and the target changed sharing scheme information.

[0095] As a preferred embodiment, the shared file update module 13 is used to update the target shared file according to the shared file update strategy, using the shared file adjustment information and the target changed sharing scheme information, specifically including: When the shared file update strategy is managed update, the target shared file is updated using the shared file adjustment information and the target changed sharing scheme information; Obtain the difference comparison information between the shared file adjustment information and the shared file information, so that when the target user's user terminal is detected to have enabled the target cloud storage application, the difference comparison information is sent to the user terminal and displayed in the interface of the target cloud storage application.

[0096] As a preferred embodiment, the shared file update module 13 is used to update the target shared file according to the shared file update strategy, using the shared file adjustment information and the target changed sharing scheme information, and specifically further includes: When the shared file update strategy is manual update, file adjustment instruction information is generated based on the shared file adjustment information; When it is detected that the target user's terminal has enabled the target cloud storage application, the file adjustment instruction information is sent to the user terminal; wherein, the file adjustment instruction information is used to instruct the user terminal to provide confirmation or non-confirmation information corresponding to the shared file adjustment information; Upon receiving the confirmation information, the target shared file is updated using the shared file adjustment information and the target changed sharing scheme information.

[0097] As a preferred embodiment, the shared file update module 13 is further configured to: When the non-confirmation information is received, the adjusted shared file adjustment information is obtained from the non-confirmation information; When the adjusted shared file adjustment information contains an updated sharing attribute that is inconsistent with the target sharing attribute, the update change sharing scheme information corresponding to the updated sharing attribute is obtained; The target shared file is updated using the adjusted shared file information and the updated shared scheme information.

[0098] As a preferred embodiment, the device is further used for: When the target sharing attribute is a file sharing based on user attributes, the current target associated user information is obtained from the target sharing parameters; Based on the target associated user information, detect whether there are common associated user attributes among the target associated users corresponding to the target associated user information; If one or more of the aforementioned common associated user attributes exist, then any one of the aforementioned common associated user attributes is selected to adjust the target associated user attributes corresponding to each target associated user; If the common associated user attribute does not exist, the target associated user attribute corresponding to each target associated user is adjusted using the preset associated user shared attribute; The common associated user attribute and the associated user shared attribute are used to perform sharing legal authentication on the user terminal of the target associated user when the user terminal of the target associated user requests to obtain the target shared file.

[0099] As a preferred embodiment, the device is further used for: When the target sharing attribute is file sharing based on multi-user authentication, the current target associated user information is obtained from the target sharing parameters, and the number of target associated users is determined based on the target associated user information; Based on the target number of associated users and the preset key fragment length, the file identifier of the target shared file is expanded to obtain a verification key; wherein, the file identifier is obtained from the file metadata; According to the key fragment length, the verification key is divided into N key fragments and sent to each target associated user respectively; where N is equal to the number of target associated users; the N key fragments are used to perform sharing legal authentication on the user terminals of each target associated user when each user terminal requests to obtain the target shared file.

[0100] As a preferred embodiment, the device is further used for: The target shared parameter verification rule corresponding to the target shared attribute is obtained from the preset verification rule library; wherein, the target shared parameter verification rule is used to indicate the target verification strategy for the target shared parameter and the target shared file correction strategy when the target shared parameter verification fails; The target shared parameters are verified using the target verification strategy. When the target shared parameter verification fails, the target shared file is corrected using the target shared file correction strategy.

[0101] As a preferred embodiment, the device is further used for: When a file sharing instruction is received, the current file to be shared and its corresponding required sharing attributes are determined based on the file sharing instruction. Based on the preset sharing scheme information corresponding to different sharing attributes, the demand sharing scheme corresponding to the demand sharing attribute is determined. Based on the aforementioned demand sharing attributes and demand sharing scheme, the file to be shared is configured for sharing.

[0102] The shared file management device 100 provided in this embodiment of the invention generates corresponding shared file adjustment information based on the target user's feature information and shared file information using a file information adjustment model. This ensures that the generated shared file adjustment information can be adapted to the target user's features and the content of the shared files, without relying on the target user to make adjustments themselves. As a result, it can accurately and effectively manage the shared file information of different users dynamically, and protect the security of the users' shared file information.

[0103] Please see Figure 4 The third aspect of the present invention provides an electronic device 200, including a memory 22, a processor 21, and a computer program stored in the memory 22 and executable on the processor 21. When the processor 21 executes the computer program, it implements the shared file management method described in any embodiment of the first aspect.

[0104] For example, the computer program may be divided into one or more modules / units, which are stored in the memory 22 and executed by the processor 21 to complete the present invention. The one or more modules / units may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the electronic device 200.

[0105] The electronic device 200 may include, but is not limited to, a processor 21 and a memory 22. Those skilled in the art will understand that the schematic diagram is merely an example of the electronic device 200 and does not constitute a limitation on the electronic device 200. It may include more or fewer components than illustrated, or combine certain components, or different components. For example, the electronic device 200 may also include input / output devices, network access devices, buses, etc.

[0106] The processor 21 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor, or the processor 21 can be any conventional processor 21. The processor 21 is the control center of the electronic device 200, connecting various parts of the electronic device 200 via various interfaces and lines.

[0107] The memory 22 can be used to store the computer programs and / or modules. The processor 21 implements various functions of the electronic device 200 by running or executing the computer programs and / or modules stored in the memory 22 and calling the data stored in the memory 22. The memory 22 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the mobile phone (such as audio data, phonebook, etc.). In addition, the memory 22 may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, memory, plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0108] A fourth aspect of the present invention provides a computer-readable storage medium, the computer-readable storage medium including a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform the shared file management method described in any of the first aspects.

[0109] A fifth aspect of the present invention provides a computer program product, including a computer program / instructions, wherein when the computer program / instructions are executed by a processor, they implement the steps of the shared file management method described in any of the first aspects.

[0110] Wherein, if the modules / units integrated in the electronic device are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc.

[0111] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A shared file management method, characterized in that, The method is executed by the server and includes: Obtain the target user's characteristic information and shared file information; Based on the feature information and the shared file information, the shared file adjustment information of the target user is obtained using a file information adjustment model; wherein, the file information adjustment model is obtained by training with training data having expected adjustment information labels, and the training data includes training feature information and training shared file information; Based on the shared file adjustment information, the target shared files of the target user are updated according to the preset shared file update strategy.

2. The shared file management method as described in claim 1, characterized in that, The step of obtaining the shared file adjustment information of the target user using a file information adjustment model based on the feature information and the shared file information specifically includes: Based on the aforementioned feature information, the target user's personal feature information and associated user information are determined; Based on the shared file information, determine the content classification identifier and file metadata of each of the target shared files; Based on the personal feature information, the associated user information, the content classification identifier, and the file metadata, the target content classification identifier, target sharing attribute, and target sharing parameter of the target shared file are generated using the file information adjustment model. Based on the target content classification identifier, the target sharing attribute, and the target sharing parameter, the file metadata is adjusted to generate the shared file adjustment information.

3. The shared file management method as described in claim 2, characterized in that, The file information adjustment model includes a content classification adjustment module, a shared attribute adjustment module, and a shared parameter adjustment module; The step of generating the target content classification identifier, target sharing attribute, and target sharing parameter of the target shared file using the file information adjustment model based on the personal feature information, the associated user information, the content classification identifier, and the file metadata specifically includes: Based on the personal characteristic information, the content classification identifier, and the file metadata, the target content classification identifier is generated by the content classification adjustment module. Based on the personal characteristic information, the content classification identifier, and the file metadata, the target sharing attribute is generated through the sharing attribute adjustment module. Based on the personal characteristic information, the content category identifier, the associated user information, and the file metadata, the target sharing attribute is used as the activation condition, and the target sharing parameter is generated by the sharing parameter adjustment module.

4. The shared file management method as described in claim 3, characterized in that, The loss function of the content classification adjustment module is determined based on the difference between the content classification identifier of the shared files after content classification adjustment and the content classification identifier of the shared files before content classification adjustment; The loss function of the shared attribute adjustment module is determined based on the difference between the first shared attribute of the shared file before the shared attribute adjustment and the second shared attribute of the shared file after the shared attribute adjustment; The loss function of the shared parameter adjustment module is determined based on the difference between the first shared parameter activation value after shared parameter adjustment and the second shared parameter activation value before shared parameter adjustment; wherein, the first shared parameter activation value is calculated using the ReLU function based on the shared parameter after shared parameter adjustment, the first shared attribute, and a preset attribute activation threshold; the second shared parameter activation value is calculated using the ReLU function based on the shared parameter before shared parameter adjustment, the second shared attribute, and the attribute activation threshold.

5. The shared file management method as described in claim 2, characterized in that, The step of updating the target shared file of the target user according to the preset shared file update strategy based on the shared file adjustment information specifically includes: Based on the preset sharing scheme change strategies corresponding to different sharing attributes, determine the target change sharing scheme information corresponding to the target sharing attribute in the shared file adjustment information; According to the shared file update strategy, the target shared file is updated using the shared file adjustment information and the target changed sharing scheme information.

6. The shared file management method as described in claim 5, characterized in that, The step of updating the target shared file according to the shared file update strategy, using the shared file adjustment information and the target changed sharing scheme information, specifically includes: When the shared file update strategy is managed update, the target shared file is updated using the shared file adjustment information and the target changed sharing scheme information; Obtain the difference comparison information between the shared file adjustment information and the shared file information, so that when the target user's user terminal is detected to have enabled the target cloud storage application, the difference comparison information is sent to the user terminal and displayed in the interface of the target cloud storage application.

7. The shared file management method as described in claim 5, characterized in that, The step of updating the target shared file according to the shared file update strategy, using the shared file adjustment information and the target changed sharing scheme information, further includes: When the shared file update strategy is manual update, file adjustment instruction information is generated based on the shared file adjustment information; When it is detected that the target user's terminal has enabled the target cloud storage application, the file adjustment instruction information is sent to the user terminal; wherein, the file adjustment instruction information is used to instruct the user terminal to provide confirmation or non-confirmation information corresponding to the shared file adjustment information; Upon receiving the confirmation information, the target shared file is updated using the shared file adjustment information and the target changed sharing scheme information.

8. The shared file management method as described in claim 7, characterized in that, The method further includes: When the non-confirmation information is received, the adjusted shared file adjustment information is obtained from the non-confirmation information; When the adjusted shared file adjustment information contains an updated sharing attribute that is inconsistent with the target sharing attribute, the update change sharing scheme information corresponding to the updated sharing attribute is obtained; The target shared file is updated using the adjusted shared file information and the updated shared scheme information.

9. The shared file management method as described in claim 2, characterized in that, The method further includes: When the target sharing attribute is a file sharing based on user attributes, the current target associated user information is obtained from the target sharing parameters; Based on the target associated user information, detect whether there are common associated user attributes among the target associated users corresponding to the target associated user information; If one or more of the aforementioned common associated user attributes exist, then any one of the aforementioned common associated user attributes is selected to adjust the target associated user attributes corresponding to each target associated user; If the common associated user attribute does not exist, the target associated user attribute corresponding to each target associated user is adjusted using the preset associated user shared attribute; The common associated user attribute and the associated user shared attribute are used to perform sharing legal authentication on the user terminal of the target associated user when the user terminal of the target associated user requests to obtain the target shared file.

10. The shared file management method as described in claim 2, characterized in that, The method further includes: When the target sharing attribute is file sharing based on multi-user authentication, the current target associated user information is obtained from the target sharing parameters, and the number of target associated users is determined based on the target associated user information; Based on the target number of associated users and the preset key fragment length, the file identifier of the target shared file is expanded to obtain a verification key; wherein, the file identifier is obtained from the file metadata; According to the key fragment length, the verification key is divided into N key fragments and sent to each target associated user respectively; where N is equal to the number of target associated users; the N key fragments are used to perform sharing legal authentication on the user terminals of each target associated user when each user terminal requests to obtain the target shared file.

11. The shared file management method as described in claim 2, characterized in that, The method further includes: The target shared parameter verification rule corresponding to the target shared attribute is obtained from the preset verification rule library; wherein, the target shared parameter verification rule is used to indicate the target verification strategy for the target shared parameter and the target shared file correction strategy when the target shared parameter verification fails; The target shared parameters are verified using the target verification strategy. When the target shared parameter verification fails, the target shared file is corrected using the target shared file correction strategy.

12. The shared file management method as described in claim 1, characterized in that, The method further includes: When a file sharing instruction is received, the current file to be shared and its corresponding required sharing attributes are determined based on the file sharing instruction. Based on the preset sharing scheme information corresponding to different sharing attributes, the demand sharing scheme corresponding to the demand sharing attribute is determined. Based on the aforementioned demand sharing attributes and demand sharing scheme, the file to be shared is configured for sharing.

13. A shared file management device, characterized in that, include: The information acquisition module is used to acquire the target user's characteristic information and shared file information; The shared file adjustment information acquisition module is used to acquire the shared file adjustment information of the target user based on the feature information and the shared file information using a file information adjustment model; wherein, the file information adjustment model is obtained by training with training data having expected adjustment information labels, and the training data includes training feature information and training shared file information; The shared file update module is used to update the target shared file of the target user according to the shared file adjustment information and a preset shared file update strategy.

14. The shared file management device as described in claim 13, characterized in that, The shared file adjustment information acquisition module is used to acquire the shared file adjustment information of the target user based on the feature information and the shared file information, using a file information adjustment model. Specifically, it includes: Based on the aforementioned feature information, the target user's personal feature information and associated user information are determined; Based on the shared file information, determine the content classification identifier and file metadata of each of the target shared files; Based on the personal feature information, the associated user information, the content classification identifier, and the file metadata, the target content classification identifier, target sharing attribute, and target sharing parameter of the target shared file are generated using the file information adjustment model. Based on the target content classification identifier, the target sharing attribute, and the target sharing parameter, the file metadata is adjusted to generate the shared file adjustment information.

15. The shared file management device as described in claim 14, characterized in that, The file information adjustment model includes a content classification adjustment module, a shared attribute adjustment module, and a shared parameter adjustment module; The shared file adjustment information acquisition module is used to generate the target content classification identifier, target sharing attribute, and target sharing parameter of the target shared file based on the personal feature information, the associated user information, the content classification identifier, and the file metadata, using the file information adjustment model. Specifically, this includes: Based on the personal characteristic information, the content classification identifier, and the file metadata, the target content classification identifier is generated by the content classification adjustment module. Based on the personal characteristic information, the content classification identifier, and the file metadata, the target sharing attribute is generated through the sharing attribute adjustment module. Based on the personal characteristic information, the content category identifier, the associated user information, and the file metadata, the target sharing attribute is used as the activation condition, and the target sharing parameter is generated by the sharing parameter adjustment module.

16. The shared file management device as described in claim 15, characterized in that, The loss function of the content classification adjustment module is determined based on the difference between the content classification identifier of the shared files after content classification adjustment and the content classification identifier of the shared files before content classification adjustment; The loss function of the shared attribute adjustment module is determined based on the difference between the first shared attribute of the shared file before the shared attribute adjustment and the second shared attribute of the shared file after the shared attribute adjustment; The loss function of the shared parameter adjustment module is determined based on the difference between the first shared parameter activation value after shared parameter adjustment and the second shared parameter activation value before shared parameter adjustment; wherein, the first shared parameter activation value is calculated using the ReLU function based on the shared parameter after shared parameter adjustment, the first shared attribute, and a preset attribute activation threshold; the second shared parameter activation value is calculated using the ReLU function based on the shared parameter before shared parameter adjustment, the second shared attribute, and the attribute activation threshold.

17. The shared file management device as described in claim 14, characterized in that, The shared file update module is used to update the target shared file of the target user according to the shared file adjustment information and a preset shared file update strategy, specifically including: Based on the preset sharing scheme change strategies corresponding to different sharing attributes, determine the target change sharing scheme information corresponding to the target sharing attribute in the shared file adjustment information; According to the shared file update strategy, the target shared file is updated using the shared file adjustment information and the target changed sharing scheme information.

18. The shared file management device as described in claim 17, characterized in that, The shared file update module is used to update the target shared file according to the shared file update strategy, using the shared file adjustment information and the target changed sharing scheme information, specifically including: When the shared file update strategy is managed update, the target shared file is updated using the shared file adjustment information and the target changed sharing scheme information; Obtain the difference comparison information between the shared file adjustment information and the shared file information, so that when the target user's user terminal is detected to have enabled the target cloud storage application, the difference comparison information is sent to the user terminal and displayed in the interface of the target cloud storage application.

19. The shared file management device as described in claim 17, characterized in that, The shared file update module is used to update the target shared file according to the shared file update strategy, using the shared file adjustment information and the target changed sharing scheme information, and specifically includes: When the shared file update strategy is manual update, file adjustment instruction information is generated based on the shared file adjustment information; When it is detected that the target user's terminal has enabled the target cloud storage application, the file adjustment instruction information is sent to the user terminal; wherein, the file adjustment instruction information is used to instruct the user terminal to provide confirmation or non-confirmation information corresponding to the shared file adjustment information; Upon receiving the confirmation information, the target shared file is updated using the shared file adjustment information and the target changed sharing scheme information.

20. The shared file management device as described in claim 19, characterized in that, The shared file update module is also used for: When the non-confirmation information is received, the adjusted shared file adjustment information is obtained from the non-confirmation information; When the adjusted shared file adjustment information contains an updated sharing attribute that is inconsistent with the target sharing attribute, the update change sharing scheme information corresponding to the updated sharing attribute is obtained; The target shared file is updated using the adjusted shared file information and the updated shared scheme information.

21. The shared file management device as described in claim 14, characterized in that, The device is also used for: When the target sharing attribute is a file sharing based on user attributes, the current target associated user information is obtained from the target sharing parameters; Based on the target associated user information, detect whether there are common associated user attributes among the target associated users corresponding to the target associated user information; If one or more of the aforementioned common associated user attributes exist, then any one of the aforementioned common associated user attributes is selected to adjust the target associated user attributes corresponding to each target associated user; If the common associated user attribute does not exist, the target associated user attribute corresponding to each target associated user is adjusted using the preset associated user shared attribute; The common associated user attribute and the associated user shared attribute are used to perform sharing legal authentication on the user terminal of the target associated user when the user terminal of the target associated user requests to obtain the target shared file.

22. The shared file management device as described in claim 14, characterized in that, The device is also used for: When the target sharing attribute is file sharing based on multi-user authentication, the current target associated user information is obtained from the target sharing parameters, and the number of target associated users is determined based on the target associated user information; Based on the target number of associated users and the preset key fragment length, the file identifier of the target shared file is expanded to obtain a verification key; wherein, the file identifier is obtained from the file metadata; According to the key fragment length, the verification key is divided into N key fragments and sent to each target associated user respectively; where N is equal to the number of target associated users; the N key fragments are used to perform sharing legal authentication on the user terminals of each target associated user when each user terminal requests to obtain the target shared file.

23. The shared file management device as described in claim 14, characterized in that, The device is also used for: The target shared parameter verification rule corresponding to the target shared attribute is obtained from the preset verification rule library; wherein, the target shared parameter verification rule is used to indicate the target verification strategy for the target shared parameter and the target shared file correction strategy when the target shared parameter verification fails; The target shared parameters are verified using the target verification strategy. When the target shared parameter verification fails, the target shared file is corrected using the target shared file correction strategy.

24. The shared file management device as described in claim 13, characterized in that, The device is also used for: When a file sharing instruction is received, the current file to be shared and its corresponding required sharing attributes are determined based on the file sharing instruction. Based on the preset sharing scheme information corresponding to different sharing attributes, the demand sharing scheme corresponding to the demand sharing attribute is determined. Based on the aforementioned demand sharing attributes and demand sharing scheme, the file to be shared is configured for sharing.

25. An electronic device, characterized in that, The method includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the shared file management method according to any one of claims 1 to 12.

26. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform the shared file management method according to any one of claims 1 to 12.

27. A computer program product, characterized in that, Includes a computer program / instruction that, when executed by a processor, implements the steps of the shared file management method according to any one of claims 1 to 12.