Indoor positioning bionic interaction method and system based on Bluetooth technology
By collecting the temperature and cosine similarity of indoor objects to judge the sound signal, combined with the language model and word segmentation method, the recognition time is dynamically adjusted, which solves the problem of insufficient accuracy of indoor positioning and bionic interaction of Bluetooth technology, and achieves the accuracy of information transmission and retrieval content. Improved accuracy.
Patent Information
- Application Number
- CN202311120275.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-01
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2043-09-01
AI Technical Summary
The existing technology is not accurate enough for indoor positioning bionic interaction using Bluetooth technology, resulting in low accuracy and low efficiency of bionic interaction.
By collecting the actual surface temperature of indoor objects, the cosine similarity formula is used to determine the similarity of sound signals, and the transcribed text is generated based on the preset language model and word segmentation method, keywords are extracted, keyword weights are calculated, and the recognition time is dynamically adjusted. Achieve accurate identification and information transmission of target sound signals.
It improves the accuracy of information transmission and retrieval content, and avoids waste and loss of recognition time. The dynamic adjustment method saves operating load and improves recognition efficiency and accuracy.
Smart Images

Figure CN117171300B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to an indoor positioning bionic interaction method and system based on Bluetooth technology. Background Art
[0002] Bluetooth technology is a Bluetooth device that uses radio waves to connect to smart terminals. It contains a Bluetooth module and Bluetooth radio and software that supports the connection to achieve interactive retrieval of content. In addition, Bluetooth uses frequency hopping technology to divide the transmitted data into data packets, which are transmitted separately through designated Bluetooth channels. For smart terminals without built-in Bluetooth, Bluetooth adapters can be used to achieve communication connections with Bluetooth devices.
[0003] The patent document with publication number CN107596698A discloses a control system for an intelligent bionic robot dog, characterized in that the control system includes: a voice interaction module, which is used to extract the characteristic value of the corresponding sound emitted by the user through a predetermined extraction algorithm when the intelligent bionic robot dog enters the voice interaction mode; a dual-core processor module, which is connected to the voice interaction module and is used to control the processing and transmission of data; an APP control module, which is used to receive different operations of the user to enter the corresponding APP interaction mode; a Bluetooth module, which is connected to the APP control module and the dual-core processor module, and is used for communication between the intelligent bionic robot dog and the APP control module; an infrared vision module, which is connected to the dual-core processor module, and is used to sense when the intelligent bionic robot dog is in motion. whether there is an obstacle ahead; a posture detection module, connected to the dual-core processor module, for 360-degree all-round detection of the posture of the intelligent bionic robot dog, and making different reactions according to the current posture; a touch detection module, connected to the dual-core processor module, for detecting the user's touch on the intelligent bionic robot dog; an audio output module, connected to the dual-core processor module, for emitting the barking of a real dog, and when the intelligent bionic robot dog is in music playback mode, playing high-quality music or stories; an eye display module, connected to the dual-core processor module, for displaying different dynamic expressions according to the emotional changes of the intelligent bionic dog, and displaying different prompt icons when entering different modes; a motion control module, connected to the dual-core processor module, for controlling the intelligent bionic robot dog to perform corresponding actions.
[0004] However, the existing technology for indoor positioning bionic interaction of Bluetooth technology still has limitations, resulting in insufficient accuracy of bionic interaction. Summary of the invention
[0005] To this end, the present invention provides an indoor positioning bionic interaction method and system based on Bluetooth technology, which can solve the technical problem of insufficient accuracy of bionic interaction.
[0006] To achieve the above object, the present invention provides an indoor positioning bionic interaction method based on Bluetooth technology, the method comprising:
[0007] Collecting the actual surface temperature of the indoor object, and comparing the actual surface temperature with a preset human body surface temperature interval, and collecting a sound signal if the actual surface temperature belongs to the human body surface temperature interval;
[0008] Calculating an actual similarity value between the sound signal and a preset standard sound signal by using a cosine similarity formula, and comparing the actual similarity value with a preset standard similarity value, determining it as a target sound signal if the actual similarity value is greater than or equal to the standard similarity value, sending a connectable broadcast message according to the target sound signal, and obtaining a Bluetooth address of a device receiving the target sound signal by using the connectable broadcast message, and determining it as a target transmission address if the Bluetooth address belongs to a pre-stored Bluetooth address;
[0009] Generate a transcribed text of the target sound signal according to a preset language model, extract keywords from the transcribed text according to a word segmentation method to determine the transmitted search content,
[0010] Establishing a connection according to the connectable broadcast message, and receiving the search content after the connection is established;
[0011] The method of extracting keywords from the transcribed text according to the word segmentation method to determine the transmitted search content includes:
[0012] Acquiring the actual duration of the target sound signal according to the time domain diagram of the target sound signal, and comparing the actual duration of each target sound signal with a preset standard duration to obtain a comparison result;
[0013] According to the comparison result, the standard recognition time is adjusted to recognize the target sound signal, and the recognized target sound signal is converted into a transcribed text according to a preset language model, and the actual number of words in the transcribed text is counted;
[0014] Extracting keywords from the transcribed text according to a word segmentation method;
[0015] The actual weight of the keyword is calculated according to the keyword weight formula, the target keyword is determined according to the actual weight distribution of the keyword, and a search is performed according to the target keyword to generate search content and transmit the search content.
[0016] Further, comparing the actual duration L of each target sound signal with the preset standard duration L0 to obtain a comparison result includes: if L∈L0, the actual duration of the target sound signal meets the preset standard duration; if If the actual length of the target sound signal does not meet the preset standard duration, the actual duration difference ΔL of the target sound signal is calculated and the preset recognition duration is adjusted according to the difference, where L0(Lmin, Lmax);
[0017] like When the actual duration difference of the target sound signal is calculated, the standard transmission speed is reversely adjusted according to the first recognition duration adjustment coefficient α1, the second recognition duration adjustment coefficient α2 or the third recognition duration adjustment coefficient α3 determined according to the relationship between the actual duration difference ΔL of the target sound signal and the preset standard duration difference ΔL1 of the first target sound signal and the standard duration difference ΔL2 of the second target sound signal;
[0018] Furthermore, the standard transmission speed is positively adjusted according to the fourth identification time adjustment coefficient α1', the fifth identification time adjustment coefficient α2' or the sixth identification time adjustment coefficient α3' determined according to the relationship between the actual time difference of the target sound signal and the preset actual time difference ΔL1 of the third target sound signal and the actual time difference ΔL2' of the fourth target sound signal.
[0019] Further, when the standard transmission speed is reversely adjusted according to the first recognition time adjustment coefficient α1, the second recognition time adjustment coefficient α2 or the third recognition time adjustment coefficient α3 determined according to the relationship between the actual time difference ΔL of the target sound signal and the preset standard time difference ΔL1 of the first target sound signal and the standard time difference ΔL2 of the second target sound signal,
[0020] Set a standard time difference ΔL1 of the first target sound signal and a standard time difference ΔL2 of the second target sound signal,
[0021] When L>Lmax, calculate the actual duration difference ΔL of the target sound signal, where ΔL=L-Lmax;
[0022] When ΔL<ΔL1, the first recognition time adjustment coefficient α1 is selected to adjust the preset recognition time to T1=T0(1+α1), where α1=log e [(ΔL1-ΔL) / ΔL1];
[0023] When ΔL1≤ΔL≤ΔL2, the second recognition time adjustment coefficient α2 is selected to adjust the preset recognition time to T2=T0(1+α2), where α2=log e [ΔL / (ΔL1+ΔL2)];
[0024] When ΔL>ΔL2, the third recognition time adjustment coefficient a3 is selected to adjust the preset recognition time to T3=TO(1+a3), where a3=loge [(ΔL-ΔL2) / ΔL].
[0025] Further, when the standard transmission speed is positively adjusted according to the fourth recognition time adjustment coefficient α1', the fifth recognition time adjustment coefficient α2' or the sixth recognition time adjustment coefficient α3' determined based on the relationship between the actual time difference of the target sound signal and the preset actual time difference ΔL1 of the third target sound signal and the actual time difference ΔL2' of the fourth target sound signal,
[0026] When L<Lmin, the actual duration difference ΔL' of the target sound signal is calculated, where ΔL'=Lmin-L;
[0027] When ΔL'<ΔL1, the fourth recognition time adjustment coefficient α1' is selected to adjust the preset recognition time to T1=TO(1-α1'), where α1'=log e [(ΔL1-ΔL') / ΔL1];
[0028] When ΔL1≤ΔL'≤ΔL2, the fifth recognition time adjustment coefficient α2' is selected to adjust the preset recognition time to T1=T0(1-α2'), where α2'log e [ΔL' / (ΔL1+ΔL2)];
[0029] When ΔL'>ΔL2, the sixth recognition time adjustment coefficient c3' is selected to adjust the preset recognition time to T1=TO(1-α3'), where α3'=log e [(ΔL1-ΔL') / ΔL1].
[0030] Furthermore, the actual weight of the keyword is calculated according to the keyword weight formula, and the target keyword is determined according to the actual weight distribution of the keyword, including:
[0031] When the actual weight of the keyword is calculated according to the keyword weight formula, the keyword weight calculation formula is: S = a × b × In (N0 / N),
[0032] Among them, S represents the weight of any keyword, a represents the keyword part-of-speech coefficient, b represents the keyword transcription coefficient, NO represents the number of times the keyword is repeated in the written text, and N represents the total number of keywords in the written text.
[0033] Furthermore, when determining the target keywords based on the actual weight distribution of the keywords,
[0034] If the actual weight distribution of keywords is the same, the keywords are synonymously merged, and the weights of the merged keywords are calculated, and the target keywords are determined based on the calculated results;
[0035] If the actual weight distributions of keywords are not the same, the keywords are arranged from large to small according to their actual weights to form a keyword sequence and the first 2 / 3 of the keyword sequence are intercepted to determine the target keyword.
[0036] Furthermore, the method further includes receiving feedback from the intelligent terminal on the search content after transmitting the search content, evaluating the actual accuracy of the search content according to the feedback, and determining whether to perform an extended search and obtain the extended search content according to the actual accuracy;
[0037] The accuracy of the search content is scored according to the scoring range, and the accuracy scores of each smart terminal are averaged. If the average accuracy of the search content is less than the standard accuracy of the search content, the keywords are semantically expanded according to their parts of speech to obtain extended words corresponding to the keywords, and extended search is performed based on the extended words.
[0038] Furthermore, when generating a transcribed text from the recognized target sound signal according to a preset language model, the target sound signal is input into a pre-trained language model, and the language model outputs text according to the target sound signal as the transcribed text, wherein the language model is pre-trained based on a number of target sound signals and the transcribed texts corresponding to the target sound signals as labels.
[0039] Furthermore, when collecting the target sound signals of the users of each of the smart terminals, if the time interval of the target sound signals exceeds a preset time interval, the collection of the target sound signals of each of the smart terminals is stopped.
[0040] On the other hand, the embodiment of the present invention also provides a system for an indoor positioning bionic interaction method based on Bluetooth technology, including:
[0041] A collection module, used to collect the actual surface temperature of indoor objects, and compare the actual surface temperature with a preset human body surface temperature interval, and collect a sound signal if the actual surface temperature belongs to the human body surface temperature interval;
[0042] A judgment module, using a cosine similarity formula to calculate an actual similarity value between the sound signal and a preset standard sound signal, and comparing the actual similarity value with a preset standard similarity value, if the actual similarity value is greater than or equal to the standard similarity value, it is judged to be a target sound signal, and a connectable broadcast message is sent according to the target sound signal to obtain a Bluetooth address of a device receiving the target sound signal by using the connectable broadcast message, and if the Bluetooth address belongs to a pre-stored Bluetooth address, it is determined to be a target transmission address;
[0043] A determination module generates a transcribed text of the target sound signal according to a preset language model, extracts keywords from the transcribed text according to a word segmentation method to determine the transmitted search content,
[0044] A receiving module, establishing a connection according to the connectable broadcast message, and receiving the search content after the connection is established;
[0045] The determination module includes a comparison unit, a recognition unit, an extraction unit, and an analysis unit.
[0046] The comparison unit is used to obtain the actual duration of the target sound signal according to the time domain diagram of the target sound signal, and compare the actual duration of each target sound signal with a preset standard duration to obtain a comparison result;
[0047] The recognition unit and the comparison unit are connected to adjust the standard recognition time according to the comparison result to recognize the target sound signal, and generate a transcribed text from the recognized target sound signal according to a preset language model and count the actual number of words in the transcribed text;
[0048] The extraction unit is connected to the recognition unit and is used to extract keywords from the transcribed text according to a word segmentation method;
[0049] The analysis unit is connected to the extraction unit, and is used to calculate the actual weight of the keyword according to the keyword weight formula, determine the target keyword according to the actual weight distribution of the keyword, perform a search based on the target keyword to generate search content and transmit the search content.
[0050] Compared with the prior art, the beneficial effect of the present invention lies in that, by comparing the actual surface temperature with the preset human body surface temperature range, the judgment on whether to collect the sound signal is realized, the cosine similarity formula calculates the actual similarity value between the sound signal and the preset standard sound signal and compares the actual similarity value with the preset standard similarity value, so as to realize the purpose of determining the target sound signal, and sends a connectable broadcast message according to the target sound signal, so as to realize the use of the connectable broadcast message to obtain the Bluetooth address of the device receiving the target sound signal, and if the Bluetooth address belongs to the pre-stored Bluetooth address, it is determined to be the target transmission address, thereby ensuring the accuracy of information transmission; by identifying each of the target sound signals and determining the transcribed text, the determination of the target keyword is realized, and the purpose of retrieving content according to the target keyword is realized; by receiving the feedback of the search content, the content is retrieved, and the actual accuracy of the search content is evaluated, and timely extended search is performed according to the evaluation result, so as to realize the extended superposition of the search content; by extracting the keywords, the determination of the target keywords is realized, and the purpose of retrieving and generating related content according to the target keywords is improved.
[0051] In particular, by calculating the difference in actual duration of the target sound signal and choosing to increase or decrease the preset recognition duration according to the difference, dynamic adjustment of the preset recognition duration is achieved, avoiding the waste of computing power due to the actual duration of the target sound signal being too short, and avoiding the lack of recognition due to the actual duration of the target sound signal being too long. The dynamic adjustment method saves operating load and improves recognition efficiency.
[0052] In particular, the keyword weight calculation formula is used to accurately calculate the weight of each keyword, and the actual weights of the keywords are sorted in descending order according to the actual weight distribution of the keywords, thereby improving the accuracy of obtaining the target keywords.
[0053] In particular, the actual accuracy of the search content is evaluated based on the feedback search content, which implements keyword expansion search and transmits the search content after the search, thereby improving the accuracy of the search content acquisition. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 A schematic diagram of the process of an indoor positioning bionic interaction method based on Bluetooth technology provided by an embodiment of the present invention;
[0055] Figure 2 A schematic diagram of the flow of another indoor positioning bionic interaction method based on Bluetooth technology provided by an embodiment of the present invention;
[0056] Figure 3 A schematic diagram of the structure of an indoor positioning bionic interaction system based on Bluetooth technology provided by an embodiment of the present invention;
[0057] Figure 4 A schematic diagram of the structure of an analysis module of an indoor positioning bionic interaction system based on Bluetooth technology provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0058] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0059] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.
[0060] It should be noted that the terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or apparatus.
[0061] See also Figure 1-2 As shown, a flow chart of an indoor positioning bionic interaction method based on Bluetooth technology provided by an embodiment of the invention, the method comprises:
[0062] Step S100: collecting the actual surface temperature of the indoor object, and comparing the actual surface temperature with a preset human body surface temperature interval, and collecting a sound signal if the actual surface temperature belongs to the human body surface temperature interval;
[0063] Step S200: using a cosine similarity formula to calculate an actual similarity value between the sound signal and a preset standard sound signal, and comparing the actual similarity value with a preset standard similarity value, if the actual similarity value is greater than or equal to the standard similarity value, it is determined to be a target sound signal, and a connectable broadcast message is sent according to the target sound signal to obtain a Bluetooth address of a device receiving the target sound signal by using the connectable broadcast message, and if the Bluetooth address belongs to a pre-stored Bluetooth address, it is determined to be a target transmission address;
[0064] Step S300: Generate a transcribed text of the target sound signal according to a preset language model, extract keywords from the transcribed text according to a word segmentation method to determine the transmitted search content,
[0065] Step S400: establishing a connection according to the connectable broadcast message, and receiving the search content after the connection is established;
[0066] In step S300, extracting keywords from the transcribed text according to a word segmentation method to determine the transmitted search content includes:
[0067] Acquiring the actual duration of the target sound signal according to the time domain diagram of the target sound signal, and comparing the actual duration of each target sound signal with a preset standard duration to obtain a comparison result;
[0068] According to the comparison result, the standard recognition time is adjusted to recognize the target sound signal, and the recognized target sound signal is converted into a transcribed text according to a preset language model, and the actual number of words in the transcribed text is counted;
[0069] Extracting keywords from the transcribed text according to a word segmentation method;
[0070] The actual weight of the keyword is calculated according to the keyword weight formula, the target keyword is determined according to the actual weight distribution of the keyword, and a search is performed according to the target keyword to generate search content and transmit the search content.
[0071] Specifically, those skilled in the art can set the human body surface temperature interval to [35,40], with the dimension of Celsius. The use background of the present invention is private scenes such as home. Since scenes where people and objects such as sofas, coffee tables and televisions often coexist in private scenes, the actual surface temperature of movable obstacles in the room is collected by infrared sensing sensors and compared with the preset human body surface temperature interval, thereby capturing the human body and determining the interactive object in time. After determining the interactive object, a connectable broadcast message is sent, thereby achieving the purpose of maintaining a Bluetooth connection between the robot and the smart terminal, so as to facilitate the transmission of retrieved content.
[0072] Specifically, the present invention determines the similarity value by cosine similarity. According to the value range of cosine similarity [-1, 1], the closer the value is to 1, the more similar the two vectors are, and the closer the value is to -1, the less similar the two vectors are. Implementation of sound similarity recognition algorithm Implementation of sound similarity recognition algorithm can be divided into the following steps: converting the target sound signal into a vector form, using discrete Fourier transform to convert the target sound signal into a frequency domain signal, and then converting the frequency domain signal into a vector form, or using wavelet transform to convert the target sound signal into a wavelet domain signal, and then converting the wavelet domain signal into a vector form, and calculating the cosine similarity between the two vectors. The dot function and norm function in the numpy library can be used to calculate the dot product and modulus of the two vectors, and then the cosine similarity formula is used to calculate the cosine similarity. This is a prior art and will not be repeated here.
[0073] Specifically, those skilled in the art may set the preset standard similarity value to [0.8, 0.9].
[0074] Specifically, in an embodiment of the present invention, by comparing the actual surface temperature with a preset human body surface temperature range, a judgment on whether to collect a sound signal is achieved, the cosine similarity formula calculates the actual similarity value between the sound signal and the preset standard sound signal and compares the actual similarity value with the preset standard similarity value, thereby achieving the purpose of determining the target sound signal, and sending a connectable broadcast message according to the target sound signal, thereby achieving the use of the connectable broadcast message to obtain the Bluetooth address of the device receiving the target sound signal, and if the Bluetooth address belongs to a pre-stored Bluetooth address, it is determined to be the target transmission address, thereby ensuring the accuracy of information transmission; by identifying each of the target sound signals and determining the transcribed text, the target keyword is determined, and the purpose of retrieving content according to the target keyword is achieved; by receiving feedback from the search content to retrieve the content, the actual accuracy of the search content is evaluated, and timely extended retrieval is performed according to the evaluation results, thereby achieving extended superposition of the search content; by extracting keywords, the determination of the target keyword is achieved, thereby improving the purpose of retrieving and generating related content according to the target keyword.
[0075] Specifically, the actual duration L of each target sound signal is compared with the preset standard duration L0 to obtain a comparison result, including: if L∈L0, the actual length of the target sound signal meets the preset standard duration; if If the actual length of the target sound signal does not meet the preset standard duration, the actual duration difference ΔL of the target sound signal is calculated and the preset recognition duration is adjusted according to the difference, where L0(Lmin, Lmax);
[0076] like When the actual duration difference of the target sound signal is calculated, the standard transmission speed is reversely adjusted according to the first recognition duration adjustment coefficient α1, the second recognition duration adjustment coefficient α2 or the third recognition duration adjustment coefficient α3 determined according to the relationship between the actual duration difference ΔL of the target sound signal and the preset standard duration difference ΔL1 of the first target sound signal and the standard duration difference ΔL2 of the second target sound signal;
[0077] Furthermore, the standard transmission speed is positively adjusted according to the fourth identification time adjustment coefficient α1', the fifth identification time adjustment coefficient α2' or the sixth identification time adjustment coefficient α3' determined according to the relationship between the actual time difference of the target sound signal and the preset actual time difference ΔL1 of the third target sound signal and the actual time difference ΔL2' of the fourth target sound signal.
[0078] Specifically, those skilled in the art may set the preset standard length L0 (Lmin, Lmax) of the target sound signal to L0 (10, 15), with the dimension being seconds.
[0079] Specifically, in an embodiment of the present invention, by calculating the difference in actual duration of the target sound signal and choosing to increase or decrease the preset recognition duration according to the difference, dynamic adjustment of the preset recognition duration is achieved, thereby avoiding the waste of computing power due to the actual duration of the target sound signal being too short, and avoiding the lack of recognition due to the actual duration of the target sound signal being too long. The dynamic adjustment method saves operating load and improves recognition efficiency.
[0080] Specifically, when the standard transmission speed is reversely adjusted according to the first recognition time adjustment coefficient α1, the second recognition time adjustment coefficient α2 or the third recognition time adjustment coefficient a3 determined according to the relationship between the actual time difference ΔL of the target sound signal and the preset standard time difference ΔL1 of the first target sound signal and the standard time difference ΔL2 of the second target sound signal,
[0081] Set a standard time difference ΔL1 of the first target sound signal and a standard time difference ΔL2 of the second target sound signal,
[0082] When L>Lmax, calculate the actual duration difference ΔL of the target sound signal, where ΔL=L-Lmax;
[0083] When ΔL<ΔL1, the first recognition time adjustment coefficient α1 is selected to adjust the preset recognition time to T1=TO(1+α1), where α1=log e [(ΔL1-ΔL) / ΔL1];
[0084] When ΔL1≤ΔL≤ΔL2, the second recognition time adjustment coefficient α2 is selected to adjust the preset recognition time to T2=T0(1+a2), where c2=log e [ΔL / (ΔL1+ΔL2)];
[0085] When ΔL>ΔL2, the third recognition time adjustment coefficient a3 is selected to adjust the preset recognition time to T3=T0(1+α3), where a3=log e [(ΔL-ΔL2) / ΔL].
[0086] Specifically, a person skilled in the art may set the standard time difference ΔL1 of the first target sound signal within the range of (0, 3], with the dimension of seconds, and a person skilled in the art may set the standard time difference ΔL2 of the second target sound signal within the range of (3, 5], with the dimension of seconds.
[0087] Specifically, when the standard transmission speed is positively adjusted according to the fourth recognition time adjustment coefficient α1', the fifth recognition time adjustment coefficient α2' or the sixth recognition time adjustment coefficient α3' determined according to the relationship between the actual time difference of the target sound signal and the preset actual time difference ΔL1 of the third target sound signal and the actual time difference ΔL2' of the fourth target sound signal,
[0088] When L<Lmin, the actual duration difference ΔL' of the target sound signal is calculated, where ΔL'=Lmin-L;
[0089] When ΔL'<ΔL1, the fourth recognition time adjustment coefficient α1' is selected to adjust the preset recognition time to T1=TO(1-α1'), where α1'=log e [(ΔL1-ΔL') / ΔL1];
[0090] When ΔL1≤ΔL'≤ΔL2, the fifth recognition time adjustment coefficient α2' is selected to adjust the preset recognition time to T1=TO(1-α2'), where α2'log e [ΔL' / (ΔL1+ΔL2)];
[0091] When ΔL'>ΔL2, the sixth recognition time adjustment coefficient α3' is selected to adjust the preset recognition time to T1=T0(1-α3'), where α3'=log e [(ΔL1-ΔL') / ΔL1].
[0092] Specifically, the actual weight of the keyword is calculated according to the keyword weight formula, and the target keywords are determined according to the actual weight distribution of the keyword, including:
[0093] When the actual weight of the keyword is calculated according to the keyword weight formula, the keyword weight calculation formula is: S = a × b × ln (N0 / N),
[0094] Among them, S represents the weight of any keyword, a represents the keyword part-of-speech coefficient, b represents the keyword transcription coefficient, NO represents the number of times the keyword is repeated in the written text, and N represents the total number of keywords in the written text.
[0095] Specifically, the keyword part-of-speech coefficient is the search content entropy value of the number of times each part of speech appears in the transcribed text, and the keyword transcription coefficient is the search content entropy value of the number of times the keyword appears in the historical extraction process. For example, in the discrete case, the probability P of the number of times each part of speech appears in the transcribed text is counted, and the definition of entropy - log 2p obtains the keyword part-of-speech coefficient, and performs probability P statistics on the number of times the keyword appears in the historical extraction process, through the definition of entropy - log 2 p obtains the keyword transcription coefficient.
[0096] Specifically, when determining the target keywords based on the actual weight distribution of keywords,
[0097] If the actual weight distribution of keywords is the same, the keywords are synonymously merged, and the weights of the merged keywords are calculated, and the target keywords are determined based on the calculated results;
[0098] If the actual weight distributions of keywords are not the same, the keywords are arranged from large to small according to their actual weights to form a keyword sequence and the first 2 / 3 of the keyword sequence are intercepted to determine the target keyword.
[0099] Specifically, in the embodiment of the present invention, the keyword weight calculation formula is used to accurately calculate the weight of each keyword, and the actual weights of the keywords are sorted in descending order according to the actual weight distribution of the keywords, thereby improving the accuracy of obtaining the target keywords.
[0100] Specifically, it also includes receiving feedback from the intelligent terminal on the search content after transmitting the search content, evaluating the actual accuracy of the search content according to the feedback, and determining whether to perform an extended search and obtain the extended search content according to the actual accuracy;
[0101] The accuracy of the search content is scored according to the scoring range, and the accuracy scores of each smart terminal are averaged. If the average accuracy of the search content is less than the standard accuracy of the search content, the keywords are semantically expanded according to their parts of speech to obtain extended words corresponding to the keywords, and extended search is performed based on the extended words.
[0102] Specifically, the scoring interval is [0, 10], and the accuracy of the retrieval content standard can be set in the range of [6, 8].
[0103] Specifically, in the embodiment of the present invention, the actual accuracy of the search content is evaluated according to the feedback search content, so that the keyword expansion search is realized and the search content after the search is transmitted, thereby improving the accuracy of the search content acquisition.
[0104] Specifically, when generating a transcribed text from the recognized target sound signal according to a preset language model, the target sound signal is input into a pre-trained language model, and the language model outputs text according to the target sound signal as the transcribed text, wherein the language model is pre-trained based on several target sound signals and the transcribed texts corresponding to the several target sound signals as labels.
[0105] Specifically, when collecting the target sound signals of the users of each of the smart terminals, if the time interval of the target sound signals exceeds the preset time interval, the collection of the target sound signals of each of the smart terminals is stopped.
[0106] Specifically, the preset time interval can be set within the range of [5, 10].
[0107] See also Figure 3-4 As shown, a schematic diagram of the structure of an indoor positioning bionic interaction system based on Bluetooth technology provided by an embodiment of the present invention includes:
[0108] A collection module, used to collect the actual surface temperature of indoor objects, and compare the actual surface temperature with a preset human body surface temperature interval, and collect a sound signal if the actual surface temperature belongs to the human body surface temperature interval;
[0109] A judgment module, using a cosine similarity formula to calculate an actual similarity value between the sound signal and a preset standard sound signal, and comparing the actual similarity value with a preset standard similarity value, if the actual similarity value is greater than or equal to the standard similarity value, it is judged to be a target sound signal, and a connectable broadcast message is sent according to the target sound signal to obtain a Bluetooth address of a device receiving the target sound signal by using the connectable broadcast message, and if the Bluetooth address belongs to a pre-stored Bluetooth address, it is determined to be a target transmission address;
[0110] A determination module generates a transcribed text of the target sound signal according to a preset language model, extracts keywords from the transcribed text according to a word segmentation method to determine the transmitted search content,
[0111] A receiving module, establishing a connection according to the connectable broadcast message, and receiving the search content after the connection is established;
[0112] The determination module includes a comparison unit, a recognition unit, an extraction unit, and an analysis unit.
[0113] The comparison unit is used to obtain the actual duration of the target sound signal according to the time domain diagram of the target sound signal, and compare the actual duration of each target sound signal with a preset standard duration to obtain a comparison result;
[0114] The recognition unit and the comparison unit are connected to adjust the standard recognition time according to the comparison result to recognize the target sound signal, and generate a transcribed text from the recognized target sound signal according to a preset language model and count the actual number of words in the transcribed text;
[0115] The extraction unit is connected to the recognition unit and is used to extract keywords from the transcribed text according to a word segmentation method;
[0116] The analysis unit is connected to the extraction unit, and is used to calculate the actual weight of the keyword according to the keyword weight formula, determine the target keyword according to the actual weight distribution of the keyword, perform a search based on the target keyword to generate search content and transmit the search content.
[0117] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.
[0118] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for indoor positioning bionic interaction based on Bluetooth technology, characterized in that: include: Collecting the actual surface temperature of the indoor object, and comparing the actual surface temperature with a preset human body surface temperature interval, and collecting a sound signal if the actual surface temperature belongs to the human body surface temperature interval; Calculating an actual similarity value between the sound signal and a preset standard sound signal by using a cosine similarity formula, and comparing the actual similarity value with a preset standard similarity value, if the actual similarity value is greater than or equal to the preset standard similarity value, determining it to be a target sound signal, sending a connectable broadcast message according to the target sound signal, so as to obtain a Bluetooth address of a device receiving the target sound signal by using the connectable broadcast message, and determining it to be a target transmission address if the Bluetooth address belongs to a pre-stored Bluetooth address; Generate a transcribed text of the target sound signal according to a preset language model, extract keywords from the transcribed text according to a word segmentation method to determine the transmitted search content, Establishing a connection according to the connectable broadcast message, and receiving the search content after the connection is established; The method of extracting keywords from the transcribed text according to the word segmentation method to determine the transmitted search content includes: Acquiring the actual duration of the target sound signal according to the time domain diagram of the target sound signal, and comparing the actual duration of each target sound signal with a preset standard duration to obtain a comparison result; According to the comparison result, the standard recognition time is adjusted to recognize the target sound signal, and the recognized target sound signal is converted into a transcribed text according to a preset language model, and the actual number of words in the transcribed text is counted; Extracting keywords from the transcribed text according to a word segmentation method; Calculating the actual weight of the keyword according to the keyword weight formula, determining the target keyword according to the actual weight distribution of the keyword, searching according to the target keyword to generate search content and transmitting the search content; Comparing the actual duration L of each target sound signal with the preset standard duration L0 to obtain a comparison result includes: if L∈L0, the actual duration of the target sound signal meets the preset standard duration; if L L0 if the actual length of the target sound signal does not meet the preset standard duration, then the actual duration difference △L of the target sound signal is calculated and the standard recognition duration is adjusted according to the difference, where L0 (Lmax, Lmin); If L L0, the actual duration difference of the target sound signal is calculated and the first recognition duration adjustment coefficient α1, the second recognition duration adjustment coefficient α2 or the third recognition duration adjustment coefficient α3 determined according to the relationship between the actual duration difference △L of the target sound signal and the preset actual duration difference △L1 of the first target sound signal and the actual duration difference △L2 of the second target sound signal are used to reversely adjust the standard transmission speed; And, the standard transmission speed is positively adjusted according to the fourth recognition time adjustment coefficient α1', the fifth recognition time adjustment coefficient α2' or the sixth recognition time adjustment coefficient α3' determined according to the relationship between the actual time difference of the target sound signal and the preset actual time difference △L1' of the third target sound signal and the actual time difference △L2' of the fourth target sound signal; When the standard transmission speed is reversely adjusted according to the first recognition time adjustment coefficient α1, the second recognition time adjustment coefficient α2 or the third recognition time adjustment coefficient α3 determined according to the relationship between the actual time difference △L of the target sound signal and the preset actual time difference △L1 of the first target sound signal and the actual time difference △L2 of the second target sound signal, Set the actual duration difference △L1 of the first target sound signal and the actual duration difference △L2 of the second target sound signal, When L>Lmax, calculate the actual duration difference △L of the target sound signal, where △L=L-Lmax; When △L<△L1, the first recognition time adjustment coefficient α1 is selected to adjust the standard recognition time to T1=T0(1+α1), where α1= (△L1-△L) / △L1; When △L1≤△L<△L2, the second recognition time adjustment coefficient α2 is selected to adjust the standard recognition time to T2=T0(1+α2), where α2= ; When △L≥△L2, the third recognition time adjustment coefficient α3 is selected to adjust the standard recognition time to T3=T0(1+α3), where α3= (△L-△L2) / △L.
2. The indoor positioning bionic interaction method based on Bluetooth technology according to claim 1 is characterized in that: The actual weight of the keyword calculated according to the keyword weight formula includes: When the actual weight of the keyword is calculated according to the keyword weight formula, the keyword weight calculation formula is: , Among them, S represents the weight of any keyword, a represents the keyword part-of-speech coefficient, b represents the keyword transcription coefficient, N0 represents the number of times the keyword is repeated in the transcribed text, and N represents the total number of keywords in the transcribed text.
3. The indoor positioning bionic interaction method based on Bluetooth technology according to claim 2 is characterized in that: When determining the target keywords based on the actual weight distribution of keywords, If the actual weight distribution of keywords is the same, the keywords are synonymously merged, and the weights of the merged keywords are calculated, and the target keywords are determined based on the calculated results; If the actual weight distributions of keywords are not the same, the keywords are arranged from large to small according to their actual weights to form a keyword sequence and the first 2 / 3 of the keyword sequence are intercepted to determine the target keyword.
4. The indoor positioning bionic interaction method based on Bluetooth technology according to claim 3 is characterized in that: The method further includes receiving feedback from the intelligent terminal on the search content after transmitting the search content, evaluating the actual accuracy of the search content according to the feedback, and determining whether to perform an extended search and obtain the extended search content according to the actual accuracy; The accuracy of the search content is scored according to the scoring range, and the accuracy scores of each smart terminal are averaged. If the average accuracy of the search content is less than the standard accuracy of the search content, the keywords are semantically expanded according to their parts of speech to obtain extended words corresponding to the keywords, and extended search is performed based on the extended words.
5. The indoor positioning bionic interaction method based on Bluetooth technology according to claim 4 is characterized in that: When generating a transcribed text from the recognized target sound signal according to a preset language model, the target sound signal is input into a pre-trained language model, and the language model outputs text according to the target sound signal as the transcribed text, wherein the language model is pre-trained based on a number of target sound signals and the transcribed texts corresponding to the target sound signals as labels.
6. The indoor positioning bionic interaction method based on Bluetooth technology according to claim 5 is characterized in that: When collecting the target sound signals of the users of each of the smart terminals, if the time interval of the target sound signals exceeds the preset time interval, the collection of the target sound signals of each of the smart terminals is stopped.
7. A system for the indoor positioning bionic interaction method based on Bluetooth technology according to any one of claims 1 to 6, characterized in that: include: A collection module, used to collect the actual surface temperature of indoor objects, and compare the actual surface temperature with a preset human body surface temperature interval, and collect a sound signal if the actual surface temperature belongs to the human body surface temperature interval; A judgment module, using a cosine similarity formula to calculate an actual similarity value between the sound signal and a preset standard sound signal, and comparing the actual similarity value with a preset standard similarity value, if the actual similarity value is greater than or equal to the standard similarity value, it is judged to be a target sound signal, and a connectable broadcast message is sent according to the target sound signal to obtain a Bluetooth address of a device receiving the target sound signal by using the connectable broadcast message, and if the Bluetooth address belongs to a pre-stored Bluetooth address, it is determined to be a target transmission address; A determination module generates a transcribed text of the target sound signal according to a preset language model, extracts keywords from the transcribed text according to a word segmentation method to determine the transmitted search content, A receiving module, establishing a connection according to the connectable broadcast message, and receiving the search content after the connection is established; The determination module includes a comparison unit, a recognition unit, an extraction unit, and an analysis unit. The comparison unit is used to obtain the actual duration of the target sound signal according to the time domain diagram of the target sound signal, and compare the actual duration of each target sound signal with a preset standard duration to obtain a comparison result; The recognition unit and the comparison unit are connected to adjust the standard recognition time according to the comparison result to recognize the target sound signal, and generate a transcribed text from the recognized target sound signal according to a preset language model and count the actual number of words in the transcribed text; The extraction unit is connected to the recognition unit and is used to extract keywords from the transcribed text according to a word segmentation method; The analysis unit is connected to the extraction unit, and is used to calculate the actual weight of the keyword according to the keyword weight formula, determine the target keyword according to the actual weight distribution of the keyword, perform a search based on the target keyword to generate search content and transmit the search content.
Citation Information
Cited By
Pedestrian indoor and outdoor passive intelligent navigation positioning system and method based on multi-sensor fusion
CN120609347A
