Area identification system
The region identification system uses machine learning to generate models from IP addresses and regional information, updating regularly to accurately identify regions for dynamic IP addresses, addressing the challenge of frequent changes and improving learning accuracy.
Patent Information
- Application Number
- JP2023033608
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-06
- Publication Date
- 2024-09-19
AI Technical Summary
Existing systems struggle to accurately identify the region associated with dynamic IP addresses, which frequently change, and require frequent database updates to maintain accuracy, making it difficult to analyze infrequently accessed domains.
A region identification system using machine learning to generate a specific model from a combination of unrounded IP addresses and associated regional information, updating the model regularly to identify regions using probabilistic statistical information and subnet masks, eliminating the need to predetermine representative areas.
Enables accurate identification of regions for dynamic IP addresses without requiring constant database updates, improving learning accuracy and handling frequently changing IP addresses, especially those used on mobile devices.
Smart Images

Figure 2024125650000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a region identification system, and is particularly suitable for use in a system for identifying the region in which an IP address is used. [Background technology]
[0002] Conventionally, there is known a technique for identifying the area where a user terminal is used (i.e., the area where an IP address is used) based on the IP address of the user terminal (see, for example, Patent Document 1). The area information determination system described in Patent Document 1 collects basic information indicating the association between an IP address and a specific area, and sets area information for the IP address using the collected basic information.
[0003] Furthermore, the region information determination system described in Patent Document 1 estimates region information for IP addresses for which region information cannot be set. An IP address for which region information cannot be set means an IP address for which it is difficult to directly set region information when there is no basic information indicating a relationship with a specific region or when there is insufficient basic information for the same IP address that indicates a relationship with different regions.
[0004] The regional information estimation unit described in Patent Document 1 estimates regional information of an IP address by using an IP address group (IP subnet, which is an IP allocation standard) including a plurality of IP addresses. Specifically, a representative region is set for each IP address group, and if regional information of a certain IP address cannot be uniquely set from basic information, the representative region set for the IP address group to which the IP address belongs is estimated as regional information of the certain IP address.
[0005] Here, in Patent Document 1, as a method of grouping IP addresses based on an IP subnet, a method of dividing via an IP MASK, a method of dividing into 1 / 2 of a specific range (band) of IP addresses, etc. are described. nA method of dividing an IP subnet into IP subnets consisting of consecutive IP addresses with a size of n (n is any integer greater than 1), and dividing one IP subnet into 1 / 2 of the IP subnet. n and a method for re-dividing the IP address into different IP subnets having different sizes. [Prior art documents] [Patent documents]
[0006] [Patent Document 1] Patent No. 6239675 Summary of the Invention [Problem to be solved by the invention]
[0007] Incidentally, there are IP addresses called dynamic IP addresses. The value of a dynamic IP address changes every few days to a few months. For this reason, when identifying local information using a database that records the correspondence between IP addresses and local information, it is necessary to constantly keep the database up to date. To do this, it is necessary to conduct analyses every few days to a few months and appropriately associate IP addresses with local information.
[0008] However, because the number of IP addresses is huge and the characteristics of IP addresses differ depending on the domain, it is necessary to perform analysis for each domain. Therefore, it is difficult to perform all analyses in a cycle of several days. In practice, the analysis is prioritized from domains with many accesses, which often leaves the analysis of domains with few accesses unattended.
[0009] In the technology described in Patent Document 1, even if region information cannot be uniquely identified from an IP address, it is possible to estimate a representative region preset for an IP address group (IP subnet) to which the IP address belongs as the region information of the IP address. However, the technology described in Patent Document 1 requires that a combination of an IP address group and a representative region associated with the IP address group be determined in advance. Therefore, this method is not necessarily effective for dynamic IP addresses whose IP address values change every few days to months.
[0010] The present invention has been made to solve such problems, and has an object to make it possible to specify the area in which a dynamic IP address is used, even for a dynamic IP address. [Means for solving the problem]
[0011] In order to solve the above problems, in the present invention, a machine learning process is repeatedly performed using learning data consisting of a combination of an unrounded IP address or an IP address obtained by rounding a few bits of the IP address using a subnet mask, and linking information regarding the area where the IP address is used, thereby sequentially updating a specification model configured to output area information when an IP address is input. Then, an IP address to be specified as an area is input to the specification model, and area information corresponding to the IP address is output from the specification model. Effect of the Invention
[0012] According to the present invention configured as described above, the identification model generated by reflecting the relationship between the IP address without rounding or the IP address obtained by rounding several bits of the IP address by a subnet mask and the area where the IP address is used is updated sequentially, and the area information is identified from the IP address using the most recently updated identification model, so that it is possible to identify the area where a dynamic IP address is used. Also, it is not necessary to determine a representative area in advance for an IP address with several bits rounded by a subnet mask, and it is possible to identify area information for a rounded IP address by using the identification model generated by machine learning processing using learning data including the rounded IP address. [Brief description of the drawings]
[0013] [Figure 1] 1 is a block diagram showing an example of a functional configuration of a region identification system according to an embodiment of the present invention; [Diagram 2] 10 is a diagram illustrating an example of history information stored in an IP address storage unit. FIG. [Diagram 3] 4 is a diagram illustrating an example of an IP range learned by a first function of the model generation unit of the present embodiment. FIG. [Figure 4] 11 is a schematic diagram for explaining the processing content of a second function of generating a specific model corresponding to Mask / M by the model generating unit of this embodiment. FIG. [Diagram 5] 11 is a schematic diagram for explaining the processing contents of a second function of generating a specific model corresponding to Mask / N by the model generating unit of this embodiment. FIG. [Figure 6] 10 is a flowchart showing an example of an operation related to generation of a specific model by the area identification system of the present embodiment. [Figure 7] 10 is a flowchart showing an example of an operation related to area identification by the area identification system of the present embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] An embodiment of the present invention will be described below with reference to the drawings. Fig. 1 is a block diagram showing an example of a functional configuration of a region identification system 10 according to this embodiment. As shown in Fig. 1, the region identification system 10 of this embodiment includes, as its functional configuration, a model generation unit 11, a target IP acquisition unit 12, a mask processing unit 13, and a region identification unit 14. The model generation unit 11 includes, as specific functional configurations, a learning data generation unit 11A and a learning unit 11B. Furthermore, the region identification unit 14 includes a model storage unit 14A.
[0015] The functional blocks 11 to 14 can be configured by any of hardware, DSP (Digital Signal Processor), and software. For example, when configured by software, the functional blocks 11 to 14 are actually configured with a CPU, RAM, ROM, etc. of a computer, and are realized by the operation of a program stored in a storage medium such as the RAM, ROM, hard disk, or semiconductor memory.
[0016] The area identification system 10 of this embodiment is connected to the IP address log collection server 100 via a communication network such as the Internet or a mobile phone network, and is configured to be able to perform data communication with the IP address log collection server 100. The IP address log collection server 100 acquires an IP address used when communication is performed from a user terminal (not shown) via the communication network, and stores the IP address in the IP address storage unit 101.
[0017] On a communication network, many users in various locations access desired websites from their respective user terminals at desired times to view content, and perform various communications such as communication and data acquisition with other user terminals or servers, etc. The IP address log collection server 100 acquires the IP addresses used in these communications each time, and successively stores them in the IP address storage unit 101 as history information together with the date and time information when the IP addresses were acquired.
[0018] Furthermore, IP address log collection server 100 identifies the region in which an IP address stored in IP address storage unit 101 as history information is used, and stores the region information in IP address storage unit 101 in association with the IP address. In this embodiment, code information indicating a prefecture (hereinafter referred to as a prefecture code) is used as the region information. Here, IP address log collection server 100 may store region information in IP address storage unit 101 only for IP addresses for which the region of use can be clearly identified. Note that the identification of region information for an IP address may be performed by a server other than IP address log collection server 100.
[0019] Fig. 2 is a diagram showing a schematic example of history information stored in IP address storage unit 101. As shown in Fig. 2, IP address storage unit 101 configures records by associating collected IP addresses with date information indicating the collection date and time, and area information (prefecture code) identified from the IP addresses, and stores multiple records as history information. Here, only records of IP addresses for which the area of use could be clearly identified are shown.
[0020] As a method for identifying the region where an IP address is used, it is possible to apply several publicly known techniques. For example, it is possible to use a regional address classification database that classifies multiple IP addresses by region based on information obtained from the Network Information Center (NIC), which is an organization that manages domains around the world, and JPNIC, which has jurisdiction over domains in Japan.
[0021] It is also possible to use a regional ISP address classification database that associates the IP addresses of access points installed by Internet service providers (ISPs) in multiple regions with the regions in which the access points are installed.
[0022] Also, the system obtains a domain name corresponding to an IP address, extracts a network name from the character string that constitutes the domain name to determine the provider name, and extracts a host name from the character string that constitutes the domain name. It is also possible to obtain regional information from the extracted host name by referring to a regional host name classification database that classifies host names by region for each provider.
[0023] Furthermore, it is possible to execute a route search command (traceroute command in Unix (registered trademark) or tracert command in Windows (registered trademark)) for an IP address and obtain regional information from the domain name of the router on the obtained network route. The network route here refers to the routing information of multiple routers that connect a source host and a destination host when a communication is carried out on the Internet. If the routing information contains a character string that can identify a region, it is also possible to obtain regional information from the character string.
[0024] The model generation unit 11 generates an identification model configured to output area information when an IP address is input by machine learning processing using learning data consisting of a combination of an unrounded IP address or an IP address obtained by rounding a few bits of the IP address using a subnet mask, and linking information related to the area where the IP address is used. Then, the generated identification model is stored in the model storage unit 14A of the area identification unit 14. The model generation unit 11 repeatedly executes this machine learning processing to successively update the identification model of the area identification unit 14. For example, the model generation unit 11 updates the identification model once a week.
[0025] Here, the model generation unit 11 acquires a data set of multiple IP addresses and regional information stored in the IP address memory unit 101 from the IP address log collection server 100, and generates a specific model by performing machine learning processing on the acquired data set as learning data.
[0026] The multiple data sets acquired from the IP address log collection server 100 are IP addresses and corresponding area information collected during a predetermined period going back from the update timing of the specific model. For example, the model generation unit 11 acquires from the IP address log collection server 100 IP addresses and area information linked to date information from the date of the update timing of the specific model up to several days, several weeks, or several months ago.
[0027] In this embodiment, the model generation unit 11 has a plurality of functions for generating a specific model. As a first function, the model generation unit 11 uses a combination of an IP address (an IP address without rounding due to a subnet mask) and area information acquired from the IP address log collection server 100 as learning data, and generates a specific model (hereinafter, referred to as a mask-incompatible specific model) by machine learning processing using the learning data. In this case, the area information acquired from the IP address log collection server 100 itself corresponds to linking information related to the area where the IP address is used.
[0028] In the machine learning by the first function, the model generation unit 11 executes machine learning with the unrounded IP address as a feature and the prefecture code as the objective variable to learn the range of IP addresses where the prefecture code changes (hereinafter referred to as IP range). Here, machine learning is performed using the IP address and prefecture code linked to date information from the date when the specific model is updated to several weeks or months before. The learning model used here is, for example, a decision tree model, but is not limited to this.
[0029] FIG. 3 is a diagram showing a schematic example of an IP range learned by the first function. Although FIG. 3 shows a state in which IP ranges for different prefecture codes do not overlap with each other, they may overlap depending on the contents of the data set acquired from the IP address log collection server 100. For example, if the area where one dynamic IP address is used spans multiple prefectures, the IP ranges will overlap. If a specific model with overlapping IP ranges is used to predict the area where an IP address is used, the prediction accuracy will decrease. For example, if the IP range spans three prefectures, the prediction accuracy rate will be about 33%.
[0030] As the second to fourth functions, the model generating unit 11 applies a subnet mask to the IP address acquired from the IP address log collecting server 100, and generates probabilistic statistical information on which region information (prefecture code) the IP address, which has several bits rounded off by the subnet mask, corresponds to. Then, the model generating unit 11 uses a combination of the rounded IP address and the probabilistic statistical information as learning data, and generates a specific model (hereinafter, referred to as a mask-compatible specific model) by machine learning processing using the learning data. In this case, the probabilistic statistical information generated based on the data set acquired from the IP address log collecting server 100 corresponds to linking information on the region where the IP address is used.
[0031] When generating a specific model compatible with a mask using the second to fourth functions, the learning data generating unit 11A of the model generating unit 11 rounds off several lower-order bits of the IP address by applying a subnet mask to the IP address acquired from the IP address log collecting server 100. Furthermore, the learning data generating unit 11A generates probabilistic statistical information on which regional information the rounded IP address corresponds to, based on a plurality of combinations of the IP address with several bits rounded off by the subnet mask and regional information (regional information acquired from the IP address log collecting server 100) indicating the region in which the IP address is used. The learning unit 11B uses the combination of the rounded IP address and the probabilistic statistical information as learning data, and generates a specific model compatible with a mask by machine learning processing using the learning data.
[0032] In the conventional technology disclosed in the above-mentioned Patent Document 1, representative regional information is determined for each specific subnet mask. In contrast, in this embodiment, for IP addresses rounded off by a specific subnet mask, the content rate of each prefecture code in a predetermined period is calculated as probabilistic statistical information, and machine learning is performed using this probabilistic statistical information. By using probabilistic statistical information, there is an advantage that it is not necessary to determine a representative region in advance, and the learning accuracy of machine learning is easily improved. Note that the IP address itself may be used for machine learning together with the probabilistic statistical information. In this way, it is possible to improve the accuracy of machine learning.
[0033] In this embodiment, the model generation unit 11 first generates a specific model not compatible with masks using the first function, and if the learning accuracy of the model does not exceed a predetermined level, generates a specific model compatible with masks using the second to fourth functions. The second to fourth functions will be described in detail below. The model generation unit 11 first generates a specific model compatible with masks using the second function, and if the learning accuracy of the model does not exceed a predetermined level, generates a specific model compatible with masks using the third function. Also, if the learning accuracy of the specific model compatible with masks generated using the third function does not exceed a predetermined level, generates a specific model compatible with masks using the fourth function. The model generation unit 11 stores in the mask processing unit 13 stage information indicating to which stage of the first to fourth functions the model has progressed.
[0034] For example, it is possible to determine whether the learning accuracy of a specific model exceeds a predetermined level as follows. That is, by inputting the IP address used as learning data to the generated specific model, regional information (prefecture code) is output from the specific model. If the regional information output from the specific model matches the regional information associated with the IP address used as learning data, it is determined to be a correct answer, and the ratio of the number of correct answers to the total number is calculated as the accuracy rate. It is determined whether the accuracy rate exceeds a predetermined threshold (e.g., 80%), and if the accuracy rate exceeds the threshold, it is determined that the learning accuracy exceeds the predetermined level.
[0035] In addition, the data set obtained from the IP address log collection server 100 may be divided into a data set for learning and a data set for verification, and a specific model may be generated using the data set for learning, and then the accuracy rate may be calculated using the data set for verification.
[0036] The second to fourth functions are described in detail below. As the second function, the model generating unit 11 generates a mask-compatible specific model (hereinafter, referred to as a mask / M-compatible specific model) based on a subnet mask / M in which the number of effective bits of the rounded IP address is M bits. In this case, the learning data generating unit 11A applies the subnet mask / M to the IP address acquired from the IP address log collecting server 100, rounding the lower-order few bits of the IP address to generate an IP address with the number of effective bits being the upper M bits.
[0037] Furthermore, the learning data generating unit 11A generates probabilistic statistical information on which regional information the rounded IP address corresponds to, based on a plurality of combinations of an IP address with several bits rounded off by a subnet mask / M and regional information indicating the region where the IP address is used. The learning unit 11B uses the combination of the rounded IP address and the probabilistic statistical information as learning data, and generates a specific model corresponding to the mask / M by machine learning processing using the learning data.
[0038] Fig. 4 is a schematic diagram for explaining the processing contents of the second function of generating a specific model compatible with mask / M. Fig. 4(a) shows an example of processing for applying a subnet mask / M to an IP address. In Fig. 4(a), the leftmost column shows prefecture codes, and the center column shows IP addresses (decimal numbers) without rounding due to the subnet mask, which are information acquired from the IP address log collection server 100. Here, for example, IP addresses and prefecture codes linked to date information from several weeks or months before the date on which the specific model is updated are used.
[0039] The rightmost column shows IP addresses with the lower few bits rounded off by the subnet mask / M. Here, M=24 is used, and an example is shown in which the lower 8 bits of a 32-bit IP address are rounded off to generate an IP address with 24 significant bits (hereafter referred to as IP address / 24 or IP / 24).
[0040] Figure 4(b) shows an example of probabilistic statistical information generated from the information in Figure 4(a). Here, based on a plurality of combinations of the IP address / 24 shown in the rightmost column of Figure 4(a) and the prefecture code shown in the leftmost column of Figure 4(a), probabilistic statistical information on which regional information the IP address / 24 corresponds to is generated.
[0041] For example, for the IP address / 24 = "1.66.100.0" at the top of Figure 4(b), it is shown that the probability of corresponding to the prefecture code "3" is 33% (which means there are two other IP addresses / 24 corresponding to the prefecture code "3"), and the probability of corresponding to the prefecture code "47" is 33%. For the next IP address / 24 = "1.66.101.0", it is shown that the probability of corresponding to the prefecture code "2" is 33%. Note that the illustration of probabilities for other IP addresses / 24 is omitted.
[0042] The learning unit 11B uses the combination of the IP address / 24 shown in the leftmost column of Figure 4(b) and the probabilistic statistical information shown in the second and subsequent columns of Figure 4(b) as learning data, and generates a specific model corresponding to mask / 24 through machine learning processing using the learning data. As described above, the IP addresses shown in the middle column of Figure 4(a) may be further combined to form the learning data.
[0043] As a third function, the model generation unit 11 generates a specific model corresponding to a mask (hereinafter referred to as a specific model corresponding to mask / N) based on a subnet mask / N with the number of valid bits of the rounded IP address being N bits (where M < N). In this case, the learning data generation unit 11A multiplies the IP address obtained from the IP address log collection server 100 by the subnet mask / N to round the lower-order bits of the IP address and generate an IP address with the number of valid bits being the upper N bits.
[0044] Furthermore, the learning data generating unit 11A generates probabilistic statistical information on which regional information the rounded IP address corresponds to, based on a plurality of combinations of an IP address with several bits rounded off by a subnet mask / N and regional information indicating the region in which the IP address is used. The learning unit 11B uses the combination of the rounded IP address and the probabilistic statistical information as learning data, and generates a specific model corresponding to the mask / N by machine learning processing using the learning data.
[0045] Fig. 5 is a schematic diagram for explaining the processing contents of the third function of generating a specific model compatible with mask / N. Fig. 5(a) shows an example of processing for multiplying a subnet mask / N by an IP address. In Fig. 5(a), the leftmost column shows prefecture codes, and the center column shows IP addresses (decimal numbers) without rounding due to the subnet mask, which are information acquired from the IP address log collection server 100. Here, for example, IP addresses and prefecture codes linked to date information from several weeks or months before the date on which the specific model is updated are used.
[0046] The rightmost column shows IP addresses with the lower few bits rounded off by the subnet mask / N. Here, we show an example where N = 25, and an IP address with the most significant bit count of the upper 25 bits is generated by rounding the lower 7 bits of a 32-bit IP address (hereafter referred to as IP address / 25 or IP / 25).
[0047] Figure 5(b) shows an example of probabilistic statistical information generated from the information in Figure 5(a). Here, probabilistic statistical information is generated as to which regional information the IP address / 25 corresponds to, based on multiple combinations of the IP address / 25 shown in the rightmost column of Figure 5(a) and the prefecture code shown in the leftmost column of Figure 5(a). By increasing the number of significant bits of the IP address, the variance in the probability distribution shown by the probabilistic statistical information becomes smaller.
[0048] For example, for prefecture code "3," which has a probability of 33% in IP address / 24, IP address / 25 shows that "1.66.100.0" has a probability of 33%, and "1.66.100.125" has a probability of 0%. Also, for prefecture code "47," which has a probability of 33% in IP address / 24, IP address / 25 shows that "1.66.100.0" has a probability of 0%, and "1.66.100.125" has a probability of 33%. Probabilities are not shown for other IP addresses / 25.
[0049] The learning unit 11B uses a combination of the IP address / 25 shown in the leftmost column of Fig. 5(b) and the probabilistic statistical information shown in the second and subsequent columns of Fig. 5(b) as learning data, and generates a specific model corresponding to the mask / 25 by machine learning processing using the learning data. As described above, the learning data may be configured by further combining the IP address shown in the middle column of Fig. 5(a).
[0050] As a fourth function, the model generation unit 11 generates a specific model compatible with Mask / N in the same manner as the third function, using IP addresses with a collection period shorter than the collection period of IP addresses used when generating a specific model compatible with Mask / N by the third function. In the above-mentioned third function, a first specific model compatible with Mask / N is generated by machine learning processing using learning data consisting of a combination of IP addresses rounded off from IP addresses collected during a first predetermined period (for example, IP addresses linked to date information from several weeks to several months before the date on which the specific model is updated) and probabilistic statistical information.
[0051] In contrast, the fourth function generates a second mask / N-compatible specific model by machine learning processing using learning data consisting of a combination of rounded IP addresses (e.g., IP addresses linked to date information from the day on which the specific model is updated to a few days before) collected during a second specified period that is shorter than the first specified period and probabilistic statistical information.
[0052] By shortening the collection period of IP addresses used for learning data, the variance of the probability distribution shown by the probabilistic statistical information is reduced. Since IP addresses used on mobile devices often change within a few days, reducing the variance of the probability distribution by generating learning data from IP addresses of a short period is effective in generating a specific model for identifying the area where IP addresses used on mobile devices are used.
[0053] The identification target IP acquisition unit 12 acquires an IP address for which a region of use is to be identified (hereinafter, referred to as a region identification target IP address). For example, the identification target IP acquisition unit 12 acquires a plurality of IP addresses stored in the IP address storage unit 101 from the IP address log collection server 100 as the region identification target IP addresses. For example, the identification target IP acquisition unit 12 acquires the most recent IP address that is not used as learning data from the IP address log collection server 100.
[0054] The source of the IP address to be identified does not need to be the same as the source of the IP address used for learning data. That is, the identification target IP acquisition unit 12 may acquire the IP address to be identified from a route different from the IP address log collection server 100. In this case, the acquired IP address may be an IP address associated with any date information.
[0055] The mask processing unit 13 performs a process of applying a subnet mask to the IP address of the area identification target acquired by the identification target IP acquisition unit 12. Here, when a mask / M-compatible identification model is generated by the model generation unit 11 and stored in the model storage unit 14A, the mask processing unit 13 applies the subnet mask / M to the IP address of the area identification target acquired by the identification target IP acquisition unit 12 to generate an IP address with an effective bit number of upper M bits. Also, when a first mask / N-compatible identification model or a second mask / N-compatible identification model is generated by the model generation unit 11 and stored in the model storage unit 14A, the mask processing unit 13 applies the subnet mask / N to the IP address of the area identification target to generate an IP address with an effective bit number of upper N bits.
[0056] The area identification unit 14 inputs the IP address of the area identification target (the IP address without rounding acquired by the identification target IP acquisition unit 12 or the IP address with the lower few bits rounded by the mask processing unit 13) to the identification model in the model storage unit 14A, and outputs area information corresponding to the IP address of the area identification target from the identification model. Here, the model storage unit 14A stores any one of a mask-incompatible identification model, a mask / M compatible identification model, a first mask / N compatible identification model, and a second mask / N compatible identification model, and the area identification unit 14 uses any one of these identification models to output area information corresponding to the IP address.
[0057] That is, when a mask-compatible specific model is not generated because the learning accuracy of the mask-incompatible specific model generated by the model generation unit 11 exceeds a predetermined level, the area identification unit 14 outputs area information corresponding to the IP address using the mask-incompatible specific model stored in the model storage unit 14A. On the other hand, when a mask-compatible specific model is generated because the learning accuracy of the mask-incompatible specific model generated by the model generation unit 11 does not exceed a predetermined level, the area identification unit 14 outputs area information corresponding to the IP address using the mask-compatible specific model stored in the model storage unit 14A.
[0058] Regarding the mask-compatible specific model, if the learning accuracy of the mask / M-compatible specific model generated by the model generation unit 11 exceeds a predetermined level and therefore a mask / N-compatible specific model is not generated, the area identification unit 14 outputs area information corresponding to the IP address using the mask / M-compatible specific model stored in the model storage unit 14A. On the other hand, if the mask / N-compatible specific model is generated because the learning accuracy of the mask / M-compatible specific model generated by the model generation unit 11 does not exceed a predetermined level, the area identification unit 14 outputs area information corresponding to the IP address using the mask / N-compatible specific model stored in the model storage unit 14A.
[0059] Regarding the mask / N-compatible specific model, if the learning accuracy of the first mask / N-compatible specific model generated by the model generation unit 11 exceeds a predetermined level and therefore a second mask / N-compatible specific model is not generated, the area identification unit 14 outputs area information corresponding to the IP address using the first mask / N-compatible specific model stored in the model storage unit 14A. On the other hand, if the learning accuracy of the first mask / N-compatible specific model generated by the model generation unit 11 does not exceed a predetermined level and therefore a second mask / N-compatible specific model is generated, the area identification unit 14 outputs area information corresponding to the IP address using the second mask / N-compatible specific model stored in the model storage unit 14A.
[0060] Fig. 6 is a flowchart showing an example of an operation related to generation of a specific model by the area identification system 10 of this embodiment configured as described above. The flowchart shown in Fig. 6 starts automatically as a batch process when it is time to update the specific model (for example, once a week) or in response to an instruction from a user.
[0061] First, the model generation unit 11 generates a mask-incompatible specific model by the first function (step S1). That is, the model generation unit 11 uses a data set (a combination of IP addresses and area information without rounding by a subnet mask) during a first predetermined period acquired from the IP address log collection server 100 as learning data, and generates a mask-incompatible specific model by machine learning processing using the learning data. Then, the model generation unit 11 calculates the accuracy rate at which correct area information is obtained when an IP address is input to the generated mask-incompatible specific model, and determines whether the learning accuracy exceeds a predetermined level (step S2).
[0062] Here, if the learning accuracy exceeds a predetermined level, the model generation unit 11 stores the generated mask-incompatible specific model in the model storage unit 14A of the area identification unit 14 (step S14), and stores stage information indicating that the generation of the specific model by the first function has ended in the mask processing unit 13 (step S15), and ends the processing of the flowchart shown in Fig. 6. On the other hand, if the learning accuracy does not exceed the predetermined level, the model generation unit 11 generates a mask / M-compatible specific model by the second function (steps S3 to S5).
[0063] That is, the learning data generating unit 11A rounds the lower-order few bits of the IP address to generate an IP address having the most significant M bits by applying a subnet mask / M to the IP address acquired from the IP address log collecting server 100 as a data set for the first predetermined period (step S3). Furthermore, the learning data generating unit 11A generates probabilistic statistical information on which regional information the rounded IP address corresponds to, based on multiple combinations of the IP address with the rounded few bits and regional information indicating the region where the IP address is used (step S4).
[0064] Then, the learning unit 11B uses the combination of the rounded IP address and the probabilistic statistical information as learning data, and generates a specific model compatible with Mask / M by machine learning processing using the learning data (step S5). Next, the model generation unit 11 calculates the accuracy rate at which correct regional information is obtained when an IP address is input to the generated specific model compatible with Mask / M, and determines whether the learning accuracy exceeds a predetermined level (step S6).
[0065] If the learning accuracy exceeds the predetermined level, the model generation unit 11 stores the generated specific model corresponding to Mask / M in the model storage unit 14A of the area identification unit 14 (step S14), and stores stage information indicating that the generation of the specific model by the second function has ended in the mask processing unit 13 (step S15), and ends the processing of the flowchart shown in Fig. 6. On the other hand, if the learning accuracy does not exceed the predetermined level, the model generation unit 11 generates a specific model corresponding to the first Mask / N by the third function (steps S7 to S9).
[0066] That is, the learning data generating unit 11A multiplies the IP address acquired from the IP address log collecting server 100 as a data set for the first predetermined period by the subnet mask / N, thereby rounding off the lower-order few bits of the IP address to generate an IP address with the most significant N bits (step S7).The learning data generating unit 11A also generates probabilistic statistical information on which regional information the rounded IP address corresponds to, based on multiple combinations of the IP address with the rounded off few bits and regional information indicating the region where the IP address is used (step S8).
[0067] Then, the learning unit 11B uses the combination of the rounded IP address and the probabilistic statistical information as learning data, and generates a specific model corresponding to the first mask / N by machine learning processing using the learning data (step S9). Next, the model generation unit 11 calculates the accuracy rate at which correct regional information is obtained when an IP address is input to the generated specific model corresponding to the first mask / N, and determines whether the learning accuracy exceeds a predetermined level (step S10).
[0068] If the learning accuracy exceeds the predetermined level, the model generation unit 11 stores the generated specific model corresponding to the first Mask / N in the model storage unit 14A of the area identification unit 14 (step S14), and stores stage information indicating that the generation of the specific model by the third function has ended in the mask processing unit 13 (step S15), and ends the processing of the flowchart shown in Fig. 6. On the other hand, if the learning accuracy does not exceed the predetermined level, the model generation unit 11 generates a specific model corresponding to the second Mask / N by the fourth function (steps S11 to S13).
[0069] That is, the learning data generating unit 11A multiplies the IP address acquired from the IP address log collecting server 100 as the data set for the second predetermined period by the subnet mask / N, rounding off the lower-order bits of the IP address to generate an IP address having an upper N significant bits (step S14). Note that here, the upper N bits of the IP address for the second predetermined period may be extracted from the upper N bits of the IP address generated in step S7 from the data set for the first predetermined period.
[0070] In addition, the learning data generation unit 11A generates probabilistic statistical information regarding which regional information the rounded IP address corresponds to, based on multiple combinations of the IP address with several bits rounded off and regional information indicating the region in which the IP address is used (step S12).
[0071] Then, the learning unit 11B uses the combination of the rounded IP address and the probabilistic statistical information as learning data, and generates a specific model corresponding to the second mask / N by machine learning processing using the learning data (step S13). Next, the model generation unit 11 stores the generated specific model corresponding to the second mask / N in the model storage unit 14A of the area identification unit 14 (step S14), and stores stage information indicating that the generation of the specific model by the fourth function has ended in the mask processing unit 13 (step S15), and ends the processing of the flowchart shown in FIG.
[0072] Fig. 7 is a flowchart showing an example of an operation related to area identification by the area identification system 10 of this embodiment configured as described above. The flowchart shown in Fig. 7 is started as a batch process automatically at an arbitrary timing (for example, a predetermined time every day) or in response to an instruction from a user at an arbitrary timing.
[0073] First, the identification target IP acquisition unit 12 acquires the IP address of the area identification target for which the area of use is to be identified (step S21). Next, the mask processing unit 13 checks to which stage of the first to fourth functions the generation process of the identification model has progressed by referring to the stage information stored by the model generation unit 11. Here, it is determined whether the generation process of the identification model has progressed to the stages of the second to fourth functions (step S22), and if so, a subnet mask is applied to the IP address of the area identification target acquired in step S21 (step S23). On the other hand, if the generation process of the identification model has ended at the stage of the first function, the process jumps to step S24.
[0074] Next, the area identification unit 14 inputs the IP address of the area identification target (the unarounded IP address acquired by the identification target IP acquisition unit 12 in step S21, or the IP address with the lower-order few bits rounded by the mask processing unit 13 in step S22) to the identification model in the model storage unit 14A, and outputs area information corresponding to the IP address of the area identification target from the identification model (step S24). This ends the process of the flowchart shown in FIG.
[0075] As described above in detail, in this embodiment, a machine learning process is repeatedly performed using learning data consisting of a combination of an IP address and regional information indicating the region where the IP address is used, or an IP address obtained by rounding off a few bits of the IP address using a subnet mask, and probabilistic statistical information regarding the region where the rounded IP address is used, thereby sequentially updating a specification model configured to output regional information when an IP address is input. An IP address to be subjected to region specification is then input to the specification model, and regional information corresponding to the IP address is output from the specification model.
[0076] According to this embodiment configured as described above, a specific model is generated that reflects the relationship between an IP address (or an IP address obtained by rounding off a few bits using a subnet mask) and the area in which the IP address is used, and the most recently updated specific model is used to identify area information from an IP address. Therefore, even for dynamic IP addresses, it is possible to identify the area in which the dynamic IP address is used.
[0077] Furthermore, according to this embodiment, it is not necessary to determine in advance a representative region for an IP address in which several bits have been rounded off by a subnet mask, and it is possible to identify regional information for the rounded IP address by using a specific model generated by machine learning processing using learning data that includes the rounded IP address.
[0078] In addition, according to this embodiment, even if the mask-incompatible specific model cannot obtain regional information, it is possible to specify regional information by using a mask-compatible specific model. In addition, according to this embodiment, by generating a mask-compatible specific model using learning data configured by shortening the target collection period of IP addresses, it is possible to increase the possibility of correctly specifying the use region of IP addresses used in mobile terminals, which are often changed every few days.
[0079] In the above embodiment, the model generating unit 11 has four functions, the first function to the fourth function, for generating the specific model, and generates four types of specific models. However, the model generating unit 11 may have any one, two, or three of these functions. In the above embodiment, the bit numbers M and N of the subnet mask are M=24 and N=25, respectively, but these values are only examples and are not limited to these. In addition, five or more types of specific models may be generated by using three or more types of bit numbers of the subnet mask, using three or more types of periods as the predetermined periods of the IP address used in the learning data, or combining them.
[0080] In the above embodiment, the generation of the specific model and the identification of the regional information using the generated specific model are performed asynchronously, but they may be performed at the same time. For example, the model generation unit 11 may update the specific model once a week, and the region identification unit 14 may identify the regional information after the update is completed.
[0081] In the above embodiment, a prefecture code is used as the area information, but the present invention is not limited to this. For example, a city, town, or village code may be used.
[0082] In the above embodiment, when a specific model is generated by machine learning processing using IP addresses with a subnet mask, the IP addresses of the area identification target are also masked with a subnet mask before being input to the specific model, but the present invention is not limited to this. For example, the IP addresses of the area identification target may be input to the specific model without being masked with a subnet mask.
[0083] In addition, the above-mentioned embodiments are merely examples of the implementation of the present invention, and the technical scope of the present invention should not be interpreted as being limited thereby. In other words, the present invention can be implemented in various forms without departing from the gist or main characteristics thereof. [Explanation of symbols]
[0084] 10. Area-specific systems 11 Model Generation Unit 11A Learning data generation unit 11B Learning Department 12 Specific target IP acquisition section 13 Mask processing section 14 Regional Specific Department 14A Model memory section
Claims
1. a model generation unit that generates a specific model by machine learning processing using learning data consisting of a combination of an unrounded IP address or an IP address obtained by rounding a few bits of the unrounded IP address using a subnet mask and linking information regarding the area where the IP address is used, and that is configured to output area information when the IP address is input; a region identification unit that inputs an IP address of a region identification target to the identification model and outputs region information corresponding to the IP address from the identification model; The model generation unit sequentially updates the specific model by repeatedly executing the machine learning process. A region identification system comprising:
2. The region identification system according to claim 1, characterized in that the model generation unit generates the identification model by machine learning processing using learning data consisting of a combination of the unrounded IP address and the regional information, with regional information indicating the region in which the IP address is used as the linking information for the unrounded IP address.
3. The region identification system according to claim 1, characterized in that the model generation unit generates probabilistic statistical information regarding which regional information the rounded IP address corresponds to based on multiple combinations of an IP address with several bits rounded off by the subnet mask and regional information indicating the region in which the IP address is used, and generates the identification model by machine learning processing using learning data consisting of combinations of the rounded IP address and the probabilistic statistical information as the linking information.
4. The model generation unit A function of generating a specific model that does not support masking by machine learning processing using learning data consisting of a combination of the unrounded IP address and the regional information, with regional information representing a region in which the IP address is used as the linking information for the unrounded IP address; a function of generating probabilistic statistical information for an IP address having several bits rounded off by the subnet mask, based on a plurality of combinations of the rounded IP address and regional information indicating a region in which the IP address is used, to which regional information the rounded IP address corresponds, and generating a specific model corresponding to the mask by machine learning processing using learning data consisting of combinations of the rounded IP address and the probabilistic statistical information as the linking information, generating the mask-compatible specific model when the learning accuracy of the mask-incompatible specific model does not exceed a predetermined level; The region identification unit outputs region information corresponding to the IP address using the mask-incompatible specific model or the mask-compatible specific model.
2. The area identification system according to claim 1.
5. The model generation unit, with respect to the generation of the specific model corresponding to the mask, A function for generating a specific model corresponding to a mask / M based on a subnet mask / M in which the number of effective bits of the rounded IP address is M bits; and generating a specific model corresponding to a mask / N based on a subnet mask / N in which the number of effective bits of the rounded IP address is N bits (where M<N), generating a specific model corresponding to the mask / N when the learning accuracy of the specific model corresponding to the mask / M does not exceed the predetermined level; The area identification unit outputs area information corresponding to the IP address using the mask-incompatible identification model, the mask / M compatible identification model, or the mask / N compatible identification model.
5. The area identification system according to claim 4.
6. The model generation unit, with respect to generation of the specific model corresponding to the mask / N, A function of generating a specific model corresponding to a first mask / N by machine learning processing using learning data consisting of a combination of rounded IP addresses collected during a first predetermined period and the probabilistic statistical information; a function of generating a second mask / N-compatible specific model by machine learning processing using learning data consisting of a combination of IP addresses obtained by rounding IP addresses collected during a second predetermined period shorter than the first predetermined period and the probabilistic statistical information, generating the second mask / N-corresponding specific model when the learning accuracy of the first mask / N-corresponding specific model does not exceed the predetermined level; The area identification unit outputs area information corresponding to the IP address using the mask-incompatible identification model, the mask / M compatible identification model, the first mask / N compatible identification model, or the second mask / N compatible identification model.
6. The area identification system according to claim 5.
Citation Information
Patent Citations
Undeveloped demand information collection method, program therefor, and system therefor
JP2023005926A
System and method for implementing a learning model for predicting the geographic location of an internet protocol address
US20130031033A1
Determining Geographic Locations of Network Devices
US20200036802A1
Method for adaptive location assignment to IP-indexed data streams from partially observable data
US20220086122A1
Ink for ink jet printing
JP1987039675A
