Method for determining wifi tag, electronic device and readable storage medium
By obtaining the wifi device list and APP list, generating tags based on the APP device proportion value, and combining the device feature information, the problem of accuracy and comprehensiveness of wifi portraits in the existing technology is solved, and the security of user equipment and abnormal wifi identification capabilities are improved. .
Patent Information
- Application Number
- CN202210265089.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-17
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-03-17
AI Technical Summary
In the existing technology, the determination of WiFi portraits relies on user subjective labels and attribute information, resulting in low accuracy and comprehensiveness, inability to effectively identify abnormal WiFi, and posing security risks.
By obtaining the device list of the target wifi and the APP list corresponding to each device, the wifi tag is generated according to the device proportion of the APP, and combined with the device characteristic information, the accuracy and comprehensiveness of the wifi portrait is improved, and the problems of subjectivity and insufficient quantity are avoided.
It improves the accuracy of Wi-Fi portraits and the security of user equipment, reduces security risks when replacing Wi-Fi equipment, can effectively identify abnormal Wi-Fi, and enhances the ability to distinguish and monitor different Wi-Fi.
Smart Images

Figure CN114565059B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of tag generation, and in particular to a method for determining a wifi tag, an electronic device and a readable storage medium. Background Art
[0002] With the popularization of network communications, more and more places or scenarios require Wi-Fi for users' electronic devices to use, providing convenience for users' daily lives.
[0003] At the same time, Wi-Fi has gradually brought hidden dangers to the safety of users. For example, some Wi-Fi may leak user privacy or cause economic losses. Therefore, it is necessary to determine the Wi-Fi portrait so that users can judge the security of Wi-Fi and facilitate the connection of users' electronic devices. However, in current technology, the determination of the corresponding Wi-Fi portrait mainly relies on tags provided subjectively by users or tags generated based on Wi-Fi attribute information to determine the Wi-Fi portrait. In this case, the tags used to determine the Wi-Fi portrait are too subjective and few in number, which makes the accuracy of determining the Wi-Fi portrait low, thus posing a hidden danger to the safety of users' electronic devices.
[0004] In addition, errors caused by the replacement of WiFi devices cannot be avoided, which makes the comprehensiveness of the WiFi portrait less comprehensive, resulting in the omission of certain abnormal WiFi, which in turn poses a hidden danger to the security of users' electronic devices. Summary of the invention
[0005] In order to solve the problems of the prior art, a wifi tag is generated for determining a wifi portrait based on the device list of the target wifi and the APP list corresponding to each device ID, based on the number of devices that install each APP in the APP list, which can improve the accuracy and comprehensiveness of determining the wifi portrait and avoid potential safety hazards to the user's electronic device. The embodiment of the present invention provides a method for determining a wifi tag, an electronic device, and a readable storage medium. The technical solution is as follows:
[0006] In one aspect, a method for determining a wifi tag comprises the following steps:
[0007] S101, obtain a target device list A=(A1, A2, A3, ..., Am) corresponding to the target wifi, Ai refers to the i-th target device ID, i=1...m, m is the number of target devices;
[0008] S103. Based on Ai, obtain the first APP list B=(B1, B2, B3, ..., Bn) corresponding to Ai, where Bj refers to the jth first APP name, j=1...n, and n is the number of first APPs;
[0009] S105. Based on B, obtain a target list F=(F1, F2, F3, ..., Fr), wherein step S105 includes the following steps:
[0010] According to m Bs, a second APP list C = (C1, C2, C3, ..., Cz) is obtained, where Cx refers to the repetition value corresponding to the x-th second APP, x = 1 ... z, and z is the number of second APPs;
[0011] Traverse C and when Cx ≥ the preset threshold, insert Cx into the target APP list It refers to the number of devices corresponding to the g-th target APP, g = 1...r, r is the number of target APPs;
[0012] based on Get Fg and insert Fg into F, where Fg meets the following conditions:
[0013]
[0014] S107, traverse F and when Fg≥preset proportion threshold When the target wifi is reached, a first tag list corresponding to the target wifi is generated.
[0015] On the other hand, an electronic device includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the method for determining an APP tag as described in any of the above items.
[0016] On the other hand, a computer-readable storage medium is provided, wherein at least one instruction or at least one program is stored in the computer-readable storage medium, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the method for determining an APP tag as described in any one of the above items.
[0017] The present invention provides a method for determining a wifi tag, an electronic device, and a readable storage medium, which have the following technical effects:
[0018] In the present invention, by obtaining a device list of the target wifi and an APP list corresponding to each device in the device list, the device ratio corresponding to the APP is determined, and a label of the target wifi is generated according to the device ratio corresponding to the APP, so as to provide accuracy in determining a wifi portrait and improve the safety of users or third parties; and the label of the target wifi is generated according to the device ratio corresponding to the APP, so as to avoid the abnormal wifi being unable to be identified when the wifi device is replaced, which brings potential safety hazards to users or third parties;
[0019] At the same time, the device and its corresponding feature information can be filtered out through the device proportion value corresponding to the APP to generate the target wifi tag, which can avoid the wifi portrait being determined by too subjective and small tags, resulting in low accuracy of wifi portrait determination, thus bringing security risks to users or third parties.
[0020] In addition, when determining the WiFi portrait, tags generated by the WiFi's own characteristics are added to facilitate the distinction between different WiFis, which is beneficial for users to screen WiFi when using devices, or for third parties to monitor devices scanned by WiFi, thereby reducing security risks to users or third parties. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. 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 creative work.
[0022] Figure 1 is a flow chart of a method for determining a wifi tag provided in the first embodiment of the present invention;
[0023] Figure 2 is a flow chart of a method for determining a wifi tag provided in Embodiment 2 of the present invention;
[0024] Figure 3 This is a flow chart of a method for determining a wifi tag provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes 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 devices.
[0027] Embodiment 1
[0028] like Figure 1 As shown, this embodiment 1 provides a method for determining a wifi tag, an electronic device, and a readable storage medium, the method comprising the following steps:
[0029] S101. Obtain a target device list A=(A1, A2, A3, ..., Am) corresponding to the target wifi, where Ai refers to the ith target device ID, i=1...m, m is the number of target devices and m is an integer greater than 1.
[0030] Specifically, the target device ID refers to the unique identifier corresponding to the device scanned by the target wifi, wherein the device is a mobile terminal, which can be physically implemented as a mobile device such as a smart phone, PAD, etc. that can install an application (such as an APP). Those skilled in the art know that the model, specifications and other parameters of the server and mobile terminal do not affect the protection scope of the present invention.
[0031] In a specific embodiment, step S101 includes: according to the identifier of the target wifi, obtaining from the target device database all device IDs connected to the target wifi within a preset time period to form A, wherein the preset time period can be set according to specific processing requirements. It has been proved through a large number of experiments that, preferably, the preset time period is 3 months. On the one hand, it can ensure that there is enough data volume for calculating the target proportion value, and on the other hand, it can avoid excessive data volume affecting the overall efficiency.
[0032] Furthermore, the target Wi-Fi refers to a Wi-Fi existing in an abnormal area, and the abnormal area can be understood as an abnormal geographical area marked by a user, wherein specific marking rules and the area range of the geographical area can be set according to actual application scenarios and requirements.
[0033] S103. Based on Ai, obtain the first APP list B=(B1, B2, B3, ..., Bn) corresponding to Ai, where Bj refers to the jth first APP name, j=1...n, and n is the number of first APPs;
[0034] Specifically, the first APP refers to an APP installed in a device corresponding to the target device ID.
[0035] In a specific embodiment, step S103 includes: according to Ai, constructing B from all APP names installed on the device corresponding to Ai in the APP database, wherein the APP names are uploaded to the APP database through the SDK or other similar modules in the device.
[0036] S105. Based on B, obtain a target list F=(F1, F2, F3, ..., Fr), wherein step S105 includes the following steps:
[0037] According to m Bs, a second APP list C = (C1, C2, C3, ..., Cz) is obtained, where Cx refers to the repetition value corresponding to the x-th second APP, x = 1 ... z, and z is the number of second APPs;
[0038] Traverse C and when Cx ≥ the preset first threshold, insert Cx into the target APP list It refers to the number of devices corresponding to the g-th target APP, g = 1...r, r is the number of target APPs;
[0039] based on Get Fg and insert Fg into F, where Fg meets the following conditions:
[0040]
[0041] Specifically, the repetition value refers to the number of times the first APP name is repeated in m Bs, which is equivalent to the number of devices corresponding to the first APP.
[0042] Specifically, the preset first threshold can be set according to specific processing requirements. Preferably, the preset first threshold is 10.
[0043] In a specific embodiment, those skilled in the art may construct the second APP list according to specific processing requirements, which will not be described in detail here.
[0044] S107, traverse F and when Fg≥preset proportion threshold When a first tag list corresponding to the target wifi is generated, any first tag in the first tag list refers to a target wifi tag generated based on a proportion value greater than or equal to a preset proportion threshold. Those skilled in the art can use an appropriate method to generate it according to actual processing needs, which will not be repeated here.
[0045] In a specific embodiment, the method further comprises the following method to determine
[0046] According to the target APP name corresponding to Fg, obtain the number of sample devices Z corresponding to the target APP name from the sample database;
[0047] According to Z, we get Meet the following conditions:
[0048] Wherein, M is the total number of devices in the sample database, and λ is the threshold coefficient.
[0049] Furthermore, the method further comprises the following method to determine the range of λ values:
[0050] The negative sample list is traversed and when the target APP name exists in the negative sample list, the value range of λ is 0.4 to 0.7.
[0051] The negative sample list is traversed and when the target APP name does not exist in the negative sample list, the value range of λ is 0.8 to 1.0.
[0052] Preferably, when the target APP name exists in the negative sample list, λ=0.5; otherwise, when the target APP name does not exist in the negative sample list, λ=0.8.
[0053] Furthermore, the negative sample list refers to a list constructed based on the name of abnormal APP, which can be helpful to accurately determine the preset proportion threshold, generate an accurate target wifi tag, and then profile the target wifi, so as to facilitate users to selectively connect to wifi and improve user safety. At the same time, it can also enable third parties to screen abnormal wifi and devices scanned by abnormal wifi based on wifi portraits for monitoring, thereby reducing losses to third parties; wherein, the negative sample list is also stored in the sample database, and the total number of devices in the sample database is in the millions, which can ensure the accuracy of determining the preset proportion threshold.
[0054] In a specific embodiment, the method further includes the following step: determining the target wifi portrait according to one or more combinations of the first tag list, the second tag list and the third tag list.
[0055] Preferably, determining the target WiFi portrait based on the first tag list enables the user or a third party to determine whether it is an abnormal WiFi based on the WiFi portrait, thereby improving the safety of the user when using the device and the third party's monitoring of the devices scanned by the abnormal WiFi, thereby reducing the loss of the third party.
[0056] The first embodiment of the present invention provides a method for determining a wifi tag, an electronic device, and a readable storage medium. By obtaining a device list of a target wifi and an APP list corresponding to each device in the device list, a device ratio value corresponding to the APP is determined, and a tag of the target wifi is generated according to the device ratio value corresponding to the APP, thereby providing accuracy in determining a wifi portrait and improving the security of users or third parties. At the same time, a tag of the target wifi is generated according to the device ratio value corresponding to the APP, thereby avoiding the inability to identify abnormal wifi when the wifi device is replaced, thereby posing a security risk to users or third parties.
[0057] Embodiment 2
[0058] like Figure 2 As shown, this embodiment 2 provides a method for determining a wifi tag, an electronic device, and a readable storage medium, the method comprising the following steps:
[0059] S109. According to F, a second tag list corresponding to the target wifi is obtained, wherein step S109 further includes the following steps:
[0060] Traverse F and when Fg ≥ preset proportion threshold When Fg is inserted into the third APP list, the target APP corresponding to Fg is inserted into the third APP list refers to the qth third APP, q=1...p, p is the number of third APPs, wherein the third APP refers to the target APP corresponding to Fg being greater than or equal to the preset proportion threshold;
[0061] according to Obtained from the target device database The corresponding device list (T1, T2, T3, ..., Ts), Tk refers to the kth specified device ID, k = 1 ... s, s is the number of specified devices,
[0062] According to Tk, a device feature vector corresponding to Tk is obtained, wherein the device feature vector at least includes: all features used to determine abnormal devices;
[0063] Traverse the device feature vectors corresponding to s Tk and obtain the number of times D corresponding to any feature among all the features used to determine the abnormal device;
[0064] When D≥preset second threshold, the feature corresponding to D is inserted into the second label list.
[0065] Specifically, the designated device ID refers to a device that has installed an APP corresponding to a target proportion value that is greater than or equal to a preset proportion threshold.
[0066] Specifically, D refers to the number of times any feature used to identify abnormal devices is repeated in the target device database. This can determine that this feature is relatively common. The label generated based on this feature can more accurately reflect the characteristics of WiFi and improve the accuracy of determining WiFi portraits.
[0067] Furthermore, all features used to determine abnormal devices can be understood as all features used in this field to determine that a device is an abnormal device, which can increase the number of tags and facilitate the determination of an accurate target wifi portrait.
[0068] Specifically, the target wifi portrait is determined according to one or more combinations of the first tag list, the second tag list and the third tag list, wherein the method for obtaining the first tag list in this embodiment 2 is consistent with the method for obtaining the first tag list in embodiment 1, that is, steps S101 to S107 in this embodiment 2 are consistent with steps S101 to S107 in embodiment 1, and are not repeated here.
[0069] Preferably, the target wifi portrait is determined according to the first tag list and the second tag list, and the wifi portrait can be determined jointly by the tag of the target wifi generated by the feature corresponding to the device and the tag of the target wifi generated by the device proportion value corresponding to the APP, so as to avoid the tags used to determine the wifi portrait being too subjective and having a small number, resulting in low accuracy in determining the wifi portrait, thereby posing a security risk to users or third parties.
[0070] The second embodiment of the present invention provides a method for determining a wifi tag, an electronic device, and a readable storage medium, which can also achieve the same technical effect as the embodiment, that is, by obtaining a device list of the target wifi and an APP list corresponding to each device in the device list, the device ratio corresponding to the APP is determined, and a tag of the target wifi is generated according to the device ratio corresponding to the APP, thereby providing accuracy in determining the wifi portrait and improving the security of users or third parties; at the same time, a tag of the target wifi is generated according to the device ratio corresponding to the APP, thereby avoiding the inability to identify abnormal wifi when the wifi device is replaced, thereby posing a security risk to users or third parties.
[0071] Embodiment 3
[0072] like Figure 3As shown, this embodiment 3 provides a method for determining a wifi tag, an electronic device, and a readable storage medium. The method includes steps S101 to S109 and further includes the following steps:
[0073] S1011. Perform feature extraction on the wifi information corresponding to the target wifi to obtain a third tag list corresponding to the target wifi, wherein the wifi information at least includes: all features for determining abnormal wifi, which can be understood as: all features in the field that can determine that a wifi is an abnormal wifi; wherein, those skilled in the art can process according to actual needs to obtain the third tag list, which will not be repeated here.
[0074] Specifically, the target wifi portrait is determined according to one or more combinations of the first tag list, the second tag list and the third tag list, wherein the method for obtaining the first tag list and the second tag list in this embodiment 2 is consistent with the method for obtaining the first tag list and the second tag list in embodiment 1, that is, steps S101 to S108 in this embodiment 2 are consistent with steps S101 to S108 in embodiment 1, and are not repeated here.
[0075] Preferably, the target wifi portrait is determined according to the first tag list, the second tag list and the third tag list. The wifi portrait can be determined jointly by the tag of the target wifi generated by the characteristics corresponding to the device, the tag of the target wifi generated by the device proportion value corresponding to the APP and the wifi tag generated by the wifi information. On the one hand, it can avoid the tags for determining the wifi portrait being too subjective and small in number, resulting in low accuracy in determining the wifi portrait, which in turn brings security risks to users or third parties. On the other hand, when determining the wifi portrait, the tags generated by the characteristics of the wifi itself are added to facilitate the distinction between different wifis, which is beneficial for users to screen wifi when using the device, or for third parties to monitor devices scanned by the wifi, thereby reducing security risks to users or third parties.
[0076] The third embodiment provides a method for determining a wifi tag, an electronic device, and a readable storage medium, and can also achieve the same technical effect as the second embodiment, that is, by obtaining a device list of the target wifi and an APP list corresponding to each device in the device list, that is, determining the device ratio value corresponding to the APP, generating a tag of the target wifi according to the device ratio value corresponding to the APP, providing accuracy in determining the wifi portrait, and improving the security of users or third parties; at the same time, generating a tag of the target wifi according to the device ratio value corresponding to the APP, avoiding the inability to identify abnormal wifi when the wifi device is replaced, which brings security risks to users or third parties.
[0077] Embodiments 1 to 3 of the present invention also provide an electronic device, including a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the method for determining a wifi tag as described above.
[0078] The computer device of the embodiment of the present invention exists in various forms, including but not limited to:
[0079] (1) Mobile communication devices: These devices are characterized by their mobile communication functions and their main purpose is to provide voice and data communications. These terminals include: smart phones (such as tPhone), multimedia phones, functional phones, and low-end phones.
[0080] (2) Ultra-mobile personal computer devices: These devices belong to the category of personal computers, have computing and processing functions, and generally also have mobile Internet access features. These terminals include: PDA, MtD and UMPC devices, such as tPad.
[0081] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players (such as tPod), handheld game consoles, e-books, smart toys, and portable car navigation devices.
[0082] (4) Server: A device that provides computing services. The server consists of a processor, hard disk, memory, system bus, etc. The server is similar to a general computer architecture, but because it needs to provide highly reliable services, it has higher requirements in terms of processing power, stability, reliability, security, scalability, and manageability.
[0083] (5) Other electronic devices with data interaction functions.
[0084] An embodiment of the present invention also provides a computer-readable storage medium, which can be set in an electronic device to store at least one instruction or at least one program related to a method for determining a wifi tag in a method embodiment. The at least one instruction or the at least one program is loaded and executed by the processor to implement the method for determining a wifi tag provided in the above method embodiment.
[0085] Optionally, in this embodiment, the storage medium may be located in at least one of the multiple network servers of the computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
[0086] 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 spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for determining a wifi tag, characterized in that: The method comprises the following steps: S101, obtain a target device list A=(A1, A2, A3, ..., Am) corresponding to the target wifi, Ai refers to the i-th target device ID, i=1...m, m is the number of target devices; S103. Based on Ai, obtain the first APP list B=(B1, B2, B3, ..., Bn) corresponding to Ai, where Bj refers to the jth first APP name, j=1...n, and n is the number of first APPs; S105. Based on B, obtain a target list F=(F1, F2, F3, ..., Fr), wherein step S105 includes the following steps: According to m Bs, a second APP list C = (C1, C2, C3, ..., Cz) is obtained, where Cx refers to the repetition value corresponding to the x-th second APP, x = 1 ... z, and z is the number of second APPs; Traverse C and when Cx ≥ the preset threshold, insert Cx into the target APP list Cg refers to the number of devices corresponding to the g-th target APP, g = 1...r, r is the number of target APPs; based on Get Fg and insert Fg into F, where Fg meets the following conditions: S107, traverse F and when Fg≥preset proportion threshold When the first tag list T corresponding to the target wifi is generated, T=(T1, T2, T3, ..., Tr), where Tg refers to the first tag corresponding to Fg.
2. The method for determining a wifi tag according to claim 1, characterized in that: The target device ID refers to the unique identifier corresponding to the device scanned by the target wifi.
3. The method for determining a wifi tag according to claim 1, characterized in that: The repetition value refers to the number of times the first APP name is repeated in m Bs.
4. The method for determining a wifi tag according to claim 1, characterized in that: The method also includes the following method to determine According to the target APP corresponding to Fg, the number of sample devices Z corresponding to the target APP is obtained from the sample database; According to Z, we get Meet the following conditions: Wherein, M is the total number of devices in the sample database, and λ is the threshold coefficient.
5. The method for determining a wifi tag according to claim 1, characterized in that: The method also includes the following method to determine the range of λ values; Traverse the negative sample list and when the target APP name exists in the negative sample list, the value range of λ is 0.4 to 0.7; Traversing the negative sample list and when the target APP name does not exist in the negative sample list, the value range of λ is 0.8 to 1.0; The negative sample list refers to a list constructed based on the names of abnormal APPs.
6. The method for determining a wifi tag according to claim 1, characterized in that: The method further includes: S109, obtaining a second tag list corresponding to the target wifi according to F. Wherein, S109 further includes the following steps: Traverse F and when Fg ≥ preset proportion threshold When Fg is inserted into the third APP list, the target APP corresponding to Fg is inserted into the third APP list refers to the qth third APP, q=1...p, p is the number of third APPs, wherein the third APP refers to the target APP corresponding to Fg being greater than or equal to the preset proportion threshold; according to Obtained from the target device database The corresponding device list (T1, T2, T3, ..., Ts), Tk refers to the kth specified device ID, k = 1 ... s, s is the number of specified devices, According to Tk, a device feature vector corresponding to Tk is obtained, wherein the device feature vector at least includes: all features used to determine abnormal devices; Traverse the device feature vectors corresponding to s Tk and obtain the number of times D corresponding to any feature among all the features used to determine the abnormal device; When D≥preset second threshold, the feature corresponding to D is inserted into the second label list.
7. The method for determining a wifi tag according to claim 1, characterized in that: The method further includes: extracting features from the wifi information corresponding to the target wifi to obtain a third tag list W corresponding to the target wifi, wherein the wifi information at least includes: all features for determining abnormal wifi.
8. The method for determining a wifi tag according to claim 1, 6 or 7, characterized in that: The method further includes: determining the target wifi portrait according to one or more combinations of the first tag list, the second tag list and the third tag list.
9. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the method for determining a wifi tag as claimed in any one of claims 1 to 8.
10. A computer-readable storage medium, wherein at least one instruction or at least one program is stored in the computer-readable storage medium, wherein the at least one instruction or the at least one program is loaded and executed by a processor to implement the method for determining a wifi tag according to any one of claims 1 to 8.
