CN-121985328-A - Data processing method and electronic equipment
Abstract
The disclosure provides a data processing method and electronic equipment, wherein the method comprises the steps of obtaining a first wireless network group scanned by the electronic equipment, analyzing similarity relations between the first wireless network group and a plurality of second wireless network groups, determining that the electronic equipment is in a first mode in response to the fact that the similarity between at least one second wireless network group and the first wireless network group meets a condition, determining that the electronic equipment is in a second mode in response to the fact that the similarity between at least one second wireless network group and the first wireless network group does not meet a condition, and enabling the first mode to be different from the second mode.
Inventors
- SHU HAOYU
- LUO MENG
Assignees
- 联想(北京)有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260131
Claims (10)
- 1. A method of data processing, the method comprising: the method comprises the steps of obtaining a first wireless network group scanned by electronic equipment, wherein the first wireless network group comprises a plurality of wireless network information; analyzing similarity relation between the first wireless network group and a plurality of second wireless network groups; Determining that the electronic device is in a first mode in response to a similarity between at least one second wireless network group and the first wireless network group meeting a condition; Determining that the electronic device is in a second mode in response to the absence of the similarity between the at least one second wireless network group and the first wireless network group meeting a condition; The first mode is different from the second mode.
- 2. The method of claim 1, the method further comprising, in response to a similarity between at least one second wireless network group and the first wireless network group meeting a condition: And if the second wireless network group with the similarity meeting the condition with the first wireless network group is the same as the wireless network group with the similarity meeting the condition with the first wireless network group, determining the electronic equipment to be in a third mode, wherein the number of functions with high privacy degree in the third mode is larger than that in the first mode.
- 3. The method of claim 1, the method further comprising, after determining that the electronic device is in the second mode in response to a similarity between at least one second wireless network group and the first wireless network group not being present satisfying a condition: Determining a clustering center based on wireless network information included in the first wireless network group; And/or determining a current scene tag of the electronic device based on the network information included in the first wireless network group; The clustering center is used for determining the similarity between at least one second wireless network group and the first wireless network group, and the number of functions with high privacy degree in the second mode is smaller than that in the first mode.
- 4. The method of claim 1, the method further comprising: Determining at least one clustering center based on at least one second wireless network group, wherein each clustering center corresponds to at least one second wireless network group; and determining the similarity between the first wireless network group and at least one clustering center, wherein the similarity is the similarity between the at least one second wireless network group and the first wireless network group.
- 5. The method of claim 1 or 4, after said parsing the similarity relationship of the first wireless network group and the plurality of second wireless network groups, the method further comprising one of: determining a threshold value based on a label corresponding to the second wireless network group; Determining a clustering center corresponding to the maximum similarity value, and determining a threshold value based on the clustering center; The larger the range corresponding to the label is, the larger the threshold value is, the smaller the range corresponding to the label is, the smaller the threshold value is, the larger the range corresponding to the clustering center is, the larger the threshold value is, and the smaller the range corresponding to the clustering center is, the smaller the threshold value is.
- 6. The method of claim 1 or 4, the method further comprising, in response to a similarity between at least one second wireless network group and the first wireless network group meeting a condition: Updating a cluster center corresponding to the at least one second wireless network group based on the first wireless network group and the at least one second wireless network group; the larger the threshold value corresponding to the second wireless network group is, the lower the updating step length is; the smaller the threshold value corresponding to the second wireless network group is, the higher the updating step length is, and the learning rate is used for updating the clustering center corresponding to the at least one second wireless network group.
- 7. The method of claim 1 or 4, the obtaining a first set of wireless networks scanned by an electronic device, comprising: acquiring a wireless network list acquired by the electronic equipment at a plurality of acquisition moments and the signal intensity of each wireless network in the wireless network list; determining a wireless network matrix based on the wireless network list acquired at a plurality of acquisition moments and the signal intensity of each wireless network; Determining a signal strength matrix based on the wireless network matrix; Each row in the wireless network matrix represents the acquired information of each wireless network acquired at the same moment, each column in the wireless network matrix represents the acquired information of the same wireless network at different moments, or each column in the wireless network matrix represents the acquired information of each wireless network acquired at the same moment, and each row in the wireless network matrix represents the acquired information of the same wireless network at different moments.
- 8. The method of claim 7, the method further comprising: determining signal intensity vectors corresponding to all moments in a signal intensity matrix; respectively determining cosine similarity between the signal intensity vector corresponding to each moment and the clustering center corresponding to each second wireless network group; and determining at least one second wireless network group corresponding to the maximum value of cosine similarity of all the signal intensity vectors and the clustering centers corresponding to the second wireless network groups.
- 9. The method of claim 1, the method further comprising: Receiving adjustment feedback based on at least one of a mode, an application, and a wireless network of the electronic device; And adjusting the condition and/or the mode of the electronic device based on the adjustment feedback.
- 10. An electronic device comprises a wireless module, a memory and a processor, The wireless module is used for obtaining a first wireless network group scanned by the electronic equipment, wherein the first wireless network group comprises a plurality of wireless network information; The memory is used for storing a plurality of wireless network information included in at least one second wireless network group; The processor is used for analyzing similarity relations between the first wireless network group and the plurality of second wireless network groups; The processor is further configured to determine that the electronic device is in a first mode in response to a similarity between at least one second wireless network group and the first wireless network group meeting a condition; The processor is further configured to determine that the electronic device is in a second mode in response to a lack of a similarity between at least one second wireless network group and the first wireless network group meeting a condition; Wherein the first mode is different from the second mode.
Description
Data processing method and electronic equipment Technical Field The disclosure relates to the field of positioning technologies, and in particular, to a data processing method and an electronic device. Background In the use process of the electronic equipment, the switching of the operation modes is finished by manual operation of a user. In an actual application scene, the electronic equipment often needs to be moved to a new position according to the use requirement, and especially under an emergency condition, when a user needs to quickly transfer the electronic equipment, the operation mode of the equipment cannot be manually switched in time due to time urgency, so that the equipment is in an operation state of non-privacy protection, and personal privacy information of the user is leaked. Disclosure of Invention The present disclosure provides a data processing method and an electronic device, so as to at least solve the above technical problems in the prior art. According to a first aspect of the present disclosure, there is provided a data processing method, the method comprising: the method comprises the steps of obtaining a first wireless network group scanned by electronic equipment, wherein the first wireless network group comprises a plurality of wireless network information; analyzing similarity relation between the first wireless network group and a plurality of second wireless network groups; Determining that the electronic device is in a first mode in response to a similarity between at least one second wireless network group and the first wireless network group meeting a condition; Determining that the electronic device is in a second mode in response to the absence of the similarity between the at least one second wireless network group and the first wireless network group meeting a condition; The first mode is different from the second mode. In the above aspect, after the similarity between the at least one second wireless network group and the first wireless network group meets a condition, the method further includes: And if the second wireless network group with the similarity meeting the condition with the first wireless network group is the same as the wireless network group with the similarity meeting the condition with the first wireless network group, determining the electronic equipment to be in a third mode, wherein the number of functions with high privacy degree in the third mode is larger than that in the first mode. In the above aspect, after determining that the electronic device is in the second mode in response to the absence of the similarity between the at least one second wireless network group and the first wireless network group meeting the condition, the method further includes: Determining a clustering center based on wireless network information included in the first wireless network group; And/or determining a current scene tag of the electronic device based on the network information included in the first wireless network group; The clustering center is used for determining the similarity between at least one second wireless network group and the first wireless network group, and the number of functions with high privacy degree in the second mode is smaller than that in the first mode. In the above scheme, the method further comprises: Determining at least one clustering center based on at least one second wireless network group, wherein each clustering center corresponds to at least one second wireless network group; and determining the similarity between the first wireless network group and at least one clustering center, wherein the similarity is the similarity between the at least one second wireless network group and the first wireless network group. In the above aspect, after the analyzing the similarity relationship between the first wireless network group and the plurality of second wireless network groups, the method further includes one of the following: determining a threshold value based on a label corresponding to the second wireless network group; Determining a clustering center corresponding to the maximum similarity value, and determining a threshold value based on the clustering center; The larger the range corresponding to the label is, the larger the threshold value is, the smaller the range corresponding to the label is, the smaller the threshold value is, the larger the range corresponding to the clustering center is, the larger the threshold value is, and the smaller the range corresponding to the clustering center is, the smaller the threshold value is. In the above aspect, after the similarity between the at least one second wireless network group and the first wireless network group meets a condition, the method further includes: Updating a cluster center corresponding to the at least one second wireless network group based on the first wireless network group and the at least one second wireless network group; the larger the threshold v