Data analysis method, device, electronic device and storage medium

Through custom analysis functions and preset generation strategies, automatic screening and generation of analysis methods improve the data analysis efficiency and user convenience of the digital twin brain platform, and solve the problems of low data analysis efficiency and complex operations in the existing technology.

CN118070075BActive Publication Date: 2024-09-03ZHEJIANG LAB
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202410482310.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-22
Publication Date
2024-09-03
Estimated Expiration
2044-04-22

AI Technical Summary

Technical Problem

The data analysis efficiency of the existing digital twin brain platform is low, it cannot meet the diverse analysis needs of users, and it is inconvenient for users to operate.

Method used

Provide a data analysis method that obtains custom analysis functions and user data, determines custom analysis methods based on preset generation strategies, generates parameter input interfaces, and performs data processing to obtain analysis results. The method includes an analysis method description module, an interface construction module and a result acquisition module to realize the convenience of user-defined analysis methods and automatic screening of analysis methods.

Benefits of technology

It improves the data analysis efficiency of the digital twin brain platform, lowers the learning threshold for users, enhances the visualization and sharing capabilities of analysis methods, and meets the diverse analysis needs of users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118070075B
    Figure CN118070075B
Patent Text Reader

Abstract

The present application relates to a data analysis method, device, electronic device and storage medium, wherein the data analysis method includes: obtaining a custom analysis method by matching a user's custom function with an analysis method generation strategy, and adding the method to a data analysis module, thereby realizing the convenience of user-defined analysis methods; when a user needs to analyze data, obtaining the user's analysis data, and filtering the custom analysis methods in the data analysis module according to the analysis data to obtain a target analysis method; matching the corresponding parameter input component according to the target analysis method to obtain a parameter input interface; inputting the analysis data sent by the user into the parameter input interface, and then processing the analysis data according to the target analysis method to obtain a data analysis result. By automatically filtering the analysis method and generating the corresponding parameter input interface, the data analysis efficiency of the digital twin brain platform is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of digital twin brain analysis, and in particular to a data analysis method, device, electronic device and storage medium. Background Art

[0002] The digital twin brain analysis module refers to the module in the digital brain software that analyzes the data therein. Since the data related to the digital twin brain includes multiple data types such as magnetic resonance data, electrophysiological data, processed scalar data, matrix data, vector data, etc., and covers a variety of analysis needs in different studies.

[0003] At the same time, data analysis on most digital twin brain platforms is a very broad function. Different data types have a lot of analysis methods, and users often have different analysis requirements for different data. The current analysis platform or system cannot cover the analysis methods required by users, and at the same time, it cannot provide users with convenient analysis operations. Therefore, the efficiency of existing data analysis based on digital twin brain platforms needs to be improved.

[0004] There is currently no effective solution to the technical problem that the efficiency of data analysis based on the digital twin brain platform needs to be improved in existing technologies. Summary of the invention

[0005] In this embodiment, a data analysis method, device, electronic device and storage medium are provided to solve the problem that the data analysis efficiency based on the digital twin brain platform in the related art needs to be improved.

[0006] In a first aspect, a data analysis method is provided in this embodiment, which is applied to a digital twin platform, and the method includes:

[0007] Obtain a custom analysis function, and determine a custom analysis method corresponding to the custom analysis function according to a preset generation strategy, and add the custom analysis method to the data analysis module;

[0008] Acquire the analysis data sent by the user, and filter the target analysis method in the data analysis module according to the analysis data;

[0009] According to the target analysis method, generating a parameter input interface of the target analysis method;

[0010] The analysis data is input into the parameter input interface, and processed according to the target analysis method to obtain data analysis results.

[0011] In some of the embodiments, determining the custom analysis method corresponding to the custom analysis function according to a preset generation strategy includes:

[0012] Obtaining parameter information in the custom analysis function; the parameter information includes parameter information;

[0013] Determining target parameters in the parameter information according to a preset generation strategy;

[0014] The data type of the custom analysis object in the custom analysis method is determined according to the data type of the target parameter.

[0015] In some of the embodiments, the determining the custom analysis method corresponding to the custom analysis function further includes:

[0016] Determining whether the parameter information includes variable information;

[0017] If the parameter variable information includes the variable information, determining that the variable information is a variable of a custom analysis object in a custom analysis method;

[0018] The custom analysis method is determined according to a data type of the custom analysis object and a variable of the custom analysis object.

[0019] In some embodiments, the acquiring of analysis data sent by the user and screening of the target analysis method in the data analysis module according to the analysis data includes:

[0020] Acquire the data type of the analysis data;

[0021] Matching the data type of the analysis data with the data type of the custom analysis object, and screening the target data type in the data type of the custom analysis object;

[0022] The custom analysis method corresponding to the target data type is determined as the target analysis method.

[0023] In some of the embodiments, generating a parameter input interface of the target analysis method according to the target analysis method includes:

[0024] Obtaining multiple function information corresponding to the target analysis method;

[0025] According to the plurality of function information, matching a target parameter component in a preset parameter component library;

[0026] Mapping the plurality of function information to corresponding target parameter components to obtain a plurality of target parameter input information;

[0027] Integrate the plurality of target parameter input information to obtain the parameter input interface.

[0028] In some embodiments, the step of integrating the plurality of target parameter input information to obtain the parameter input interface includes:

[0029] Determine whether the function information has a default value;

[0030] When the function information has a default value, the default value is displayed on the parameter input interface;

[0031] When the function information does not have a default value, a data selection component is determined in a preset parameter component library according to the parameter type in the function information, and the data selection component is displayed on the parameter input interface.

[0032] In some embodiments, the method further comprises:

[0033] Screening out a first analysis method and a second analysis method according to the analysis data;

[0034] Respectively obtaining first parameter variable information in the first analysis method and second parameter variable information in the second analysis method;

[0035] Combining the first parameter information and the second parameter information according to the data type of the analysis data to obtain target parameter information;

[0036] The target analysis method is generated according to the target parameter information.

[0037] In a second aspect, a data analysis device is provided in this embodiment, the device comprising: an analysis method description module, an analysis method determination module, an analysis interface construction module and an analysis result acquisition module;

[0038] The analysis method description module is used to obtain a custom analysis function, and determine a custom analysis method corresponding to the custom analysis function according to a preset generation strategy, and add the custom analysis method to the data analysis module;

[0039] The analysis method determination module is used to obtain the analysis data sent by the user and select the target analysis method in the data analysis module according to the analysis data;

[0040] The analysis interface construction module is used to generate a parameter input interface of the target analysis method according to the target analysis method;

[0041] The analysis result acquisition module is used to input the analysis data into the parameter input interface, and process it according to the target analysis method to obtain the data analysis result.

[0042] In a third aspect, an electronic device is provided in this embodiment, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the data analysis method described in the first aspect when executing the computer program.

[0043] In a fourth aspect, in this embodiment, a storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the data analysis method described in the first aspect is implemented.

[0044] Compared with the related art, a data analysis method, device, electronic device and storage medium provided in this embodiment obtains a custom analysis method by matching the user's custom function with the analysis method generation strategy, and adds the method to the data analysis module, thereby realizing the convenience of user-defined analysis methods; when the user needs to analyze the data, the user's analysis data is obtained, and the custom analysis method in the data analysis module is screened according to the analysis data to obtain the target analysis method; the corresponding parameter input component is matched according to the target analysis method, thereby obtaining the parameter input interface; the analysis data sent by the user is input into the parameter input interface, and then the analysis data is processed according to the target analysis method to obtain the data analysis result. By automatically screening the analysis method and generating the corresponding parameter input interface, the data analysis efficiency of the digital twin brain platform is improved.

[0045] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0047] Figure 1 is a hardware structure block diagram of a terminal of the data analysis method of this embodiment;

[0048] Figure 2 is a flow chart of the data analysis method of an embodiment of the present application;

[0049] Figure 3 is a flow chart of another data analysis method of this specific embodiment;

[0050] Figure 4 is a schematic diagram of a display interface of analysis results in this specific embodiment;

[0051] Figure 5 is a schematic diagram of a further display interface of the analysis results in this specific embodiment;

[0052] Figure 6 It is a structural block diagram of the data analysis device of an embodiment of the present application. DETAILED DESCRIPTION

[0053] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.

[0054] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the general meaning understood by people with general skills in the technical field to which this application belongs. The words "one", "a", "the", "these" and the like in this application do not indicate a quantitative limitation, and they may be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" may mean: A exists alone, A and B exist at the same time, and B exists alone. Generally, the character " / " indicates that the objects associated with each other are in an "or" relationship. The terms "first", "second", "third", etc. in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0055] The method embodiment provided in this embodiment can be executed in a terminal, a computer or a similar computing device. For example, running on a terminal, Figure 1 FIG. 1 is a hardware structure diagram of a terminal of the data analysis method of this embodiment. Figure 1 As shown, the terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 and a memory 104 for storing data, wherein the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA. The above terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above terminal. Figure 1More or fewer components as shown, or with Figure 1 Different configurations shown.

[0056] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the data analysis method in the present embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0057] The transmission device 106 is used to receive or send data via a network. The above network includes a wireless network provided by the communication provider of the terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.

[0058] The digital twin brain analysis module refers to the module in the digital brain software that analyzes the data therein. The digital twin brain analysis module was initially static in general, that is, the analysis methods in the analysis module could not be updated in real time according to actual needs. Developers develop as many analysis methods as possible into the module, but this is often not enough. As various evaluation indicators for data analysis are proposed, developers often do not have time to update more analysis methods, so there is no way to meet the needs of users. At the same time, real-time updating of analysis methods also greatly increases the workload of developers. In the subsequent platform design, the developer provides a data export interface in the data analysis platform, so that users can export relevant data, so that users can analyze the data by themselves. However, this method relies too much on the user's coding ability, which greatly increases the user's usage threshold; at the same time, the user's own analysis data cannot be well displayed visually through the GUI (Graphical User Interface), and it is not conducive to users sharing their own analysis processes through the platform. Therefore, a dynamic analysis module method that can reduce the user's learning threshold, fit the platform system, use the overall visual interface, and is easy to share is very important.

[0059] In the existing technology, TraitsUI is a user interface library based on the Traits library, which can quickly generate a specific interface from code that conforms to a specific format, but it has certain limitations. The Virtual Brain (TVB) is a brain activity simulation platform that integrates a data analysis module, but the methods are fixed and can only be updated with the platform version. Therefore, the existing technology lacks an analysis module that is easy for users to use and has strong scalability.

[0060] In this embodiment, a data analysis method based on a digital twin platform is provided, and the data analysis method is applied to: an analysis method description module, a dynamic analysis interface construction module, and a data analysis module. Among them, the analysis method description module has certain format restrictions, so that developers and users can easily edit personalized analysis methods; the dynamic analysis interface construction module is a module designed to construct a dynamic analysis interface, which is used to read the code of the analysis method, and automatically analyze it into different components, and reorganize and generate a dynamic interface to achieve GUI construction. The above module supports developers and users to automatically generate a GUI interface of the analysis method in the analysis module after writing the analysis method in a specific format; the interface of the generated analysis module can execute the analysis process, and automatically organize the analysis results into data structure types supported by the platform, and can perform corresponding visualization, save the analysis results to the database and other operations. At the same time, the analysis method of the developer or user can fit the platform well, share it with other users, and help other users with similar needs to create dynamic analysis modules.

[0061] Furthermore, the dynamic analysis interface building module converts the analysis method code written by the developer or user into a user-friendly graphical user interface (GUI) in real time. Through this interface, the user can easily and quickly configure the analysis parameters and perform the analysis.

[0062] To ensure the dynamics and flexibility of interface construction, this module uses advanced metaprogramming and reflection technology to parse the analysis method code line by line, extract parameter information and map it to the corresponding GUI components.

[0063] Figure 2 is a flow chart of the data analysis method of an embodiment of the present application, such as Figure 2 As shown in the figure, the data analysis method is applied to the analysis method description module and the dynamic analysis interface construction module of the digital twin platform. The process includes the following steps:

[0064] Step S210, obtaining a custom analysis function, and determining a custom analysis method corresponding to the custom analysis function according to a preset generation strategy, and adding the custom analysis method to the data analysis module.

[0065] Among them, after the user writes the analysis method in the form of a function in the digital twin platform, the analysis method description module obtains the custom analysis function sent by the user, and determines the custom analysis method corresponding to the custom analysis function according to the preset generation strategy and the parameter information and variable information in the custom analysis function, and then adds the custom analysis method to the data analysis module. Furthermore, the parameter information and variable information include: parameter name, parameter type, variable name, variable type, initial value and default value, etc. The preset generation strategy includes determining the parameter input according to the analyzed object of the custom analysis function, and determining the data type of the custom analysis method according to the parameter type and variable type of the custom analysis function. After obtaining the custom analysis function, the return value of the custom analysis function is set as the analysis result of the corresponding custom analysis method. Exemplarily, the custom analysis function also includes open source analysis functions on the Internet, and analysis functions entered by developers.

[0066] Step S220, obtaining the analysis data sent by the user, and screening the target analysis method in the data analysis module according to the analysis data.

[0067] Among them, when the user needs to perform data analysis, the user sends the analysis data that needs to be analyzed to the data analysis module in the digital twin platform. The data analysis module obtains the analysis data sent by the user, and filters the target analysis method in the data analysis module according to the analysis data. Furthermore, the target analysis method is determined from a variety of custom analysis methods in the data analysis module. The target analysis method can be screened according to the data type of the analysis data, the purpose of data analysis, the complexity of the data, the size of the data, and the availability of the data. The target analysis method obtained by screening can be one or more, and the target analysis methods obtained by screening are all provided to the user. The user selects a target analysis method according to his or her needs and performs data analysis according to the target analysis method.

[0068] Step S230, generating a parameter input interface of the target analysis method according to the target analysis method.

[0069] Among them, after confirming the target analysis method required by the user, the dynamic analysis interface construction module reads the analysis function corresponding to the target analysis method, and extracts the information of each parameter in the analysis function. Exemplarily, the parameter information includes: parameter name, parameter type and parameter default value. Thereafter, different parameter information is mapped to parameter components, and components of the visual interface are generated according to the corresponding different parameter components, thereby obtaining the parameter input interface of the target analysis method. Exemplarily, when the parameters in the analysis function have default values, the parameter components include input boxes for parameter names and parameter information, wherein the input in the input box is the default value of the parameter. When the parameter does not have a default value, the parameter component preset in the digital twin platform is determined according to the parameter information, and the parameter component replaces the input of the parameter information.

[0070] Step S240, input analysis data into the parameter input interface, and process it according to the target analysis method to obtain data analysis results.

[0071] Among them, after the parameter input interface corresponding to the target analysis method is generated according to the dynamic analysis interface construction module, the analysis data input by the user is input into the multiple parameter components in the parameter input interface according to the type, attribute and other information of the analysis data input by the user, and the data analysis module executes the target analysis method on the analysis data. After the execution is completed, the target analysis method will return the data analysis result, and the data analysis module automatically reads the data analysis result. Furthermore, the data type of the data analysis result is determined, and the corresponding analysis result display method is selected according to different data types.

[0072] Through the above steps, the user's custom function is matched with the analysis method generation strategy to obtain a custom analysis method, and the method is added to the data analysis module, thereby realizing the convenience of user-defined analysis methods; when the user needs to analyze the data, the user's analysis data is obtained, and the custom analysis method in the data analysis module is screened according to the analysis data to obtain the target analysis method; the corresponding parameter input component is matched according to the target analysis method to obtain the parameter input interface; the analysis data sent by the user is input into the parameter input interface, and the analysis data is processed according to the target analysis method to obtain the data analysis results. By automatically screening the analysis method and generating the corresponding parameter input interface, the data analysis efficiency of the digital twin brain platform is improved.

[0073] In some of the embodiments, in step S210, a custom analysis method corresponding to the custom analysis function is obtained according to a preset generation strategy, including steps S211 to S212.

[0074] Step S211, obtaining parameter information in the user-defined analysis function; the parameter information includes parameter information. According to a preset generation strategy, a target parameter is determined in the parameter information.

[0075] After the analysis method description module obtains the custom analysis function sent by the user, it determines the parameter information in the custom analysis function, and determines the strategy of the analyzed object according to the preset generation strategy, and uses the analyzed object as the target parameter in the custom analysis method. Exemplarily, the target parameter represents the first parameter input. The type of the target parameter is determined as the data type of the analyzed object.

[0076] Step S212, determining the data type of the custom analysis object in the custom analysis method according to the data type of the target parameter.

[0077] The data type of the target parameter is determined as the data type of the analysis object in the custom analysis method, and the target parameter is further determined as the object to be analyzed.

[0078] Through the above steps, the target parameter is determined through the parameter information in the custom analysis function and the preset generation strategy; and the data type of the target parameter is determined as the data type of the custom analysis object in the custom analysis method, thereby obtaining the custom analysis method corresponding to the custom analysis function.

[0079] In some of the embodiments, the step S210 of determining the custom analysis method corresponding to the custom analysis function further includes steps S213 to S214.

[0080] Step S214, determining whether the parameter variable information includes variable information; if the parameter variable information includes variable information, determining that the variable information is a variable of a custom analysis object in a custom analysis method.

[0081] The analysis method description module obtains the corresponding parameter information in the custom analysis function and determines whether the parameter information includes variable information. When the parameter information includes variable information, it is determined that the variable included in the variable information is the variable of the custom analysis object in the custom analysis method; at the same time, there is no need to provide an initial value for the variable, and the value of the variable can be determined by calling other data in the digital twin platform.

[0082] Step S215 , determining a custom analysis method according to the data type of the custom analysis object and the variables of the custom analysis object.

[0083] The analysis method description module determines the custom analysis method based on the data type of the custom analysis object and the variables of the custom analysis object. Furthermore, if the custom analysis method needs to import other files of the digital twin platform, the default value of the parameter is set as a string in the custom function analysis method, and then the function and interface for importing local data are generated based on the default value of the string.

[0084] Through the above steps, by determining the variable information in the parameter information, and then combining the data type and variables of the custom analysis object, the custom analysis method is determined, so that after the user enters the custom analysis function, the custom analysis method is automatically generated, thereby improving the portability of the user adding data analysis methods.

[0085] In some embodiments, obtaining the analysis data sent by the user in step S220 and screening the target analysis method in the data analysis module according to the analysis data includes the following steps:

[0086] Obtain the data type of the analysis data; match the data type of the analysis data with the data type of the custom analysis object, and filter the target data type in the data type of the custom analysis object. Determine the custom analysis method corresponding to the target data type as the target analysis method.

[0087] Among them, after the data analysis module obtains the analysis data to be analyzed by the user, it obtains the data type in the analysis data, and matches the data type of the analysis data with the data type in the custom analysis method. According to the matching result, the target data type consistent with the data type of the analysis data is determined, and then the target analysis method in the custom analysis method is obtained, so that the user can analyze the analysis data according to the target analysis method, which is conducive to improving the accuracy of data analysis.

[0088] In some of the embodiments, in step S230, a parameter input interface of the target analysis method is generated according to the target analysis method, including steps S231 to S232.

[0089] Step S231, obtaining multiple function information corresponding to the target analysis method; matching the target parameter component in a preset parameter component library according to the multiple function information.

[0090] Among them, after obtaining the user-input custom analysis method according to the analysis method description module and determining the target analysis method to be used by the user according to the data analysis module, the dynamic analysis interface construction module obtains the target analysis method and the function information in the target analysis method, and matches the target parameter component in the parameter component library preset in the digital twin platform according to the function information, and uses the target parameter component as the component of the parameter input interface. Among them, the function information includes the parameter name, parameter type and parameter default value.

[0091] Step S232, mapping multiple function information to corresponding target parameter components to obtain multiple target parameter input information; integrating the multiple target parameter input information to obtain a parameter input interface.

[0092] After the target parameter component is determined, the function information is mapped to the target parameter component, thereby obtaining the target parameter input information. Furthermore, when the parameter has a default value, the target parameter component includes a display of the parameter name and an input box for the parameter specific information.

[0093] Through the above steps, the function information corresponding to the target analysis method is matched with the parameter component to obtain the target parameter input information, and multiple target parameter input information is integrated to obtain the parameter input interface. The multiple target parameter components of the parameter input interface are determined by the corresponding function information in the target analysis method, which is conducive to automatically generating the corresponding GUI interface according to the target analysis method, thereby improving the convenience of users in data analysis.

[0094] In some of the embodiments, in step S232, multiple target parameter input information is integrated to obtain a parameter input interface, including: determining whether the function information has a default value; when the function information has a default value, displaying the default value on the parameter input interface; when the function information does not have a default value, determining a data selection component in a preset parameter component library based on the parameter type in the function information, and displaying the data selection component on the parameter input interface.

[0095] Among them, when the dynamic analysis interface construction module integrates the target parameter information, the function information is judged, and then the content displayed in the parameter input interface is determined, which is conducive to improving the accuracy and efficiency of generating the GUI interface, and further improving the convenience of users in data analysis.

[0096] In some embodiments, the data analysis method further comprises:

[0097] Filter out a first analysis method and a second analysis method according to the analysis data; respectively obtain first parameter variable information in the first analysis method and second parameter variable information in the second analysis method; combine the first parameter variable information and the second parameter variable information according to the data type of the analysis data to obtain target parameter variable information; generate a target analysis method according to the target parameter variable information.

[0098] Among them, when the data analysis module screens out multiple analysis methods in the custom analysis method based on the analysis data input by the user. However, each analysis method cannot fully analyze the analysis data input by the user. At this time, it is necessary to interactively analyze the screened first analysis method and the second analysis method. Specifically, according to the first parameter information in the first analysis method and the second parameter information in the second analysis method, the target parameter information is combined; then, according to the preset generation strategy, the target analysis method is generated for the user to perform data analysis. By using the method of interactively calling multiple analysis methods, the scope of application of the data analysis method is further improved, and at the same time, the convenience and efficiency of the user's data analysis are improved.

[0099] The present embodiment is described and illustrated by means of specific examples below.

[0100] This embodiment also provides a data analysis method. Figure 3 is a flow chart of another data analysis method of this specific embodiment, such as Figure 3 As shown, the process includes the following steps:

[0101] Step S301, editing a personalized analysis method.

[0102] Specifically, after the user enters the digital twin platform, the user writes the analysis method in the form of a function in the "Custom" script (i.e., the user personalized analysis method script file) of the platform code file, wherein the parameter variable in the input function needs to include the name and type. Exemplarily, the function input by the user here is the custom analysis function in the aforementioned embodiment. If the function contains parameters, the user needs to provide an initial value, which will be reflected in the form of a default value in the subsequent generated interface. Among them, it is determined that the input of the first parameter of the user is the object to be analyzed, that is, the target parameter in the aforementioned embodiment, so it is necessary to clarify the type of the first parameter as the data type of the object to be analyzed. If the analyzed function contains one or more variables, it is not necessary to provide an initial value. If the initial value is not provided, it will indicate that the variable is the data of the object to be analyzed in this method or needs to be retrieved as other data in the platform to be completed in collaboration, and an import button and function will be provided in the subsequent generated interface. After completing the function configuration, a personalized analysis method is generated, and the personalized analysis method here is the custom analysis method in the aforementioned embodiment.

[0103] For example, if the analysis method needs to import external files from the platform, you can set the default value of this parameter in the function to the string "Path", and then add the function and interface of importing local data in the subsequent generated interface. After completing the code of the analysis method, you need to set the return value of the function, which is the analysis result. After that, you can expose the interface corresponding to the function in the "init" script file of the same level menu.

[0104] Step S302, constructing an analysis interface.

[0105] Specifically, first, generate an "analysis method selection" component; further specifically, read all added analysis methods from the corresponding interface in the "init" script file, add the function name of each analysis method to the drop-down selection box, and automatically filter the analysis methods supported by the analyzed data by comparing the analyzed data type with the receiving type of the first parameter of the analysis method. The analysis method filtered here is the target analysis method in the aforementioned embodiment, thereby obtaining a visual interface component that allows users to select a specific analysis method.

[0106] Afterwards, the analysis function is regularized; more specifically, the function corresponding to each analysis method is regularized, that is, each parameter information in the function is extracted, the name, type and default value of the parameter are recorded, and each parameter information is mapped to an independent "parameter setting" component. If the parameter has a default value, the component will contain a display of the parameter name and an input box for the specific parameter information, where the default value of the parameter information input box is the default value of the parameter in the analysis method function; if the parameter does not have a default value, the component for selecting data in the platform is used to replace the parameter information input; if the parameter type is a string and the default value of the parameter is "Path", the component for importing external data is used to replace the parameter information input. In this way, the name, type, user-input or selected value and file information of each parameter corresponding to the input of the analysis method can be obtained.

[0107] Furthermore, the construction process of the dynamic analysis interface involves the following steps:

[0108] 1) The code parsing engine is responsible for parsing the analysis functions written in the standard format in the "Custom" script, including identifying function signatures, parameter lists and types, default values, etc. The parsing work will ensure accurate mapping of the interface and verify the validity of the parameters.

[0109] 2) The GUI component library integrates various components, such as text boxes, sliders, drop-down menus, file selectors, etc., to present different data types and input requirements of parameters. The component library provides the basic elements required for customized interfaces.

[0110] 3) The parameter mapping logic is responsible for automatically mapping the parameter attributes parsed from the analysis method, such as name, type, and default value, to the appropriate GUI components. Furthermore, input boxes with pre-filled default values ​​are generated for parameters with default values. A data selection tool is provided for parameters without initial default values, allowing users to select existing data from the digital twin brain platform. A file selector is generated for parameters that need to import external files, through which users can upload local files.

[0111] 4) User interaction feedback: The generated GUI interface can implement an instant feedback mechanism, including: parameter type verification to ensure that the user input conforms to the expected data format; and provide input prompts and error messages when necessary to guide the user to complete the correct configuration.

[0112] Step S303, executing the analysis function.

[0113] Specifically, according to step S302, the analysis method selection interface and the analysis function parameter input interface are automatically generated. After the user completes the analysis method selection and parameter information input (or selection), each parameter of the function is input. Afterwards, the function can be executed by clicking the execution button (Run Analysis). The analysis method will return the analysis result, and the returned analysis result will be automatically read and the next step will be performed.

[0114] Afterwards, the analysis results are displayed; that is, after obtaining the analysis results, the data type is automatically determined. If it is a string or scalar, the result is displayed directly. If it is a matrix result, a simple matrix result is displayed, and the matrix visualization interface of the platform is provided. If it is a time series result, a simple time series result is displayed, and the time series visualization interface of the platform is provided.

[0115] After the analysis method is executed, the user can save the analysis results to other modules and bind them with other data. Later, the user can enter the data in the corresponding module from the platform to view the analysis results and conduct further analysis on the analysis results.

[0116] Furthermore, after the user completes the parameter setting, this data analysis module will provide a clear "Execute Analysis" button. After clicking the button, the system automatically collects all the parameter information configured by the user in the interface and passes it to the analysis function executed by the backend, that is, the function corresponding to the target analysis method in the aforementioned embodiment. A real-time execution progress bar or loading animation will provide feedback to the user, indicating that the analysis is in progress. After completion, the system will capture the analysis result data and select the appropriate processing and display method according to different data types.

[0117] Afterwards, select appropriate visualization tools to display the analysis results based on the result data type. Display methods include but are not limited to: direct display of simple text or scalar values; grid view of matrix or table data, supporting basic sorting and filtering functions; chart display of time series data, including interactive functions such as zooming and dragging; and dedicated viewers for complex data structures such as images and 3D models.

[0118] When the data analysis is completed, the user can choose to save the results to a personal space or a public database, and tag the results for future retrieval and related analysis. The platform will provide a management interface to support the organization, sharing and further processing of the saved results. Any user only needs to provide the code of a simple analysis method to automatically form a suitable and easy-to-use analysis interface for this analysis method. Such an interface greatly reduces the learning cost for new users and is therefore more conducive to the sharing of analysis methods. At the same time, users can transmit the analysis method code to other users point-to-point; if the user agrees, this analysis code can also be transmitted to a remote server for different users to download, and the interface of the analysis process can be automatically created locally on the user's computer.

[0119] Furthermore, the code shared online is displayed on the "Community" page of the module. To ensure the ease of use and accessibility of the analysis method, the page provides the following functions to promote communication and collaboration among users:

[0120] 1. Method saving and version control: Allows users to save specific versions after creating or modifying analysis methods. Each version has a unique identifier, which can be traced back to the previous state. In this way, users can freely try different analysis method configurations without worrying about losing the original work.

[0121] 2. Method metadata definition: When creating an analysis method, users can add metadata to it, including but not limited to author information, creation date, method description, applicable data range, use cases, and keyword tags. The improvement of metadata helps other users better understand and discover the analysis method.

[0122] 3. Method Sharing Level Setting: The creator of the analysis method can set the sharing level, such as private, group sharing, or public availability. Private methods are visible only to the author, group sharing methods allow specific user groups to use them, and public methods can be accessed and used by any platform user.

[0123] 4. Method discovery mechanism: The platform can provide a search function that allows users to search for available analysis methods based on multiple criteria such as keywords, method type, frequency of use, and ratings. In addition, the method browsing interface can display recommended methods and highly rated methods to facilitate users to discover practical tools.

[0124] 5. User feedback and rating system: For each shared method, users can leave their own ratings and feedback. This includes evaluations on execution efficiency, result accuracy, and ease of use. Such a feedback mechanism can help authors improve their methods and provide references for other users to choose appropriate methods.

[0125] 6. Method discussion and collaborative modification: Provide a discussion area for each analysis method, where users can exchange usage experience, raise questions and suggestions. Users can collaborate based on these discussions to jointly improve the analysis method.

[0126] 7. Method citation and attribution authentication: When users use shared analysis methods and generate valuable results, they can mark the specific methods used through the attribution authentication mechanism, which ensures the contribution of the original author while promoting the exchange and improvement of data analysis methods.

[0127] In one specific embodiment, a method for analyzing data weighted values ​​is provided. The steps of the method are as follows:

[0128] Step 1: Create a simple user-defined analysis method "array_sum" to calculate the weighted sum of two matrices, with a default weight of 0.5. Type the corresponding function and its implementation method in the analysis method description module. Specifically, define the data types accepted by the four parameters "matrix 1", "matrix 2", "weight 1", and "weight 2". And return the calculation result.

[0129] Furthermore, the code of the above method is as follows.

[0130] def array_sum(

[0131] array_1: np.ndarray, / / The first input matrix

[0132] array_2: np.ndarray, / / The second input matrix

[0133] weight_1:float = 0.5, / / The weight of the first matrix, the default value is 0.5

[0134] weight_2:float = 0.5, / / The weight of the second matrix, the default value is 0.5 )

[0136] result = array_1 weight_1+ array_2 weight_2

[0137] return result / / Output matrix, which is the weighted sum of the two input matrices

[0138] Step 2: Expose the analysis method name "array_sum" in the init script.

[0139] Step 3: Start the digital twin platform, open the data analysis module, click the drop-down box and select a data analysis method; the selectable data analysis methods here include: correlation coefficient method - "pearson_correlation", "self_pearson_correlation", time covariance - "temporal_covariance" and the above-mentioned added analysis method "array_sum", etc., which are not specifically limited here.

[0140] Step three, select this "array_sum" analysis method, automatically get the parameter input interface of this analysis method, select the matrix to be executed from the platform database, and fill in the calculated weight. Specifically, in this parameter input interface: "Add Data Analysis" button, click to add a new analysis block; "Compare with others" button, click to perform joint analysis with other data; display the attributes and attribute values ​​of the analyzed data; analysis block, including: a. "RunAnalysis" button, click to execute the analysis; b. "Analysis method selection drop-down box" click to select the appropriate analysis method, the example here is the selected "array_sum" method; c. Parameter attributes of the analysis method and its value input interface. Among them, array_1&array_2 parameters are to click the load button to select data from the platform, and weight_1&weight_2 are the input set values.

[0141] Step 4, execute the analysis and obtain the analysis results; specifically, through the user-embedded analysis method, obtain the user-operable interface aligned data and perform a visualization method to display the matrix results. Figure 4 Schematic diagram of the display interface of the analysis results in this specific embodiment. Figure 4 As shown in the figure, the horizontal and vertical coordinates (0-200) of the display interface of the analysis results represent the brain region numbers in the digital twin brain platform, and the values ​​on the right represent the weight relationships between brain regions.

[0142] Step 5: Support for further advanced display of analysis results. Figure 5 is a schematic diagram of a further display interface of the analysis results in this specific embodiment. Figure 5 As shown, the connection of the points on the circle represents the weight of the connection relationship between the points in the two matrices.

[0143] Step six, save the analysis results and bind them with the data from other modules, connecting the analysis result storage to the platform's visual interface.

[0144] Through the data analysis method in the above embodiment, a convenient module for implanting personalized analysis methods is provided to users, which is difficult to achieve with traditional pure visual interface platforms. Through the added method, a user-friendly visual interface is automatically generated to lower the threshold for users to use. Through this dynamic analysis method module, the analysis results can be automatically adapted to the internal data structure of the platform and well displayed in the platform. It supports storing and binding the analysis results in the platform for easy organization and subsequent use, which is difficult to achieve with analysis tools in the form of libraries. It supports fast and convenient sharing of analysis methods. Since the methods are directly integrated into the platform module, they can be shared with other users very conveniently.

[0145] It should be noted that the steps shown in the above process or the flowchart in the accompanying drawings can be executed in a computer system such as a group of computer executable instructions.

[0146] In this embodiment, a data analysis device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. The terms "module", "unit", "subunit", etc. used below can implement a combination of software and / or hardware of predetermined functions. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0147] Figure 6 is a structural block diagram of a data analysis device according to an embodiment of the present application, such as Figure 6 As shown, the device includes: an analysis method description module 10, an analysis method determination module 20, an analysis interface construction module 30 and an analysis result acquisition module 40.

[0148] The analysis method description module 10 is used to obtain a custom analysis function, and according to a preset generation strategy, obtain a custom analysis method corresponding to the custom analysis function, and add the custom analysis method to the data analysis module.

[0149] The analysis method determination module 20 is used to obtain the analysis data sent by the user and filter the target analysis method in the data analysis module according to the analysis data.

[0150] The analysis interface construction module 30 is used to generate a parameter input interface of the target analysis method according to the target analysis method.

[0151] The analysis result acquisition module 40 is used to input analysis data into the parameter input interface and process it according to the target analysis method to obtain data analysis results.

[0152] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0153] In this embodiment, an electronic device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0154] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0155] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0156] S1, obtain a custom analysis function, and according to a preset generation strategy, obtain a custom analysis method corresponding to the custom analysis function, and add the custom analysis method to the data analysis module.

[0157] S2, obtaining the analysis data sent by the user, and screening the target analysis method in the data analysis module according to the analysis data.

[0158] S3, generating a parameter input interface of the target analysis method according to the target analysis method.

[0159] S4, input the analysis data into the parameter input interface, and process it according to the target analysis method to obtain the data analysis results.

[0160] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and will not be repeated in this embodiment.

[0161] In addition, in combination with the data analysis method provided in the above embodiments, a storage medium may be provided in this embodiment to implement the data analysis method. The storage medium stores a computer program, and when the computer program is executed by a processor, any one of the data analysis methods in the above embodiments is implemented.

[0162] It should be understood that the specific embodiments described herein are only used to explain the application, rather than to limit it. Based on the embodiments provided in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of this application.

[0163] Obviously, the drawings are only some examples or embodiments of the present application. For ordinary technicians in the field, the present application can also be applied to other similar situations based on these drawings without creative work. In addition, it is understandable that although the work done in this development process may be complicated and lengthy, for ordinary technicians in the field, certain changes in design, manufacturing or production based on the technical content disclosed in this application are only conventional technical means and should not be regarded as insufficient content disclosed in this application.

[0164] The term "embodiment" in this application refers to a specific feature, structure or characteristic described in conjunction with the embodiment that can be included in at least one embodiment of the present application. The appearance of this phrase in various locations in the specification does not necessarily mean the same embodiment, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. It is clearly or implicitly understood by those of ordinary skill in the art that the embodiments described in this application can be combined with other embodiments without conflict.

[0165] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of patent protection. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the attached claims.

Claims

1. A data analysis method, applied to a digital twin platform, characterized in that: The method comprises: Obtain a custom analysis function, and determine a custom analysis method corresponding to the custom analysis function according to a preset generation strategy, and add the custom analysis method to the data analysis module; Acquire the analysis data sent by the user, and filter the target analysis method in the data analysis module according to the analysis data; According to the target analysis method, generating a parameter input interface of the target analysis method; Input the analysis data into the parameter input interface, and process it according to the target analysis method to obtain data analysis results; Determining the custom analysis method corresponding to the custom analysis function according to the preset generation strategy includes: obtaining parameter information in the custom analysis function; the parameter information includes parameter information; determining a target parameter in the parameter information according to the preset generation strategy; determining the data type of the custom analysis object in the custom analysis method according to the data type of the target parameter; According to the target analysis method, a parameter input interface of the target analysis method is generated, including: determining a plurality of target parameter components of the parameter input interface through corresponding function information in the target analysis method.

2. The data analysis method according to claim 1, characterized in that: The determining of the custom analysis method corresponding to the custom analysis function further includes: Determining whether the parameter information includes variable information; If the parameter variable information includes the variable information, determining that the variable information is a variable of a custom analysis object in a custom analysis method; The custom analysis method is determined according to a data type of the custom analysis object and a variable of the custom analysis object.

3. The data analysis method according to claim 1, characterized in that: The acquiring of the analysis data sent by the user and screening the target analysis method in the data analysis module according to the analysis data includes: Acquire the data type of the analysis data; Matching the data type of the analysis data with the data type of the custom analysis object, and screening the target data type in the data type of the custom analysis object; The custom analysis method corresponding to the target data type is determined as the target analysis method.

4. The data analysis method according to claim 1, characterized in that: The step of generating a parameter input interface of the target analysis method according to the target analysis method comprises: Obtaining multiple function information corresponding to the target analysis method; According to the plurality of function information, matching a target parameter component in a preset parameter component library; Mapping the plurality of function information to corresponding target parameter components to obtain a plurality of target parameter input information; Integrate the plurality of target parameter input information to obtain the parameter input interface.

5. The data analysis method according to claim 4, characterized in that: The step of integrating the plurality of target parameter input information to obtain the parameter input interface includes: Determine whether the function information has a default value; When the function information has a default value, the default value is displayed on the parameter input interface; When the function information does not have a default value, a data selection component is determined in a preset parameter component library according to the parameter type in the function information, and the data selection component is displayed on the parameter input interface.

6. The data analysis method according to claim 1, characterized in that: The method further comprises: Screening out a first analysis method and a second analysis method according to the analysis data; Respectively obtaining first parameter variable information in the first analysis method and second parameter variable information in the second analysis method; Combining the first parameter information and the second parameter information according to the data type of the analysis data to obtain target parameter information; The target analysis method is generated according to the target parameter information.

7. A data analysis device, characterized in that: The device comprises: an analysis method description module, an analysis method determination module, an analysis interface construction module and an analysis result acquisition module; The analysis method description module is used to obtain a custom analysis function, and determine the custom analysis method corresponding to the custom analysis function according to a preset generation strategy, and add the custom analysis method to the data analysis module; the determination of the custom analysis method corresponding to the custom analysis function according to the preset generation strategy includes: obtaining parameter information in the custom analysis function; the parameter information includes parameter information; determining a target parameter in the parameter information according to the preset generation strategy; determining the data type of the custom analysis object in the custom analysis method according to the data type of the target parameter; The analysis method determination module is used to obtain the analysis data sent by the user and select the target analysis method in the data analysis module according to the analysis data; The analysis interface construction module is used to generate a parameter input interface of the target analysis method according to the target analysis method; generating a parameter input interface of the target analysis method according to the target analysis method includes: determining a plurality of target parameter components of the parameter input interface through corresponding function information in the target analysis method; The analysis result acquisition module is used to input the analysis data into the parameter input interface, and process it according to the target analysis method to obtain the data analysis result.

8. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the data analysis method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the data analysis method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Information computing system for realizing big data analysis and construction method

    CN114780074A

  • Data analysis component generation method and device and computer readable storage medium

    CN114968246A

  • Log processing method and device, computer equipment and storage medium

    CN114968960A

  • Multi-source heterogeneous data fusion method and system capable of being used for digital twinning

    CN117056867A

  • Data analysis method and device, electronic equipment and storage medium

    CN117172237A