Electronic device and operating method thereof
By inserting fingerprints into the electronic device and segmenting the data, selecting and obfuscating the segmented data and sending it to the server, the problem of string data security and privacy is solved, the data recovery process of the server is simplified, and effective protection of data security and privacy is achieved.
Patent Information
- Application Number
- CN202380022577.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-03-16
- Filing Date
- 2023-02-01
- Publication Date
- 2024-09-27
AI Technical Summary
When the existing technology collects relatively long string data, it is difficult to ensure the security of the data while maintaining a differentiated level of privacy similar to the existing technology, and the server becomes more complex when recovering and verifying the data.
By inserting fingerprints into the electronic device and dividing the data into multiple segments, one of the segments is selected and confused according to a preset probability and sent to the server, and the server recovers the original data by receiving and splicing the segmented data with high frequency.
It ensures data security when collecting long string data, while meeting differentiated privacy levels, and simplifies the data recovery and verification process of the server.
Smart Images

Figure CN118715519A
Abstract
Description
Technical Field
[0001] The present disclosure relates to an electronic device and an operating method thereof. More particularly, the present disclosure relates to an electronic device that collects character string data that guarantees user privacy and sends the character string data to a server and an operating method thereof. Background Art
[0002] Artificial intelligence (AI) systems are computer systems that achieve human-level intelligence, and include machine learning (deep learning) and elemental technologies that use machine learning. Machine learning is an algorithmic technology that can classify and learn the characteristics of input data by itself. Elemental technology is a technology that uses machine learning algorithms (such as deep learning) and consists of technical fields such as language understanding, visual understanding, reasoning / prediction, knowledge expression, and operation control.
[0003] Language understanding is a technology for identifying and applying / processing human language or text, and includes natural language processing, machine translation, dialogue systems, answering inquiries, and speech recognition / synthesis. Various methods for collecting and managing various data for language understanding have been proposed. For example, when a user enters a word on a smart phone, existing technologies analyze the input words, recommend words that the user wants to enter, or correct spelling errors. In order to implement this technology, various string data can be collected by various methods (social network service (SNS) server, multiple user input words, portal keywords, etc.). In this case, the various string data collected may include various string data, such as keywords entered by the user into a search engine, historical information about websites visited by the user, and text messages.
[0004] The importance of security may vary depending on the type of various data collected. For example, text message data including personal information (such as the user's resident registration number and account number) may require relatively high security compared to keyword data that a user enters into a search engine. Therefore, in order to maintain security, the user terminal may insert noise into the data collected by the user terminal to confuse it and then send it to the server. However, as the length of the collected string data increases, the obfuscation and encoding process performed by the user terminal and the recovery and verification process performed by the server may become complicated.
[0005] The above information is presented as background information only to assist in understanding the present disclosure. It is not determined or asserted that any of the above may be used as prior art with respect to the present disclosure. Summary of the invention
[0006] Technical issues
[0007] Various aspects of the present disclosure are to at least address the above-mentioned problems and / or disadvantages, and to at least provide the advantages described below. Therefore, one aspect of the present disclosure is to provide an electronic device and an operating method thereof, which can ensure the security of statistical data of string data even when collecting relatively long string data, while satisfying a differentiated privacy level similar to that of the prior art.
[0008] Another aspect of the present disclosure is to provide a server capable of restoring and effectively verifying relatively long character string data collected from an electronic device, and an operating method thereof.
[0009] Additional aspects will be set forth in part in the description which follows and, in part, will be apparent from the description, or may be learned by practice of the presented embodiments.
[0010] Technical Solution
[0011] According to one aspect of the present disclosure, an electronic device is provided. The electronic device includes a communication circuit and at least one processor functionally connected to the communication circuit. The at least one processor can be configured to obtain data to be sent to a server, insert a fingerprint into the data, divide the data with the fingerprint inserted into a first size to generate a plurality of segmented data, so that data of a second size is copied between adjacent segmented data in the plurality of segmented data, select a segmented data from the plurality of segmented data according to a preset per-position selection probability for the plurality of segmented data, and send a report generated by obfuscating the selected one segmented data to the server.
[0012] According to another aspect of the present disclosure, a server is provided. The server includes a communication circuit and at least one processor functionally connected to the communication circuit. The at least one processor can be configured to receive a plurality of segmented data to which an obfuscation algorithm is applied from an electronic device through the communication circuit, select segmented data having a frequency exceeding a predetermined value, the frequency being estimated for each segmented data, restore candidate data by splicing the selected segmented data based on duplicate data between the selected segmented data, and obtain the restored candidate data as final data based on a data portion and a fingerprint portion included in the restored candidate data.
[0013] According to another aspect of the present disclosure, a method for operating an electronic device is provided. The method includes: acquiring data to be sent to a server, inserting a fingerprint into the data, segmenting the fingerprint-inserted data into a first size to generate a plurality of segmented data, so that data of a second size is copied between adjacent segmented data in the plurality of segmented data, selecting a segmented data from the plurality of segmented data according to a preset per-position selection probability for the plurality of segmented data, and sending a report generated by obfuscating the selected one segmented data to the server.
[0014] According to another aspect of the present disclosure, a method for operating a server is provided. The method includes: receiving a plurality of segmented data to which an obfuscation algorithm is applied from an electronic device, selecting segmented data having a frequency exceeding a predetermined value, the frequency being estimated for each segmented data, restoring candidate data by splicing the selected segmented data based on duplicate data between the selected segmented data, and acquiring the restored candidate data as final data based on a data portion and a fingerprint portion included in the restored candidate data.
[0015] Beneficial effects
[0016] According to various embodiments of the present disclosure, an electronic device and an operating method thereof can ensure the security of statistical data of character string data even when relatively long character string data is collected while satisfying a differentiated privacy level similar to that of the prior art.
[0017] According to various embodiments of the present disclosure, a server and an operating method thereof can recover and effectively verify relatively long character string data collected from an electronic device.
[0018] Other aspects, advantages, and salient features of the present disclosure will become apparent to those skilled in the art from the following detailed description of various embodiments of the present disclosure in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The above and other aspects, features and advantages of some embodiments of the present disclosure will become more apparent from the following description in conjunction with the accompanying drawings, in which:
[0020] Figure 1 A schematic diagram showing an electronic device in a network environment according to an embodiment of the present disclosure;
[0021] Figure 2 A block diagram showing an electronic device according to an embodiment of the present disclosure;
[0022] Figure 3 A block diagram showing a server according to an embodiment of the present disclosure;
[0023] Figure 4 A schematic diagram illustrating the operation of an electronic device according to an embodiment of the present disclosure;
[0024] Figure 5 A schematic diagram illustrating the operation of an electronic device according to an embodiment of the present disclosure;
[0025] Figure 6 A schematic diagram illustrating the operation of a server according to an embodiment of the present disclosure;
[0026] Figure 7 A schematic diagram illustrating the operation of a server according to an embodiment of the present disclosure;
[0027] Figure 8 A schematic diagram showing the domain size of each position according to an embodiment of the present disclosure; and
[0028] Fig. 9 It is a schematic diagram showing local differential privacy report data reported by an electronic device to a server according to an embodiment of the present disclosure.
[0029] Throughout the drawings, it should be noted that like reference numbers are used to depict the same or similar elements, features, and structures. DETAILED DESCRIPTION
[0030] The following description with reference to the accompanying drawings is provided to assist in a comprehensive understanding of the various embodiments of the present disclosure as defined by the claims and their equivalents. The following description includes various specific details to assist in understanding, but these specific details should be considered as merely exemplary. Therefore, it will be appreciated by those of ordinary skill in the art that various changes and modifications may be made to the various embodiments described herein without departing from the scope and spirit of the present disclosure. In addition, for the sake of clarity and brevity, descriptions of known functions and structures may be omitted.
[0031] The terms and words used in the following description and claims are not limited to the literal meanings, but are merely used by the inventor to achieve a clear and consistent understanding of the present disclosure. Therefore, it should be clear to those skilled in the art that the following description of various embodiments of the present disclosure is provided for illustrative purposes only, and not for the purpose of limiting the present disclosure as defined by the attached claims and their equivalents.
[0032] It should be understood that the singular forms "a," "an," and "the" include plural referents unless the context clearly dictates otherwise. Thus, for example, reference to "a component surface" includes reference to one or more of such surfaces.
[0033] Figure 1 is a block diagram illustrating an electronic device in a network environment according to an embodiment of the present disclosure.
[0034] Reference Figure 1, the electronic device 101 in the network environment 100 may communicate with the external electronic device 102 via a first network 198 (e.g., a short-range wireless communication network), or communicate with the external electronic device 104 or the server 108 via a second network 199 (e.g., a long-range wireless communication network). According to an embodiment of the present disclosure, the electronic device 101 may communicate with the external electronic device 104 via the server 108. According to an embodiment of the present disclosure, the electronic device 101 may include a processor 120, a memory 130, an input module 150, a sound output module 155, a display module 160, an audio module 170, a sensor module 176, an interface 177, a connection terminal 178, a tactile module 179, a camera module 180, a power management module 188, a battery 189, a communication module 190, a user identification module (SIM) 196, or an antenna module 197. In some embodiments of the present disclosure, at least one of the above components (e.g., the connection terminal 178) may be omitted from the electronic device 101, or one or more other components may be added to the electronic device 101. According to an embodiment of the present disclosure, some components (e.g., the sensor module 176, the camera module 180, or the antenna module 197) may be integrated into a single integrated component (e.g., the display module 160).
[0035] The processor 120 may run, for example, software (e.g., program 140) to control at least one other component (e.g., hardware component or software component) of the electronic device 101 connected to the processor 120, and may perform various data processing or calculations. According to one embodiment of the present disclosure, as at least part of the data processing or calculation, the processor 120 may store commands or data received from another component (e.g., sensor module 176 or communication module 190) in the volatile memory 132, process the commands or data stored in the volatile memory 132, and store the result data in the non-volatile memory 134. According to an embodiment of the present disclosure, the processor 120 may include a main processor 121 (e.g., a central processing unit (CPU) or an application processor (AP)) or an auxiliary processor 123 (e.g., a graphics processing unit (GPU), a neural processing unit (NPU), an image signal processor (ISP), a sensor hub processor, or a communication processor (CP)) that is independent of or combined with the main processor 121 in operation. For example, when the electronic device 101 includes a main processor 121 and an auxiliary processor 123, the auxiliary processor 123 may be adapted to consume less power than the main processor 121, or adapted to be dedicated to a specific function. The auxiliary processor 123 may be implemented separately from the main processor 121, or as part of the main processor 121.
[0036] When the main processor 121 is in an inactive (e.g., sleep) state, the auxiliary processor 123 (rather than the main processor 121) may control at least some of the functions or states related to at least one component among the components of the electronic device 101 (e.g., display module 160, sensor module 176, or communication module 190), or when the main processor 121 is in an active state (e.g., running an application), the auxiliary processor 123 may control at least some of the functions or states related to at least one component among the components of the electronic device 101 (e.g., display module 160, sensor module 176, or communication module 190) together with the main processor 121. According to an embodiment of the present disclosure, the auxiliary processor 123 (e.g., an image signal processor or a communication processor) may be implemented as part of another component (e.g., camera module 180 or communication module 190) that is functionally related to the auxiliary processor 123. According to an embodiment of the present disclosure, the auxiliary processor 123 (e.g., a neural processing unit) may include a hardware structure dedicated to artificial intelligence model processing. The artificial intelligence model may be generated by machine learning. For example, such learning may be performed by the electronic device 101 where the artificial intelligence is executed or via a separate server (e.g., server 108). The learning algorithm may include, but is not limited to, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, for example. The artificial intelligence model may include multiple artificial neural network layers. The artificial neural network may be a deep neural network (DNN), a convolutional neural network (CNN), a recurrent neural network (RNN), a restricted Boltzmann machine (RBM), a deep belief network (DBN), a bidirectional recurrent deep neural network (BRDNN), a deep Q network, or a combination of two or more thereof, but is not limited thereto. Additionally or alternatively, the artificial intelligence model may include a software structure in addition to a hardware structure.
[0037] The memory 130 may store various data used by at least one component of the electronic device 101 (e.g., the processor 120 or the sensor module 176). The various data may include, for example, software (e.g., the program 140) and input data or output data for commands related thereto. The memory 130 may include a volatile memory 132 or a nonvolatile memory 134.
[0038] The program 140 may be stored as software in the memory 130 , and may include, for example, an operating system (OS) 142 , middleware 144 , or applications 146 .
[0039] The input module 150 may receive commands or data to be used by other components (e.g., the processor 120) of the electronic device 101 from outside (e.g., a user) of the electronic device 101. The input module 150 may include, for example, a microphone, a mouse, a keyboard, a key (e.g., a button), or a digital pen (e.g., a stylus).
[0040] The sound output module 155 can output sound signals to the outside of the electronic device 101. The sound output module 155 may include, for example, a speaker or a receiver. The speaker can be used for general purposes such as playing multimedia or playing records. The receiver can be used to receive incoming calls. According to an embodiment of the present disclosure, the receiver can be implemented as a separate part from the speaker, or as part of the speaker.
[0041] The display module 160 may visually provide information to the outside of the electronic device 101 (e.g., a user). The display module 160 may include, for example, a display, a holographic device, or a projector, and a control circuit for controlling a corresponding one of the display, the holographic device, and the projector. According to an embodiment of the present disclosure, the display module 160 may include a touch sensor adapted to detect a touch or a pressure sensor adapted to measure the strength of a force caused by a touch.
[0042] The audio module 170 can convert sound into an electrical signal, or vice versa. According to an embodiment of the present disclosure, the audio module 170 can obtain sound via the input module 150, or output sound via the sound output module 155 or an earphone of an external electronic device (e.g., external electronic device 102) directly (e.g., wired) or wirelessly connected to the electronic device 101.
[0043] The sensor module 176 may detect an operating state (e.g., power or temperature) of the electronic device 101 or an environmental state (e.g., a state of a user) outside the electronic device 101, and then generate an electrical signal or data value corresponding to the detected state. According to an embodiment of the present disclosure, the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, an atmospheric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an infrared (IR) sensor, a biometric sensor, a temperature sensor, a humidity sensor, or an illumination sensor.
[0044] The interface 177 may support one or more specific protocols to be used to connect the electronic device 101 directly (e.g., wired) or wirelessly to an external electronic device (e.g., external electronic device 102). According to an embodiment of the present disclosure, the interface 177 may include, for example, a high-definition multimedia interface (HDMI), a universal serial bus (USB) interface, a secure digital (SD) card interface, or an audio interface.
[0045] The connection end 178 may include a connector, wherein the electronic device 101 can be physically connected to an external electronic device (e.g., the external electronic device 102) via the connector. According to an embodiment of the present disclosure, the connection end 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector).
[0046] The haptic module 179 may convert the electrical signal into mechanical stimulation (eg, vibration or motion) or electrical stimulation that can be recognized by the user via his sense of touch or kinesthetic sense. According to an embodiment of the present disclosure, the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulator.
[0047] The camera module 180 may capture still images or moving images. According to an embodiment of the present disclosure, the camera module 180 may include one or more lenses, an image sensor, an image signal processor, or a flash.
[0048] The power management module 188 may manage power supply to the electronic device 101. According to an embodiment of the present disclosure, the power management module 188 may be implemented as, for example, at least a part of a power management integrated circuit (PMIC).
[0049] The battery 189 may supply power to at least one component of the electronic device 101. According to an embodiment of the present disclosure, the battery 189 may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.
[0050] The communication module 190 may support establishing a direct (e.g., wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (e.g., an external electronic device 102, an external electronic device 104, or a server 108), and perform communication via the established communication channel. The communication module 190 may include one or more communication processors capable of operating independently from the processor 120 (e.g., an application processor (AP)) and supporting direct (e.g., wired) communication or wireless communication. According to an embodiment of the present disclosure, the communication module 190 may include a wireless communication module 192 (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (e.g., a local area network (LAN) communication module or a power line communication (PLC) module). A corresponding one of these communication modules can communicate with the external electronic device 104 via a first network 198 (e.g., a short-range communication network such as Bluetooth, Wireless Fidelity (Wi-Fi) Direct, or Infrared Data Association (IrDA)) or a second network 199 (e.g., a long-range communication network such as a traditional cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., a LAN or a wide area network (WAN))). These various types of communication modules may be implemented as a single component (e.g., a single chip), or may be implemented as multiple components (e.g., multiple chips) separated from each other. The wireless communication module 192 may identify or authenticate the electronic device 101 in a communication network (such as the first network 198 or the second network 199) using user information (e.g., an International Mobile Subscriber Identity (IMSI)) stored in the user identification module 196.
[0051] The wireless communication module 192 can support 5G networks after 4G networks and next-generation communication technologies (e.g., new radio (NR) access technology). NR access technology can support enhanced mobile broadband (eMBB), massive machine type communication (mMTC), or ultra-reliable low-latency communication (URLLC). The wireless communication module 192 can support high-frequency bands (e.g., millimeter wave bands) to achieve, for example, high data transmission rates. The wireless communication module 192 can support various technologies for ensuring performance on high-frequency bands, such as, for example, beamforming, massive multiple-input multiple-output (massive MIMO), full-dimensional MIMO (FD-MIMO), array antennas, analog beamforming, or massive antennas. The wireless communication module 192 can support various requirements specified in the electronic device 101, an external electronic device (e.g., an external electronic device 104), or a network system (e.g., a second network 199). According to an embodiment of the present disclosure, the wireless communication module 192 may support a peak data rate for implementing eMBB (e.g., 20 Gbps or greater), loss coverage for implementing mMTC (e.g., 164 dB or less), or U-plane delay for implementing URLLC (e.g., 0.5 ms or less for each of the downlink (DL) and uplink (UL), or 1 ms or less for a round trip).
[0052] The antenna module 197 may transmit a signal or power to the outside (e.g., an external electronic device) or receive a signal or power from the outside (e.g., an external electronic device). According to an embodiment of the present disclosure, the antenna module 197 may include an antenna including a radiating element, and the radiating element is formed of a conductive material or a conductive pattern formed on a substrate (e.g., a printed circuit board (PCB)). According to an embodiment of the present disclosure, the antenna module 197 may include a plurality of antennas (e.g., an array antenna). In this case, at least one antenna suitable for a communication scheme used in a communication network (such as the first network 198 or the second network 199) may be selected from the plurality of antennas by, for example, the communication module 190 (e.g., the wireless communication module 192). Subsequently, a signal or power may be transmitted or received between the communication module 190 and the external electronic device via the selected at least one antenna. According to an embodiment of the present disclosure, another component (e.g., a radio frequency integrated circuit (RFIC)) other than the radiating element may be additionally formed as a part of the antenna module 197.
[0053] According to various embodiments of the present disclosure, the antenna module 197 may form a millimeter wave antenna module. According to an embodiment of the present disclosure, the millimeter wave antenna module may include a printed circuit board, a radio frequency integrated circuit (RFIC), and a plurality of antennas (e.g., array antennas), wherein the RFIC is disposed on a first surface (e.g., bottom surface) of the printed circuit board, or adjacent to the first surface and capable of supporting a specified high frequency band (e.g., millimeter wave band), and the plurality of antennas are disposed on a second surface (e.g., top surface or side surface) of the printed circuit board, or adjacent to the second surface and capable of transmitting or receiving signals of the specified high frequency band.
[0054] At least some of the above components may be connected to each other via an inter-peripheral communication scheme (e.g., a bus, a general purpose input output (GPIO), a serial peripheral interface (SPI), or a mobile industry processor interface (MIPI)) and communicatively transmit signals (e.g., commands or data) therebetween.
[0055] According to an embodiment of the present disclosure, a command or data may be sent or received between the electronic device 101 and the external electronic device 104 via the server 108 connected to the second network 199. Each of the external electronic device 102 or the external electronic device 104 may be a device of the same type as the electronic device 101, or a device of a different type from the electronic device 101. According to an embodiment of the present disclosure, all or some operations to be executed in the electronic device 101 may be executed in one or more of the external electronic device 102, the external electronic device 104, or the server 108. For example, if the electronic device 101 should automatically execute a function or service or should execute a function or service in response to a request from a user or another device, the electronic device 101 may request the one or more external electronic devices to execute at least part of the function or service instead of executing the function or service, or the electronic device 101 may request the one or more external electronic devices to execute at least part of the function or service in addition to executing the function or service. The one or more external electronic devices receiving the request may execute at least part of the requested function or service, or execute another function or another service related to the request, and transmit the result of the execution to the electronic device 101. The electronic device 101 may provide the result as at least a partial reply to the request in the case of further processing the result or without further processing the result. To this end, cloud computing technology, distributed computing technology, mobile edge computing (MEC) technology or client-server computing technology, for example, may be used. The electronic device 101 may use, for example, distributed computing or mobile edge computing to provide ultra-low latency services. In another embodiment of the present disclosure, the external electronic device 104 may include an Internet of Things (IoT) device. The server 108 may be an intelligent server using machine learning and / or neural networks. According to an embodiment of the present disclosure, the external electronic device 104 or the server 108 may be included in the second network 199. The electronic device 101 may be applied to intelligent services (e.g., smart homes, smart cities, smart cars or health care) based on 5G communication technology or IoT-related technologies.
[0056] The electronic device according to various embodiments may be one of various types of devices. The electronic device may include, for example, a portable communication device (e.g., a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a household appliance. According to an embodiment of the present disclosure, the electronic device is not limited to those electronic devices described above.
[0057] It should be understood that the various embodiments of the present disclosure and the terms used therein are not intended to limit the technical features set forth herein to specific embodiments, but include various changes, equivalents or alternative forms for the corresponding embodiments. For the description of the accompanying drawings, similar reference numerals may be used to refer to similar or related elements. As used herein, each of the phrases such as "A or B", "at least one of A and B", "at least one of A or B", "A, B or C", "at least one of A, B and C" and "at least one of A, B or C" may include all possible combinations of items listed together with a corresponding phrase in the multiple phrases. As used herein, terms such as "1st" and "2nd" or "first" and "second" may be used to simply distinguish a corresponding component from another component, and do not limit the components in other aspects (e.g., importance or order). It will be understood that if an element (e.g., a first element) is referred to as being “combined with another element (e.g., the second element)”, “combined to another element (e.g., the second element)”, “connected with another element (e.g., the second element)”, or “connected to another element (e.g., the second element)” when the terms “operably” or “communicatively” are used or when the terms “operably” or “communicatively” are not used, it means that the element may be directly (e.g., wired) connected to the other element, wirelessly connected to the other element, or connected to the other element via a third element.
[0058] As used herein, the term "module" may include units implemented in hardware, software, or firmware, and may be used interchangeably with other terms (e.g., "logic," "logic block," "portion," or "circuit"). A module may be a single integrated component adapted to perform one or more functions or a minimum unit or portion of the single integrated component. For example, according to an embodiment of the present disclosure, a module may be implemented in the form of an application specific integrated circuit (ASIC).
[0059] The various embodiments described herein may be implemented as software (e.g., program 140) including one or more instructions stored in a storage medium (e.g., internal memory 136 or external memory 138) that can be read by a machine (e.g., electronic device 101). For example, under the control of a processor, a processor (e.g., processor 120) of the machine (e.g., electronic device 101) may call at least one of the one or more instructions stored in the storage medium and execute the at least one instruction with or without the use of one or more other components. This enables the machine to operate to perform at least one function according to the at least one instruction called. The one or more instructions may include code generated by a compiler or code that can be run by an interpreter. A machine-readable storage medium may be provided in the form of a non-transitory storage medium. Among them, the term "non-transitory" only means that the storage medium is a tangible device and does not include a signal (e.g., an electromagnetic wave), but the term does not distinguish between data being semi-permanently stored in a storage medium and data being temporarily stored in a storage medium.
[0060] According to an embodiment of the present disclosure, the method according to various embodiments of the present disclosure may be included and provided in a computer program product. The computer program product may be traded between a seller and a buyer as a product. The computer program product may be released in the form of a machine-readable storage medium (e.g., a compact disk read-only memory (CD-ROM)), or may be downloaded via an application store (e.g., Play Store TM ) The computer program product may be published (e.g., downloaded or uploaded) online, or the computer program product may be distributed (e.g., downloaded or uploaded) directly between two user devices (e.g., smart phones). If published online, at least part of the computer program product may be temporarily generated, or at least part of the computer program product may be at least temporarily stored in a machine-readable storage medium (such as a memory of a manufacturer's server, an application store's server, or a forwarding server).
[0061] According to various embodiments of the present disclosure, each of the above-mentioned components (e.g., a module or a program) may include a single entity or multiple entities. Some of the multiple entities may be separately arranged in different components. According to various embodiments of the present disclosure, one or more of the above-mentioned components may be omitted, or one or more other components may be added. Alternatively or additionally, multiple components (e.g., a module or a program) may be integrated into a single component. In this case, according to various embodiments of the present disclosure, the integrated component may still perform the one or more functions of each of the multiple components in the same or similar manner as a corresponding one of the multiple components before integration. According to various embodiments of the present disclosure, the operations performed by a module, a program or another component may be performed sequentially, in parallel, repeatedly or in a heuristic manner, or one or more of the operations may be run or omitted in a different order, or one or more other operations may be added.
[0062] Figure 2 A block diagram showing an electronic device according to an embodiment of the present disclosure.
[0063] Reference Figure 2 , the electronic device 200 (eg, Figure 1 The electronic device 101 may include a display 210, a communication circuit 220, a memory 230 and / or a processor 240.
[0064] In an embodiment of the present disclosure, the display 210 may display a keyboard on the touch screen under the control of the processor 240 and display a character string input through the keyboard. In an embodiment of the present disclosure, the display 210 may display information generated by the processor 240 and information sent and / or received through the communication circuit 220 under the control of the processor 240. In an embodiment of the present disclosure, the display 210 may include Figure 1 In the display module 160.
[0065] In the embodiments of the present disclosure, the communication circuit 220 can communicate with the server (eg, Figure 1 In an embodiment of the present disclosure, the communication circuit 220 may communicate with the server (e.g., Figure 1 In an embodiment of the present disclosure, the communication circuit 220 may include a server 108 to send a report about the obfuscated string data. Figure 1 In the communication module 190.
[0066] In an embodiment of the present disclosure, the memory 230 may store information sent and / or received by the communication circuit 220 and information generated by the processor 240. According to various embodiments of the present disclosure, the memory 230 may store information, commands and / or indicators for connecting with a server.
[0067] In an embodiment of the present disclosure, the memory 230 may include a volatile memory or a non-volatile memory, and may be implemented as Figure 1 The memory 130 is substantially the same or similar.
[0068] According to an embodiment of the present disclosure, the memory 230 may store an obfuscation algorithm and a security parameter (privacy budget) for obfuscating collected character string data.
[0069] According to an embodiment of the present disclosure, the processor 240 may include Figure 1 In one embodiment of the present disclosure, the processor 204 may include one or more processors.
[0070] In an embodiment of the present disclosure, the processor 240 may control the overall operation of the electronic device 201 and may communicate with the Figure 1 The processor 120 may be the same as the processor 120, or may perform at least one function or operation performed by the processor 120.
[0071] According to various embodiments of the present disclosure, the processor 240 may apply artificial intelligence technology to run a software application that executes the user's desired instructions. For example, the processor 240 may perform artificial intelligence functions, such as machine learning including deep learning, speech recognition, sentence analysis, and context recognition. The processor 240 may provide customized services to the user by learning the user's habits or patterns. The software application that applies artificial intelligence technology may be, for example, S voice or Bixby. In the present disclosure, "user" may refer to a person or other device (e.g., an artificial intelligence electronic device) using an electronic device.
[0072] According to various embodiments of the present disclosure, the processor 240 may collect string data through user input (e.g., keyboard input) of the electronic device 200, and may use a preset obfuscation algorithm and security parameters to obfuscate the collected string data. As an algorithm for obfuscating string data, various algorithms may be used. In the present disclosure, an example of using a differential privacy algorithm is described. According to an embodiment of the present disclosure, the security parameters and the obfuscation algorithm may be determined by the processor 240, and preset and stored in the memory 230 of the electronic device. According to an embodiment of the present disclosure, as the security parameter decreases, the security strength may increase, and as the security parameter increases, the security strength may decrease. As the security strength increases, the protection of user privacy information will be stronger, but a greater computing and processing load will be imposed on the server that performs decoding, so that the accuracy of the server obtaining the original data will be reduced. As described above, since there is a trade-off between user information protection and decoded data accuracy, the processor 240 may set appropriate security parameters to optimize user information protection and decoded data accuracy.
[0073] According to an embodiment of the present disclosure, the processor 240 may determine a security parameter according to the importance of the character string data to be sent to the server.
[0074] According to an embodiment of the present disclosure, the processor 240 may determine a security parameter according to the importance of an application that generates character string data to be transmitted to a server.
[0075] According to an embodiment of the present disclosure, the processor 240 may determine a security parameter according to a user input.
[0076] According to an embodiment of the present disclosure, the processor 240 may obfuscate the string data to be sent to the server by using security parameters and applying an obfuscation algorithm. According to an embodiment of the present disclosure, the processor 240 may obfuscate the string data to generate a report and control the communication circuit 220 to send the generated report to the server.
[0077] According to an embodiment of the present disclosure, the processor 240 may insert a fingerprint into the collected string data, and segment the extended string data into n-gram domains including n-gram elements to generate a plurality of segmented data having a preset size n. According to an embodiment of the present disclosure, an n-gram domain may represent a set generated according to the number of characters. For example, if a word consists of English letters (lowercase letters) including a null character, the set of 2-gram domains may be {□□, □a, ..., aa, ab, ac ... zz}. In other words, the set of 2-gram domains may be a total of 729 (27 2) elements. According to an embodiment of the present disclosure, the n-gram domain used in the present disclosure may include some n-gram domains whose utilization is greater than or equal to a predetermined value based on previously collected data and empirical data among all n-gram domains. According to an embodiment of the present disclosure, the n-gram domain used in the present disclosure may be configured to be different according to the position of each n-gram. According to an embodiment of the present disclosure, an index may be assigned to a per-position n-gram domain. By this method, a domain with a constant size may be maintained despite the increase of n, so that the performance degradation of the electronic device may be minimized despite the collection of relatively long string data. An index may be assigned to each of a predetermined number of elements constituting a 4-gram domain. According to an embodiment of the present disclosure, indexes may be assigned sequentially according to the order of the elements. For example, the index of "aaaa" in the elements of a 4-gram set may be set to 0, and the index of "aaab" may be set to 1.
[0078] According to an embodiment of the present disclosure, information on n-gram domains used in the present disclosure may be shared in advance between an electronic device and a server.
[0079] According to an embodiment of the present disclosure, the processor 240 may select one segmented data from a plurality of segmented data, obfuscate the selected segmented data to generate a report, and send the report to a server.
[0080] According to an embodiment of the present disclosure, a fingerprint can be used to determine whether the original data collected by the electronic device and the data decoded by the server are the same data. According to an embodiment of the present disclosure, the fingerprint can be generated by a hash function. According to an embodiment of the present disclosure, the length of the fingerprint can be preset. According to an embodiment of the present disclosure, the fingerprint can be a hash value obtained by applying the original data as an input value to the hash function. Since the hash values of the same data are the same, the same fingerprint can be inserted into the same data. The server can determine whether the decoded data is correct data by identifying whether the fingerprint of the decoded data is the same as the fingerprint obtained from the report.
[0081] According to an embodiment of the present disclosure, the processor 240 may always send data of the same size to the server so that the server can decode efficiently. In an embodiment of the present disclosure, the length of the string data to be collected and obfuscated by the processor 240 may be preset. When the length of the collected string data is less than the preset size, the fingerprint may be inserted after the last part of the collected string data is filled with null characters to fit the preset size. When the collected string data is greater than the preset size, the last part of the collected string data may be truncated to the preset size, and then the fingerprint may be inserted therein.
[0082] According to an embodiment of the present disclosure, when the number of the plurality of segmented data is N, the processor 240 may sequentially insert an index into each of the plurality of segmented data. For example, the processor 130 may sequentially insert indexes 0 to N-1 into the N segmented data. According to an embodiment of the present disclosure, two segmented data having consecutive indexes may be segmented data adjacent to each other.
[0083] According to an embodiment of the present disclosure, two segment data adjacent to each other may include duplicate data having a preset size. According to an embodiment of the present disclosure, the first segment data and the last segment data may include duplicate data larger than a preset size.
[0084] According to an embodiment of the present disclosure, when the length of the segment data is n, the processor 240 may dynamically select the number of replicated data to be one of values from 1 to n-1.
[0085] According to an embodiment of the present disclosure, the processor 240 may select a segmented data from a plurality of segmented data, apply an obfuscation algorithm to the selected segmented data to obfuscate it, and then generate a report on the obfuscated segmented data and send the report to a server. According to an embodiment of the present disclosure, when selecting a segmented data from a plurality of segmented data, the processor 240 may select a segmented data based on a predefined per-position selection probability. According to an embodiment of the present disclosure, the predefined per-position selection probability of each n-gram may be set based on the per-position size of the n-gram domain used in the present disclosure. According to an embodiment of the present disclosure, the electronic device may generate a report by obfuscating the selected n-gram elements by applying a differential privacy algorithm.
[0086] According to an embodiment of the present disclosure, a report sent to a server may include multiple variables. According to an embodiment of the present disclosure, a report sent to a server by an electronic device may include the name of an obfuscation algorithm used by the electronic device, the number of segments of each string, the length of each segment, the segment hash size, and the string hash size. For those of ordinary skill in the art, the number of variables constituting the report may be changed.
[0087] Figure 3 FIG. 1 is a block diagram of a server according to an embodiment of the present disclosure. According to an embodiment of the present disclosure, the server 300 may be Figure 1 Server 108.
[0088] Reference Figure 3 In an embodiment of the present disclosure, the server 300 may include a communication circuit 320 , a memory 330 and / or a processor 340 .
[0089] In the embodiment of the present disclosure, the communication circuit 320 can communicate with the electronic device (eg, Figure 1The electronic device 101 or Figure 2 In an embodiment of the present disclosure, the communication circuit 320 may receive a report of obfuscated string data from the electronic device under the control of the processor 340.
[0090] In an embodiment of the present disclosure, the memory 330 may store information sent and / or received by the communication circuit 320 and information generated by the processor 340. According to various embodiments of the present disclosure, the memory 330 may store information, commands and / or indicators for connecting with an electronic device. In an embodiment of the present disclosure, the memory 330 may include a volatile memory or a non-volatile memory.
[0091] According to an embodiment of the present disclosure, the memory 330 may store a decoding algorithm for decoding an obfuscated data report.
[0092] In an embodiment of the present disclosure, when a plurality of reports of segmented data for each of a plurality of locations are received from a plurality of electronic devices, the processor 340 may decode the plurality of reports to obtain at least one candidate data.
[0093] In an embodiment of the present disclosure, when multiple obfuscation reports are received from an electronic device, the processor 340 may sort the multiple reports by index based on the index information included in the report. In an embodiment of the present disclosure, the processor 340 may estimate the collection frequency of the string data for each position included in the report, and may select a string whose estimated collection frequency is equal to or greater than a preset number of times as the string data to be restored. In an embodiment of the present disclosure, the processor 340 may dynamically set the frequency according to the position of each string data.
[0094] In an embodiment of the present disclosure, the processor 340 may compare data included in adjacent reports among reports sorted based on the index to identify whether duplicate data of a preset size is included. In an embodiment of the present disclosure, the processor 340 may obtain a candidate data by splicing reports including the same duplicate data based on a chain rule.
[0095] In an embodiment of the present disclosure, the candidate data is extended data including a fingerprint and actual data, and the processor 340 can obtain the original data by using the fingerprint included in the candidate data. In an embodiment of the present disclosure, the processor 340 can separate the actual data and the fingerprint from the candidate data, and identify whether the hash value (i.e., the fingerprint) of the separated actual data is the same as the fingerprint separated from the candidate data. In an embodiment of the present disclosure, the hash function of the server application can be the same as the hash function of the electronic device application.
[0096] In an embodiment of the present disclosure, when the hash value (i.e., fingerprint) of the separated actual data is the same as the fingerprint separated from the candidate data, the processor 340 can determine that the separated data is data received from the electronic device, and if it is not the same, determine that the separated data is erroneous data.
[0097] According to various embodiments of the present disclosure, an electronic device (eg, Figure 2 The electronic device 201 may include a communication circuit (eg, Figure 2 and at least one processor (e.g., Figure 2 The at least one processor may be configured to obtain data to be sent to the server, insert a fingerprint into the data, segment the fingerprint-inserted data into a first size to generate a plurality of segmented data, copy data of a second size between adjacent segmented data in the plurality of segmented data, select a segmented data from the plurality of segmented data according to a preset per-position selection probability for the plurality of segmented data, and send a report generated by obfuscating the selected one segmented data to the server.
[0098] According to various embodiments of the present disclosure, the second size may be set to a value smaller than the first size.
[0099] According to an embodiment of the present disclosure, the report may include location information of a selected segment data.
[0100] According to an embodiment of the present disclosure, a segmented data set may be predefined, and the segmented data set includes a predetermined number of data among the segmented data of the first size at each position as elements. The selected one segmented data may be included in the segmented data set.
[0101] According to an embodiment of the present disclosure, the per-position selection probability may be set based on the number of elements of the segmented data set for each position.
[0102] According to an embodiment of the present disclosure, when the data is smaller than the third size, the processor may pad the data and insert the fingerprint so that the size of the data is the third size, and when the data is larger than the third size, the processor may truncate the data and insert the fingerprint so that the size of the data is the third size.
[0103] According to various embodiments of the present disclosure, a server (e.g., Figure 3 The server 300 may include a communication circuit (e.g., Figure 3 and at least one processor (e.g., Figure 3The at least one processor may be configured to receive a plurality of segmented data to which an obfuscation algorithm is applied from the electronic device through the communication circuit, select segmented data having a frequency exceeding a predetermined value, the frequency being estimated for each segmented data, restore candidate data by splicing the selected segmented data based on duplicate data between the selected segmented data, and obtain the restored candidate data as final data based on the data portion and the fingerprint portion included in the restored candidate data.
[0104] According to an embodiment of the present disclosure, the report may include location information about the segmented data.
[0105] According to an embodiment of the present disclosure, a segmented data set may be predefined, the segmented data set including a predetermined number of data among all combinations of per-position segmented data as elements. The per-position segmented data included in the report may be included in the segmented data set.
[0106] According to an embodiment of the present disclosure, the frequency per position may be set based on the number of elements of the segmented data set for each position.
[0107] Figure 4 and Figure 5 is a schematic diagram showing the operation of an electronic device according to various embodiments of the present disclosure. In an embodiment of the present disclosure, the electronic device may be Figure 1 The electronic device 101 or Figure 2 In the embodiment of the present disclosure, the server can be connected to the electronic device 200. Figure 1 Server 108 or Figure 3 The server 300 is basically the same.
[0108] In the present disclosure, for ease of description, only the case of a 4-gram set is described, but the same technical spirit is also applicable to a 2-gram set, a 3-gram set or any n-gram set. In addition, although the words in the present disclosure are limited to empty characters and lowercase letters in the alphabet, they may also include various other characters, including uppercase letters in the alphabet, special symbols or letters in other languages. In addition, although the data in the present disclosure are assumed to be words, it is obvious to those of ordinary skill in the art that it is not limited thereto, and the same technical spirit is also applicable to images, voices, programs or other various data as well as words.
[0109] Figure 4 It is a schematic diagram illustrating the operation of the electronic device according to an embodiment of the present disclosure.
[0110] Reference Figure 4In operation 401, the electronic device may collect new string data through keyboard input. In an embodiment of the present disclosure, the length of the string data to be collected and obfuscated may be preset. When the length of the collected string data is less than the preset size, the last part of the collected string data may be filled with null characters to fit the preset size, and when the length of the collected string data is greater than the preset size, the last part of the collected string data may be truncated to the preset size.
[0111] For example, when the collected string data is "tryna" and the length of the string data to be obfuscated by the electronic device is set to 6, since the collected string data "tryna" has 5 characters, the electronic device can fill the last data with a null character "□", such as Figure 5 "tryna□"510.
[0112] In operation 402, the electronic device may insert the fingerprint into the string data to be obfuscated to generate an extended string including the string data and the fingerprint. According to an embodiment of the present disclosure, the fingerprint may be generated by a hash function. According to an embodiment of the present disclosure, the fingerprint may be a hash value obtained by applying the original data as an input value to the hash function. For example, when the length of the fingerprint is set to 2, the electronic device may obtain the fingerprint "ix" 521 by inputting the string "tryna□" 510 to be obfuscated into a preset hash function h. According to an embodiment of the present disclosure, the electronic device may insert the obtained fingerprint "ix" 521 into "tryna□" 510 to generate an extended string "tryna□ix" 520.
[0113] In operation 403, the electronic device may segment the extended string into strings (n-grams) having a predetermined length so that a preset amount of data is copied between adjacent segmented strings. In the last segmented string and the first segmented string, data exceeding a preset amount may be copied.
[0114] According to an embodiment of the present disclosure, when the length of the segment data is n, the number of replicated data may be dynamically selected as one of values from 1 to n-1.
[0115] Figure 5 It is a schematic diagram illustrating the operation of the electronic device according to an embodiment of the present disclosure.
[0116] Reference Figure 5, the electronic device may split the extended character string "tryna□ix" 520 into 4-grams 530, that is, into four elements "tryn" 531, "yna□" 532, "a□ix" 533, and "ixtr" 534, so that the character strings adjacent to each other include two duplicate characters. In other words, the splitting may be performed so that "yn" is duplicated in "tryn" 531 and "yna□" 532, "a□" is duplicated in "yna□" 532 and "a□ix" 533, "ix" is duplicated in "a□ix" 533 and "ixtr" 534, and "tr" is duplicated in the last element "ixtr" 534 and the first element "tryn" 531.
[0117] In operation 404, the electronic device may select an n-gram 540 from the segmented n-gram elements 531 to 534. According to an embodiment of the present disclosure, the electronic device may know an n-gram domain that has been previously negotiated with the server and is configured to include only a portion of the entire n-gram domain. According to an embodiment of the present disclosure, the n-gram domain used in the present disclosure may include some n-grams whose usage frequency is greater than or equal to a predetermined value based on previously collected data and empirical data. According to an embodiment of the present disclosure, the n-gram domain used in the present disclosure may be configured to be different according to the position of each n-gram. According to an embodiment of the present disclosure, an index may be assigned to the n-gram domain of each position.
[0118] For example, the electronic device can be configured with a 4-gram domain consisting of only a predetermined number of elements, except for the elements {aaaa, aaab, aaac, ..., zzzy, zzzz} of all possible 4-gram sets with the least frequently used elements (e.g., "xyxy" and "zzzz"). Through this method, although n increases, a domain with a constant size can be maintained, so that the performance degradation of the electronic device can be minimized despite the collection of relatively long string data. An index can be assigned to each of the predetermined number of elements constituting the 4-gram domain. According to an embodiment of the present disclosure, indexes can be assigned in sequence according to the order of the elements. For example, the index of "aaaa" among the elements of the 4-gram set can be set to 0, and the index of "aaab" can be set to 1.
[0119] According to an embodiment of the present disclosure, the electronic device may select an n-gram element 540 from among the segmented n-gram elements 531 to 534 based on the previously defined per-position selection probability of each n-gram. According to an embodiment of the present disclosure, the predefined per-position selection probability of each n-gram may be set based on the per-position size of the n-gram domain used in the present disclosure. For example, the selection probabilities of the segmented n-gram elements "tryn" 531, "yna□" 532, "a□ix" 533, and "ixtr" 534 may be set to 30%, 25%, 30%, and 15%, respectively.
[0120] In operation 405, the electronic device may confuse the selected n-gram element 540 to generate a report, and then send the report to the server. According to an embodiment of the present disclosure, the electronic device may generate a report by applying a differential privacy algorithm to confuse the selected n-gram element. For example, when "yna□" 532 of the second position is selected, according to the predefined per-position selection probability, from the set of 4-gram elements, the electronic device may generate a report consisting of two variables by applying the differential privacy algorithm to "yna□" 532. For example, when the function applied to the differential privacy algorithm used by the electronic device is f(x), the electronic device may generate (f(yna□), 2) as a report. Here, f(yna□) may represent a value obtained by applying a differential privacy algorithm to "yna□", and 2 may represent position information about "yna□", which indicates that the selected element is the second element in the entire 4-gram. In this case, it is obvious to a person skilled in the art that the number of variables constituting the report can be changed.
[0121] According to an embodiment of the present disclosure, the report sent by the electronic device to the server may include the name of the obfuscation algorithm used by the electronic device, the number of segments of each string, the length of each segment, the segment hash size, and the string hash size.
[0122] Figure 6 and Figure 7 is a schematic diagram showing the operation of a server according to various embodiments of the present disclosure. In an embodiment of the present disclosure, the server may communicate with Figure 1 Server 108 or Figure 3 In the embodiment of the present disclosure, the electronic device can be connected to the server 300. Figure 1 The electronic device 101 or Figure 2 The electronic device 200 is substantially the same.
[0123] In the present disclosure, for ease of description, only the case of a 4-gram set is described, but the same technical spirit is also applicable to a 2-gram set, a 3-gram set or any n-gram set. In addition, although the words in the present disclosure are limited to empty characters and lowercase letters in the alphabet, they may also include various other characters, including uppercase letters in the alphabet, special symbols or letters in other languages. In addition, although the data in the present disclosure are assumed to be words, it is obvious to those of ordinary skill in the art that it is not limited thereto, and the same technical spirit is also applicable to images, voices, programs or other various data as well as words.
[0124] Figure 6 A schematic diagram illustrating the operation of a server according to an embodiment of the present disclosure.
[0125] Reference Figure 6 In operation 601, the server may receive an obfuscation report from the electronic device. According to an embodiment of the present disclosure, the server may collect per-position n-gram reports from the electronic device. For example, when the function applied to the differential privacy algorithm used by the server is g(x), the server may obtain the result of applying g(x) to each n-gram string included in the collected report. g(x) may be a function that performs an inverse transformation of the function f(x) applied in the electronic device.
[0126] In operation 602, the server may estimate the per-position collection frequency of the string corresponding to the g(x) function value. An index may be assigned to each of the per-position n-gram fields corresponding to the g(x) function value, and a plurality of reports may be collected for each index.
[0127] In operation 603 , the server may select character strings whose preset collection frequency is a preset number or more as character strings to be restored.
[0128] Figure 7 A schematic diagram illustrating the operation of a server according to an embodiment of the present disclosure.
[0129] Reference Figure 7 , when the preset collection frequency is 20000, the server may select "tryn" 711, "yna□" 712, "a□ix" 713, and "ixtr" 714 as the per-position character string 710 with the collection frequency being the preset value 20000.
[0130] In operation 604 , the server may generate an expansion candidate character string by concatenating the selected character strings 711 to 714 based on a chain rule.
[0131] Reference Figure 5Since “yn” is replicated in “tryn” 711 and “yna□” 712, “a□” is replicated in “yna□” 712 and “a□ix” 713, “ix” is replicated in “a□ix” 713 and “ixtr” 714, and “tr” is replicated in “ixtr” 714 and “tryn” 711, the extended candidate string “tryna□ix” 720 can be obtained by arranging and concatenating the strings 711 to 714 so that the replicated features overlap.
[0132] In operation 605, the server may separate the candidate string 720 into actual data 721 and fingerprint 722, and apply the separated data 721 to a hash function to obtain a hash value (fingerprint) 730. According to an embodiment of the present disclosure, the server may compare the hash value obtained from the separated data 721 with the fingerprint 722 separated from the candidate string 720 to determine whether the two values are the same. In an embodiment of the present disclosure, the hash function applied by the server may be the same as the hash function applied by the electronic device.
[0133] In an embodiment of the present disclosure, when the hash value (fingerprint) of the separated data is identical to the separated fingerprint, the server may determine that the separated data is data received from the electronic device, and if not identical, determine that the separated data is erroneous data.
[0134] Reference Figure 5 , the server can obtain a hash value by applying "tryna□" 721 to a hash function. In an embodiment of the present disclosure, when the hash value of "tryna□" 721 is the same as the fingerprint 722, which is ix, the server can determine that the word sent by the electronic device is "tryna□".
[0135] According to an embodiment of the present disclosure, words smaller than a preset size (e.g., 6 characters) are restored as input by the user, but words larger than a preset size (e.g., 6 characters) may not be restored as input by the user. According to an embodiment of the present disclosure, the server may analyze the restored words to estimate the original words. For example, the server may construct a learning model related to word completion by inputting various data related to automatic word completion or data related to grammatical information as learning data into the artificial intelligence model. When a learning model related to word completion is constructed, the server may estimate the original word by inputting the decoded word as input data into the artificial intelligence model.
[0136] Figure 7 Schematic diagram showing the size of the domain of each position according to an embodiment of the present disclosure. Figure 7For ease of description, only the case of a 4-gram set is described, but the same technical spirit is also applicable to a 2-gram domain, a 3-gram domain, or any n-gram domain. In addition, although the words in the present disclosure are limited to empty characters and lowercase letters in the alphabet, they may also include various other characters, including uppercase letters in the alphabet, special symbols, or letters in other languages. In addition, although the data in the present disclosure is assumed to be words, it is obvious to those skilled in the art that it is not limited to this, and the same technical spirit is also applicable to images, voices, programs, or other various data as well as words.
[0137] Reference Figure 7 According to an embodiment of the present disclosure, a string obfuscation method may use a different domain size for each position (e.g., 1 to 15). For example, the size of the domain at position 1 is 40,000, which is larger than the size of the domain at position 15, 10,000, indicating that the domain at position 1 is configured as a relatively dense domain compared to the domain at position 15. According to an embodiment of the present disclosure, instead of using all 4-gram domains, optimized domains may be utilized by using only the top k most frequently used 4-gram domains and removing relatively infrequently used 4-gram domains. According to an embodiment of the present disclosure, the size of the 4-gram domain is pre-negotiated with the server and may be set based on previously collected data and empirical data.
[0138] Figure 8 is a schematic diagram showing the size of a domain at each location according to an embodiment of the present disclosure.
[0139] Fig. 9 The local differential privacy reporting data reported by the electronic device to the server according to an embodiment of the present disclosure is shown.
[0140] An electronic device that uses a local differential privacy algorithm to send user data to a server can periodically generate a report on the user data sent to the server and send the report to the server. A user of the electronic device can identify the report sent to the server through the electronic device.
[0141] Reference Figure 8 and Fig. 9 The report sent to the server may include: a first part 911, indicating the type of algorithm used for obfuscation and the type of data to be collected; a second part 912, including parameters indicating algorithm-related setting values; and a third part 913, including data to which the obfuscation algorithm is applied and sent to the server.
[0142] The "SequenceFragmentPuzzle" of the algorithm information included in the first part 911 may indicate an algorithm for segmenting a string (sequence) into fragments, and "CountMedianSketch" may indicate a sub-algorithm for applying a local differential privacy algorithm to the segmented string and counting the frequency. Therefore, the method for segmenting a string into fragments and the method for applying a local differential privacy algorithm to each fragment can be known based on the information included in the first part 911.
[0143] The key information "com.apple, keyboard, NewWords.en_US" of the first part 911 may indicate that new English words are collected from the keyboard application (app).
[0144] Among the parameters of the second part 912, "epsilon" is a value indicating a protection level, and a smaller value may indicate a higher protection level. "puzzleCount" may indicate the length of the data, "fragmentCount" may indicate the number of fragments of each string, "fragmentWidth" may indicate the length of each fragment, "fragmentK" and "sequenceK" may indicate the type of hash function, "fragmentM" may indicate the hash size of the segmented data, and may be a value related to the domain size of the segmented data, and "sequenceM" may indicate the hash size of the string data, and may be a value related to the domain size of the string data.
[0145] For example, when the reported string is assumed to be "California", based on fragmentCount=5 and fragmentWidth=2, the string can be segmented into 5 segmented data such as Ca / li / fo / rn / ia. Therefore, it can be seen that Fig. 9 This is the case where there is no partial overlap of segmented data.
[0146] Reference Fig. 9 ,Since fragmentM and sequenceM have the same value, both 1024, it can be seen that no different n-gram domain configuration is used for each position.
[0147] The third part 913 may include the segmented data to which the obfuscation algorithm is applied and sent to the server and the location information about the segmented data. Therefore, by collecting the location information about the massive data, it is possible to indirectly identify whether the segmented data of each location of the same proportion has been sent.
[0148] According to various embodiments of the present disclosure, a method for operating an electronic device (eg, Figure 2 The method of the electronic device 201) may include: obtaining data to be sent to a server, inserting a fingerprint into the data, dividing the data with the fingerprint inserted into a first size to generate a plurality of segmented data, so that data of a second size is copied between adjacent segmented data in the plurality of segmented data, selecting a segmented data from the plurality of segmented data according to a preset per-position selection probability for the plurality of segmented data, and sending a report generated by obfuscating the selected one segmented data to the server.
[0149] According to various embodiments of the present disclosure, the second size may be set to a value smaller than the first size.
[0150] According to an embodiment of the present disclosure, the report may include location information about a selected one segment data.
[0151] According to an embodiment of the present disclosure, a segmented data set may be predefined, the segmented data set including a predetermined number of data among the segmented data of the first size at each position as elements. The selected one segmented data may be included in the segmented data set.
[0152] According to an embodiment of the present disclosure, the per-position selection probability may be set based on the number of elements of the segmented data set for each position.
[0153] According to an embodiment of the present disclosure, when the data is smaller than the third size, inserting the fingerprint may be padding the data and inserting the fingerprint so that the size of the data is the third size, and when the data is larger than the third size, truncating the data and inserting the fingerprint so that the size of the data is the third size.
[0154] According to various embodiments of the present disclosure, an operation server (eg, Figure 3 The method of the server 300) may include: receiving a plurality of segmented data to which an obfuscation algorithm is applied from an electronic device, selecting segmented data having a frequency exceeding a predetermined value, wherein the frequency is estimated for each segmented data, restoring candidate data by splicing the selected segmented data based on copied data between the selected segmented data, and obtaining the restored candidate data as final data based on a data portion and a fingerprint portion included in the restored candidate data.
[0155] According to an embodiment of the present disclosure, the report may include location information about the segmented data.
[0156] According to an embodiment of the present disclosure, a segmented data set may be predefined, the segmented data set including a predetermined number of data in all combinations of per-position segmented data as elements. The per-position segmented data included in the report may be included in the segmented data set.
[0157] According to an embodiment of the present disclosure, the per-position frequency may be set based on the number of elements of the segmented data set for each position.
[0158] While the present disclosure has been shown and described with reference to various embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made without departing from the spirit and scope of the present disclosure as defined by the appended claims and their equivalents.
Claims
1. An electronic device, include: Communication circuits; as well as at least one processor functionally connected to the communication circuit, Wherein, the at least one processor is configured to: Get the data to be sent to the server, inserting a fingerprint into said data, dividing the fingerprint-inserted data into a first size to generate a plurality of segmented data, so that data of a second size is copied between adjacent segmented data in the plurality of segmented data, selecting one segment data from the plurality of segment data based on a preset per-position selection probability for the plurality of segment data, and A report generated by obfuscating the selected one segment data is transmitted to the server.
2. The electronic device according to claim 1, in, The second size is set to a value smaller than the first size.
3. The electronic device according to claim 1, in, The report includes location information about the selected one segment data.
4. The electronic device according to claim 1, in, predefine a segmented data set, the segmented data set including a predetermined number of data among all combinations of the first size of per-position segmented data as elements, and wherein the selected one segmented data is included in the segmented data set, The per-position selection probability is set based on the number of elements of the segmented data set at each position.
5. The electronic device according to claim 1, in, The processor: When the data is smaller than the third size, padding the data and inserting the fingerprint so that the size of the data is the third size; and When the data is larger than the third size, the data is truncated and the fingerprint is inserted so that the size of the data is the third size.
6. A server, include: Communication circuits; as well as at least one processor functionally connected to the communication circuit, Wherein, the at least one processor is configured to: receiving, through the communication circuit, from an electronic device a plurality of segmented data to which an obfuscation algorithm is applied and a report on the plurality of segmented data, selecting segmented data having a frequency exceeding a predetermined value, the frequency being estimated for each of the segmented data, restoring the candidate data by splicing the selected segmented data based on the duplicated data between the selected segmented data, and Based on the data portion and the fingerprint portion included in the restored candidate data, the restored candidate data is acquired as final data.
7. The server according to claim 6, in, The report includes location information about the segmented data.
8. The server according to claim 6, in, predefine a segmented data set including a predetermined number of data among all combinations of segmented data per position as elements, and wherein the per-position segmented data included in the report is included in the segmented data set, The frequency of the per-position segmented data is set based on the number of elements of the per-position segmented data.
9. A method for operating an electronic device, the method include: Get the data to be sent to the server; inserting a fingerprint into the data; Segmenting the fingerprint-inserted data into a first size to generate a plurality of segmented data such that data of a second size is copied between adjacent segmented data in the plurality of segmented data; Selecting one segmented data from the plurality of segmented data based on a preset per-position selection probability for the plurality of segmented data; as well as A report generated by obfuscating the selected one segment data is transmitted to the server.
10. The method according to claim 9, in, The second size is set to a value smaller than the first size, The report includes location information about the selected segment data.
11. The method according to claim 9, in, predefine a segmented data set, the segmented data set including a predetermined number of data among all combinations of the first size of per-position segmented data as elements, and wherein the selected one segmented data is included in the segmented data set, The per-position selection probability is set based on the number of elements of the segmented data set at each position.
12. The method according to claim 9, in, Inserting the fingerprint comprises: When the data is smaller than the third size, padding the data and inserting the fingerprint so that the size of the data is the third size; and When the data is larger than the third size, the data is truncated and the fingerprint is inserted so that the size of the data is the third size.
13. A method for operating a server, the method include: receiving, from an electronic device, a plurality of segmented data to which an obfuscation algorithm is applied and a report for the plurality of segmented data; selecting segmented data having a frequency exceeding a predetermined value, the frequency being estimated for each of the segmented data; Restoring candidate data by splicing the selected segmented data based on duplicate data between the selected segmented data; as well as Based on the data portion and the fingerprint portion included in the restored candidate data, the restored candidate data is acquired as final data.
14. The method according to claim 13, in, The report includes location information about the segmented data.
15. The method according to claim 13, in, predefine a segmented data set including a predetermined number of data among all combinations of segmented data per position as elements, and wherein the per-position segmented data included in the report is included in the segmented data set, wherein the frequency of the per-position segmented data is set based on the number of elements of the per-position segmented data, The two adjacent segment data include duplicate data having a preset size, and The first segment data and the last segment data include duplicate data larger than the preset size.
