An artificial intelligent system configured to identify grids for a geofence in an area in a map that includes a plurality of independently indexed regions of grids, comprising: a geofence information obtaining module configured to obtain information of a geofence of a geographical region in the map, wherein the map is gridded into a plurality of grids and is divided into a plurality of partitions, each grid of the plurality of grids in the map is associated with a grid index, and grids in each partition are independently indexed; a geofence boundary determination module configured to determine a boundary grid series of the geofence from the plurality of grids; an enclosed area determination module configured to identify at least one enclosed area in the geographical region based on the boundary grid series; a sub-area determination module configured to, upon determining that an enclosed area of the at least one enclosed area crosses two or more partitions of the plurality of partitions, segment the enclosed area into two or more sub-areas so that each sub-area of the two or more sub-areas locates in only one partition of the plurality of partitions; the sub-area determination module also configured to determine boundary grids for each of the two or more sub-areas; an internal grid determination module configured to, for each of the two or more sub-areas, identify, from the plurality of grids, internal grids in the sub-area based on the boundary grids of the sub-area and an index of the partition in which the sub-area locates; and a target grid determination module configured to identify grids in the geographical region by collecting the boundary grids of the two or more sub-areas and the internal grids in the two or more sub-areas. a geofence information obtaining module configured to obtain information of a geofence of a geographical region in the map, wherein the map is gridded into a plurality of grids and is divided into a plurality of partitions, each grid of the plurality of grids in the map is associated with a grid index, and grids in each partition are independently indexed; a geofence boundary determination module configured to determine a boundary grid series of the geofence from the plurality of grids; an enclosed area determination module configured to identify at least one enclosed area in the geographical region based on the boundary grid series; a sub-area determination module configured to, upon determining that an enclosed area of the at least one enclosed area crosses two or more partitions of the plurality of partitions, segment the enclosed area into two or more sub-areas so that each sub-area of the two or more sub-areas locates in only one partition of the plurality of partitions; the sub-area determination module also configured to determine boundary grids for each of the two or more sub-areas; an internal grid determination module configured to, for each of the two or more sub-areas, identify, from the plurality of grids, internal grids in the sub-area based on the boundary grids of the sub-area and an index of the partition in which the sub-area locates; and a target grid determination module configured to identify grids in the geographical region by collecting the boundary grids of the two or more sub-areas and the internal grids in the two or more sub-areas.