A method and system for intelligent data acquisition and storage for educational robots
By dividing the target interval and binary coding according to the frequency of interaction data in the educational robot data, a binary mark coding sequence is formed, which solves the problem of low compression efficiency of arithmetic coding and achieves more efficient data storage and decompression effects.
Patent Information
- Application Number
- CN202311252244.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-26
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2043-09-26
AI Technical Summary
Existing arithmetic coding has limited compression efficiency in educational robot data compression storage, resulting in a large storage space occupied and unable to effectively reduce the storage space of interactive data.
By dividing the initial target interval according to the frequency of each type of data in the interactive data, the target interval and binary encoding of each data are obtained, forming a binary mark encoding sequence, and using fixed hash values for storage and decompression to ensure that the final target interval range is as wide as possible large, thereby improving compression efficiency.
It improves the data compression efficiency and reduces the storage space occupation, so that the compression efficiency of traditional arithmetic coding is not limited by the data frequency, achieving more efficient data storage.
Smart Images

Figure CN117294313B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data compression and storage, and in particular to a method and system for intelligently collecting and storing data of an educational robot. Background Art
[0002] Educational robots can be equipped with various sensors, such as microphones, touch sensors, etc., and the sensors can capture and record the interaction data between users and robots, including sound, touch interaction, expressions, etc. These interaction data are convenient for teachers, students, parents and other users to understand the learning and interaction situation more intuitively, and provide personalized feedback and suggestions based on the interaction data. Therefore, it is necessary to store the collected interaction data in the database so that users can query the interaction data at any time. However, due to the large amount of interaction data, the interaction data needs to be compressed and stored in the database to reduce the storage space occupied by the interaction data.
[0003] Arithmetic coding is a lossless data compression algorithm that divides the data into intervals based on the frequency of characters in the data. The data is compressed into a decimal in the final target interval by continuously iteratively dividing the initial target interval. The compression efficiency depends on the range of the final target interval obtained. Due to the limitation of data frequency, the compression efficiency of arithmetic coding is limited, resulting in a large amount of system storage space being occupied. Summary of the invention
[0004] The present invention provides an educational robot data intelligent collection and storage method and system to solve the existing problems.
[0005] The method and system for intelligently collecting and storing data of an educational robot of the present invention adopt the following technical solutions:
[0006] An embodiment of the present invention provides a method for intelligently collecting and storing data of an educational robot, the method comprising the following steps:
[0007] Collect interactive data of educational robots;
[0008] Treat the same data in the interaction data as one category, obtain the frequency of each category of data; obtain the initial target interval;
[0009] Obtaining a target interval and a binary code of the first data in the interactive data according to the frequency of each type of data and the initial target interval, including: dividing the initial target interval into subintervals according to the frequency of each type of data; obtaining the target interval of the first data according to the size of the subinterval corresponding to the first data in the interactive data; marking the first data according to the target interval of the first data to obtain the binary code of the first data;
[0010] According to the frequency of each type of data and the target interval of the first data, the target interval and binary code of the second data in the interactive data are obtained; and so on, the iteration is stopped until the target interval and binary code of the last data in the interactive data are obtained, and the target interval of the last data is taken as the final target interval; the binary codes corresponding to all the data in the interactive data are sequentially formed into a binary tag code sequence; compressed data is obtained according to the final target interval; a fixed hash value is obtained according to the interactive data;
[0011] Store compressed data, fixed hash values, and binary tag encoding sequences;
[0012] When the interactive data of the educational robot needs to be viewed, the compressed data is decompressed: a plurality of decompressed data are obtained according to the compressed data and the binary tag coding sequence; and final decompressed data are obtained according to the plurality of decompressed data and the fixed hash value.
[0013] Preferably, the step of obtaining the target interval of the first data according to the size of the subinterval corresponding to the first data in the interactive data comprises the following specific steps:
[0014] Get the size of the subinterval corresponding to the first data in the interaction data in the initial target interval. If the subinterval is the largest subinterval in the initial target interval, use the subinterval as the target interval for the first data. If the subinterval is not the largest subinterval in the initial target interval, use the union of all subintervals to the left of the subinterval as the target interval for the first data.
[0015] Preferably, the step of marking the first data according to the target interval of the first data to obtain the binary code of the first data includes the following specific steps:
[0016] When the target interval of the first data is the subinterval corresponding to the first data in the initial target interval, the first data is marked as 0; when the target interval of the first data is the union of all subintervals to the left of the subinterval corresponding to the first data in the initial target interval, the first data is marked as 1.
[0017] Preferably, the step of obtaining compressed data according to the final target interval includes the following specific steps:
[0018] The boundary with the largest number of decimal places among the two boundaries of the final target interval is obtained, the number of decimal places of the boundary is used as the target number of places, and the largest decimal number with the target number of decimal places is obtained in the final target interval as the compressed data.
[0019] Preferably, the step of obtaining a fixed hash value according to the interaction data includes the following specific steps:
[0020] A hash function is used to generate a corresponding hash value for the interaction data, which is recorded as a fixed hash value.
[0021] Preferably, the step of obtaining a plurality of decompressed data according to the compressed data and the binary mark coding sequence comprises the following specific steps:
[0022] According to the compressed data and the initial target interval, all first possible data and the first possible target interval are obtained; according to the compressed data and the first possible target interval, all second possible data and the second possible target interval are obtained, and so on, until the iteration is stopped when the Nth possible data and the Nth possible interval are obtained. The Nth possible interval must satisfy: the maximum number of decimal places in the two boundaries of the Nth possible interval is consistent with the number of decimal places of the compressed data; according to all the first possible data to the Nth possible data, multiple decompressed data are obtained.
[0023] Preferably, the step of acquiring all first possible data and first possible target intervals according to the compressed data and the initial target interval includes the following specific steps:
[0024] Get the subinterval of the initial target interval to which the compressed data belongs, recorded as the current subinterval. When the first code in the binary mark coding sequence is 0, the data corresponding to the current subinterval is taken as the first possible data in the interactive data, and the current subinterval is taken as the first possible target interval. When the first code in the binary mark coding sequence is 1, each data corresponding to all subintervals to the right of the current subinterval is taken as the first possible data in the interactive data, and the union of all subintervals to the left of the subinterval corresponding to each first possible data is taken as the first possible target interval corresponding to each first possible data.
[0025] Preferably, the step of obtaining a plurality of decompressed data according to all the first possible data to the Nth possible data includes the following specific steps:
[0026] Take each first possible data as the root node of each tree, take all the second possible data corresponding to each first possible data as the child nodes of the root node corresponding to each first possible data; take all the third possible data corresponding to each second possible data as the child nodes of the node corresponding to each second possible data; and so on, until all the Nth possible data corresponding to each N-1th possible data are taken as the child nodes of the node corresponding to each N-1th possible data, and then stop the iteration to obtain multiple trees; for each tree, obtain the data of all nodes on the path from the root node to any leaf node, and form a one-dimensional data sequence as a decompressed data;
[0027] Get all decompressed data.
[0028] Preferably, the step of obtaining the final decompressed data according to the multiple decompressed data and the fixed hash value includes the following specific steps:
[0029] A hash function is used to generate a corresponding hash value for any decompressed data, and the hash value of the decompressed data is compared with the fixed hash value. When the hash value of the decompressed data is consistent with the fixed hash value, the decompressed data is used as the final decompressed data.
[0030] The embodiment of the present invention provides an educational robot data intelligent collection and storage system, which includes the following modules:
[0031] Interaction data collection module, collecting interaction data of educational robots;
[0032] The compressed data acquisition module regards the same data in the interactive data as a category, obtains the frequency of each category of data; obtains the initial target interval; obtains the target interval and binary code of the first data in the interactive data according to the frequency of each category of data and the initial target interval, including: dividing the initial target interval into sub-intervals according to the frequency of each category of data; obtaining the target interval of the first data according to the size of the sub-interval corresponding to the first data in the interactive data; marking the first data according to the target interval of the first data, and obtaining the binary code of the first data; obtaining the target interval and binary code of the second data in the interactive data according to the frequency of each category of data and the target interval of the first data; and so on, until the target interval and binary code of the last data in the interactive data are obtained, the iteration is stopped, and the target interval of the last data is used as the final target interval; the binary codes corresponding to all the data in the interactive data are sequentially formed into a binary marking code sequence; compressed data is obtained according to the final target interval; a fixed hash value is obtained according to the interactive data;
[0033] A compressed data storage module for storing compressed data, fixed hash values, and binary tag coding sequences;
[0034] Compressed data decompression module: when the interactive data of the educational robot needs to be viewed, the compressed data is decompressed: a plurality of decompressed data are obtained according to the compressed data and the binary tag coding sequence; the final decompressed data is obtained according to the plurality of decompressed data and the fixed hash value.
[0035] The beneficial effect of the technical solution of the present invention is: when the present invention obtains the target interval of the next data after any data in the interactive data according to the characteristics of the sizes of each sub-interval on the target interval of the data, if the size of the sub-interval corresponding to the next data on the target interval of the data is not the largest, the union of all sub-interval sizes on the left side of the sub-interval corresponding to the next data on the target interval of the data is used as the target interval of the next data, so that the range of the target interval of each data obtained in sequence is as large as possible, thereby making the range of the final target interval as large as possible, and further making the number of decimal places obtained shorter and the compression efficiency higher, so that the compression efficiency of traditional arithmetic coding is not limited by the data frequency, and the compressed interactive data occupies less storage space of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 The present invention is a flowchart of the steps of a method for intelligently collecting and storing data of an educational robot. DETAILED DESCRIPTION
[0038] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the method and system for intelligent data collection and storage of educational robots proposed by the present invention, its specific implementation, structure, features and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0039] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0040] The specific scheme of the method and system for intelligent data collection and storage of educational robots provided by the present invention is described in detail below with reference to the accompanying drawings.
[0041] See also Figure 1 , which shows a flowchart of a method for intelligently collecting and storing educational robot data provided by an embodiment of the present invention, the method comprising the following steps:
[0042] S001. Collect interaction data.
[0043] It should be noted that by analyzing the interaction data between users and educational robots, we can understand the users' learning preferences, ability levels and learning progress. This information can be used for personalized education, providing customized learning content and teaching methods based on the users' needs and characteristics, so as to better meet the users' learning needs.
[0044] In an embodiment of the present invention, the educational robot is equipped with various sensors, such as microphones, touch sensors, etc., and records data related to the user and the robot, including sound, touch interaction, expression, etc., and records the recorded related data as interaction data.
[0045] At this point, the interaction data between the educational robot and the user has been obtained.
[0046] S002. Compress the interactive data.
[0047] It should be noted that, in the traditional arithmetic coding, an initial target interval [0,1] is given during the encoding process. According to the frequency of occurrence of each type of interaction data, the initial target interval is divided into multiple sub-intervals. Then, the first data in the interaction data is traversed, and the sub-interval corresponding to the data is selected as the new target interval. According to the frequency of occurrence of each type of interaction data, the new target interval is divided into multiple sub-intervals. Then, the next data in the interaction data is traversed. This process is repeated until all the data in the interaction data has been traversed and then stopped. A decimal is selected in the final target interval to complete the compression of the interaction data. In order to reduce the storage space occupied by the interaction data after compression and to make the number of decimal places shorter, the range of the final target interval needs to be made larger.
[0048] It should be further explained that the process of updating the target interval in the known traditional arithmetic coding is to traverse any data in the interactive data and record it as the current data. The sub-interval corresponding to the current data in the target interval of its previous data is the target interval of the current data and is used as the new target interval. Therefore, if the sub-interval corresponding to the current data in the target interval of its previous data is smaller, then the range of the final target interval obtained will be smaller. Therefore, the embodiment of the present invention proposes an improvement to the traditional arithmetic coding, so that the range of the target interval of each data in the interactive data is as large as possible, so that the range of the final target interval is larger, the obtained binary code is shorter, and the storage space occupied is smaller.
[0049] It should be further explained that, after dividing the target interval of any data in the interactive data according to the frequency of each type of data in the interactive data, various sub-intervals are obtained. The range of the sub-interval corresponding to the data type with a large frequency in the target interval of the data is larger, and the range of the sub-interval corresponding to the data type with a small frequency in the target interval of the data is smaller, and the sub-intervals are arranged in the target interval of the data from large to small according to the range of the sub-intervals. Therefore, the sub-interval corresponding to the target interval of the data, the sub-interval closer to the left is larger than the sub-interval on the right. Therefore, according to the characteristics of the arrangement order of each sub-interval in the target interval of the data, the target interval of the next data after the data in the interactive data is obtained, so that the target interval of the next data is as large as possible, and so on, so that the range of the target interval of the last data in the interactive data, that is, the final target interval, is large.
[0050] In the embodiment of the present invention, the process of compressing the interactive data and obtaining the binary code is as follows:
[0051] Count the types of different data in the interaction data, obtain the ratio of the number of times each type of data appears in the interaction data to the length of the interaction data, and use the ratio as the frequency of each type of data;
[0052] Set the initial target interval [0,1], divide the initial target interval into multiple sub-intervals according to the frequency of each type of data, and each type of data corresponds to a sub-interval;
[0053] For the first data in the interactive data, obtain the subinterval corresponding to the first data in the initial target interval. If the subinterval is the largest subinterval in the initial target interval, use the subinterval as the target interval for the first data, and use the binary code 0 to mark the first data; if the subinterval is not the largest subinterval in the initial target interval, use the union of all subintervals to the left of the subinterval as the target interval for the first data, and use the binary code 1 to mark the first data; it should be noted that the first data is marked with a binary code of 0, which means that the subinterval of the first data in the initial target interval is used as the target interval for the first data, and the union of all subintervals to the left of the subinterval of the first data in the initial target interval is used as the target interval for the first data, and the operation can reduce the amount of calculation and complexity of subsequent decoding;
[0054] Traverse the second data in the interaction data, obtain the subinterval corresponding to the second data in the target interval of the first data, if the subinterval is the largest subinterval in the target interval of the first data, then the subinterval is the target interval of the second data, and the second data is marked with binary code 0; if the subinterval is not the largest subinterval in the target interval of the first data, then the union of all subinterval ranges to the left of the subinterval in the target interval of the first data is used as the target interval of the second data, and the second data is marked with binary code 1, and so on, until the last data in the interaction data is traversed, then stop, obtain the target interval of the last data, record it as the final target interval, and sequentially form a binary mark coding sequence with the marks of all data in the interaction data.
[0055] It should be noted that in order to make the target interval of each data in the interactive data as large as possible, the target interval obtained may be the range union of the sub-intervals corresponding to multiple data. Therefore, there will be multiple decoding results in the subsequent decoding. In order to reduce the subsequent decoding results as much as possible, a larger decimal should be obtained in the final target interval. In this way, when decoding, the obtained decimal will be closer to the right side in each target interval, so that less possible data is obtained in each target interval, reducing the decoding results. Therefore, in an embodiment of the present invention, the boundary with the largest number of decimal places in the two boundaries of the final target interval is obtained, and the number of decimal places of the boundary is used as the target number of places. The decimal with the largest number of decimal places as the target number of places is obtained in the final target interval as compressed data. It should be further explained that, in the process of updating the target interval in sequence, in order to make the target interval of each data in the interactive data as large as possible, the selected target interval may be the union of the ranges of sub-intervals corresponding to multiple data, so there will be multiple decompressed data in the subsequent decoding process. Therefore, in order to subsequently obtain decompressed data consistent with the original interactive data from multiple decompressed data, in an embodiment of the present invention, a hash function is used to generate a corresponding hash value for the interactive data, which is recorded as a fixed hash value, so that the final decompressed data can be obtained according to the fixed hash value.
[0056] At this point, the compressed data, binary mark coding sequence and hash value of the interactive data are obtained. According to the arrangement characteristics of the sizes of each sub-interval on the target interval of any data in the interactive data, when obtaining the target interval of the next data after the data in the interactive data, the union of all sub-interval ranges on the left side of the sub-interval corresponding to the next data on the target interval of the data is used as the target interval of the next data, so that the range of the target interval of each data obtained in sequence is as large as possible, so that the range of the final target interval is as large as possible, and then the number of decimal places obtained is shorter, the compression efficiency is high, and the storage amount is reduced.
[0057] S003. Store the compressed data.
[0058] It should be noted that, in order to subsequently view the interaction information between the user and the educational robot, in an embodiment of the present invention, the obtained compressed data, binary mark coding sequence and fixed hash value are stored in a database.
[0059] S004. Decompress the compressed data to obtain a variety of decompressed data.
[0060] It should be noted that when it is necessary to view the interaction data between the user and the educational robot, the compressed data stored in the database needs to be decoded, so the compressed data is decoded according to the binary mark encoding.
[0061] In the embodiment of the present invention, the specific process of decompressing data is as follows:
[0062] Get the initial target interval [0,1], divide the initial target interval into multiple sub-intervals according to the frequency of each type of data, and each type of data corresponds to a sub-interval;
[0063] The subinterval of the initial target interval to which the compressed data belongs is obtained, recorded as the current subinterval. When the first code in the binary mark coding sequence is 0, the data corresponding to the current subinterval is used as the first possible data in the interactive data, and the current subinterval is used as the first possible target interval. When the first code in the binary mark coding sequence is 1, each data corresponding to all subintervals to the right of the current subinterval is used as the first possible data in the interactive data, and the union of all subintervals to the left of the subinterval corresponding to each first possible data is used as the first possible target interval. Multiple first possible data and the first possible target interval corresponding to each first possible data are obtained.
[0064] The first possible target interval is divided into sub-intervals according to the frequency of each type of data, and the sub-interval of the first possible target interval to which the compressed data belongs is obtained, recorded as the current sub-interval. When the second code in the binary mark coding sequence is 0, the data corresponding to the current sub-interval is used as the second possible data in the interactive data, and the current sub-interval is used as the second possible target interval; when the second code in the binary mark coding sequence is 1, each data corresponding to all sub-intervals on the right side of the current sub-interval is used as the second possible data in the interactive data, and the union of all sub-intervals on the left side of the sub-interval corresponding to each second possible data is used as the second possible target interval, and so on. The iteration is stopped when the Nth possible data and the Nth possible interval are obtained. At this time, the largest number of decimal places in the two boundaries of the Nth possible interval is consistent with the number of decimal places of the compressed data.
[0065] Take each first possible data as the root node of each tree, take all the second possible data corresponding to each first possible data as the child nodes of the root node corresponding to each first possible data; take all the third possible data corresponding to each second possible data as the child nodes of the node corresponding to each second possible data; and so on, until all the Nth possible data corresponding to each N-1th possible data are taken as the child nodes of the node corresponding to each N-1th possible data, and then stop the iteration to obtain multiple trees; for each tree, obtain the data of all nodes on the path from the root node to any leaf node to form a one-dimensional data sequence as a decompressed data. Similarly, obtain all the decompressed data. So far, according to the binary coding sequence, the compressed data is decompressed to obtain a variety of decompressed data.
[0066] S005. Obtain the final decompressed data.
[0067] It should be noted that only one of the multiple decompressed data obtained is the correct interactive data. Therefore, the final decompressed data is obtained based on the stored fixed hash value. In an embodiment of the present invention, a hash function is used to generate a corresponding hash value for any decompressed data, and the hash value of the decompressed data is compared with the fixed hash value. When the hash values are consistent, it means that the decompressed data is consistent with the interactive data, and the decompressed data is used as the final decompressed data.
[0068] At this point, the final decompressed data is obtained.
[0069] S006. Analyze each user's learning information based on the final decompressed data.
[0070] Based on the final decompressed data, we analyze the user's learning preferences, abilities, levels, learning progress and other information, and provide users with customized learning content and teaching methods based on this information to better meet their learning needs.
[0071] The embodiment of the present invention provides an educational robot data intelligent collection and storage system, which includes the following modules:
[0072] Interaction data collection module, collecting interaction data of educational robots;
[0073] The compressed data acquisition module regards the same data in the interactive data as a category, obtains the frequency of each category of data; obtains the initial target interval; obtains the target interval and binary code of the first data in the interactive data according to the frequency of each category of data and the initial target interval, including: dividing the initial target interval into sub-intervals according to the frequency of each category of data; obtaining the target interval of the first data according to the size of the sub-interval corresponding to the first data in the interactive data; marking the first data according to the target interval of the first data, and obtaining the binary code of the first data; obtaining the target interval and binary code of the second data in the interactive data according to the frequency of each category of data and the target interval of the first data; and so on, until the target interval and binary code of the last data in the interactive data are obtained, the iteration is stopped, and the target interval of the last data is used as the final target interval; the binary codes corresponding to all the data in the interactive data are sequentially formed into a binary marking code sequence; compressed data is obtained according to the final target interval; a fixed hash value is obtained according to the interactive data;
[0074] A compressed data storage module for storing compressed data, fixed hash values, and binary tag coding sequences;
[0075] Compressed data decompression module: when the interactive data of the educational robot needs to be viewed, the compressed data is decompressed: a plurality of decompressed data are obtained according to the compressed data and the binary tag coding sequence; the final decompressed data is obtained according to the plurality of decompressed data and the fixed hash value.
[0076] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for intelligent data collection and storage of educational robots, It is characterized in that The method comprises the following steps: Collect interactive data of educational robots; Treat the same data in the interaction data as one category, obtain the frequency of each category of data; obtain the initial target interval; Obtaining a target interval and a binary code of the first data in the interactive data according to the frequency of each type of data and the initial target interval, including: dividing the initial target interval into subintervals according to the frequency of each type of data; obtaining the target interval of the first data according to the size of the subinterval corresponding to the first data in the interactive data; marking the first data according to the target interval of the first data to obtain the binary code of the first data; According to the frequency of each type of data and the target interval of the first data, the target interval and binary code of the second data in the interactive data are obtained; and so on, the iteration is stopped until the target interval and binary code of the last data in the interactive data are obtained, and the target interval of the last data is taken as the final target interval; the binary codes corresponding to all the data in the interactive data are sequentially formed into a binary tag code sequence; compressed data is obtained according to the final target interval; a fixed hash value is obtained according to the interactive data; Store compressed data, fixed hash values, and binary tag encoding sequences; When the interactive data of the educational robot needs to be viewed, the compressed data is decompressed: a plurality of decompressed data are obtained according to the compressed data and the binary tag coding sequence; and final decompressed data are obtained according to the plurality of decompressed data and the fixed hash value.
2. According to the method for intelligently collecting and storing educational robot data as described in claim 1, It is characterized in that The specific steps of obtaining the target interval of the first data according to the size of the subinterval corresponding to the first data in the interactive data include the following: Get the size of the subinterval corresponding to the first data in the interaction data in the initial target interval. If the subinterval is the largest subinterval in the initial target interval, use the subinterval as the target interval for the first data. If the subinterval is not the largest subinterval in the initial target interval, use the union of all subintervals to the left of the subinterval as the target interval for the first data.
3. According to the method for intelligent data collection and storage of educational robots as described in claim 2, It is characterized in that The step of marking the first data according to the target interval of the first data and obtaining the binary code of the first data includes the following specific steps: When the target interval of the first data is the subinterval corresponding to the first data in the initial target interval, the first data is marked as 0; when the target interval of the first data is the union of all subintervals to the left of the subinterval corresponding to the first data in the initial target interval, the first data is marked as 1.
4. According to the method for intelligently collecting and storing educational robot data as described in claim 1, It is characterized in that The specific steps of obtaining compressed data according to the final target interval are as follows: The boundary with the largest number of decimal places among the two boundaries of the final target interval is obtained, the number of decimal places of the boundary is used as the target number of places, and the largest decimal number with the target number of decimal places is obtained in the final target interval as the compressed data.
5. According to the method for intelligently collecting and storing educational robot data as described in claim 1, It is characterized in that The specific steps of obtaining a fixed hash value according to the interaction data are as follows: A hash function is used to generate a corresponding hash value for the interaction data, which is recorded as a fixed hash value.
6. According to claim 1, a method for intelligently collecting and storing educational robot data, It is characterized in that The specific steps of obtaining a plurality of decompressed data according to the compressed data and the binary mark coding sequence are as follows: According to the compressed data and the initial target interval, all first possible data and the first possible target interval are obtained; according to the compressed data and the first possible target interval, all second possible data and the second possible target interval are obtained, and so on, until the iteration is stopped when the Nth possible data and the Nth possible interval are obtained. The Nth possible interval must satisfy: the maximum number of decimal places in the two boundaries of the Nth possible interval is consistent with the number of decimal places of the compressed data; according to all the first possible data to the Nth possible data, multiple decompressed data are obtained.
7. According to claim 6, a method for intelligently collecting and storing educational robot data, It is characterized in that The specific steps of obtaining all first possible data and first possible target intervals according to the compressed data and the initial target interval are as follows: Obtain a subinterval of the initial target interval to which the compressed data belongs, record it as the current subinterval, and when the first code in the binary mark code sequence is 0, take the data corresponding to the current subinterval as the first possible data in the interactive data, and take the current subinterval as the first possible target interval; When the first code in the binary mark coding sequence is 1, each data corresponding to all subintervals to the right of the current subinterval is taken as the first possible data in the interaction data, and the union of all subintervals to the left of the subinterval corresponding to each first possible data is taken as the first possible target interval corresponding to each first possible data.
8. According to claim 6, a method for intelligently collecting and storing educational robot data, It is characterized in that The specific steps of obtaining multiple decompressed data according to all the first possible data to the Nth possible data are as follows: Take each first possible data as the root node of each tree, take all the second possible data corresponding to each first possible data as the child nodes of the root node corresponding to each first possible data; take all the third possible data corresponding to each second possible data as the child nodes of the node corresponding to each second possible data; and so on, until all the Nth possible data corresponding to each N-1th possible data are taken as the child nodes of the node corresponding to each N-1th possible data, and then stop the iteration to obtain multiple trees; for each tree, obtain the data of all nodes on the path from the root node to any leaf node, and form a one-dimensional data sequence as a decompressed data; Get all decompressed data.
9. According to claim 1, a method for intelligently collecting and storing educational robot data, It is characterized in that The specific steps of obtaining the final decompressed data according to the multiple decompressed data and the fixed hash value are as follows: A hash function is used to generate a corresponding hash value for any decompressed data, and the hash value of the decompressed data is compared with the fixed hash value. When the hash value of the decompressed data is consistent with the fixed hash value, the decompressed data is used as the final decompressed data.
10. An educational robot data intelligent collection and storage system, It is characterized in that The system includes the following modules: Interaction data collection module, collecting interaction data of educational robots; The compressed data acquisition module treats the same data in the interactive data as one category and obtains the frequency of each category of data; Get the initial target interval; Obtaining a target interval and a binary code of the first data in the interactive data according to the frequency of each type of data and the initial target interval, including: dividing the initial target interval into subintervals according to the frequency of each type of data; obtaining the target interval of the first data according to the size of the subinterval corresponding to the first data in the interactive data; marking the first data according to the target interval of the first data to obtain the binary code of the first data; According to the frequency of each type of data and the target interval of the first data, the target interval and binary code of the second data in the interactive data are obtained; and so on, the iteration is stopped until the target interval and binary code of the last data in the interactive data are obtained, and the target interval of the last data is taken as the final target interval; the binary codes corresponding to all the data in the interactive data are sequentially formed into a binary tag code sequence; compressed data is obtained according to the final target interval; a fixed hash value is obtained according to the interactive data; A compressed data storage module for storing compressed data, fixed hash values, and binary tag coding sequences; Compressed data decompression module: when the interactive data of the educational robot needs to be viewed, the compressed data is decompressed: a plurality of decompressed data are obtained according to the compressed data and the binary tag coding sequence; the final decompressed data is obtained according to the plurality of decompressed data and the fixed hash value.
