Passenger identity recognition method and system for hotel management

Through data set expansion and pixel processing in hotel face recognition technology to generate diversified training samples, the problem of low recognition accuracy under different lights and angles is solved, the stability and accuracy of identity recognition are improved, and the model is enhanced robustness.

CN118736644AInactive Publication Date: 2024-10-01JIAXING VOCATIONAL TECHN COLLEGE
View PDF 0 Cites -1 Cited by

Patent Information

Application Number
CN202410807852.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-10-01
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure CN118736644A_ABST
    Figure CN118736644A_ABST
Patent Text Reader

Abstract

The invention relates to a passenger identity recognition method and system for hotel management. The method comprises the following steps: acquiring a face image of a target passenger; performing data set expansion on the face image of the target passenger to generate a training sample; performing normalization processing on the training sample to obtain a normalized training sample; inputting the normalized training sample into a deep learning model for training to obtain a passenger identity recognition model; and identifying the identity of the passenger to be registered by using the passenger identity identification model. According to the method, the diversity of training samples can be increased by expanding the passenger face image, the model can better learn and understand different face features, the model has higher robustness, interference of the external environment can be better resisted, and the stability and reliability of identity recognition are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of traveler identity recognition, and in particular to a traveler identity recognition method and system for hotel management. Background Art

[0002] In recent years, the introduction of facial recognition technology has brought revolutionary changes to hotel management. This technology uses computer vision and deep learning algorithms to quickly compare the facial images of travelers captured on-site with the ID photos stored in the database, thereby completing identity confirmation within a few seconds, greatly shortening the check-in time and improving service efficiency.

[0003] At present, many hotels have begun to use facial recognition technology to realize self-service check-in for travelers, but the existing methods still have some problems, such as low accuracy of facial recognition under different lighting, angles and expressions. Summary of the invention

[0004] To solve the above problems, an object of the embodiments of the present invention is to provide a method and system for identifying a traveler for hotel management.

[0005] A traveler identification method for hotel management, comprising:

[0006] Step 1: Obtain the facial image of the target passenger;

[0007] Step 2: Expand the dataset of target passengers’ facial images to generate training samples;

[0008] Step 3: normalizing the training samples to obtain normalized training samples;

[0009] Step 4: Input the normalized training samples into the deep learning model for training to obtain a passenger identity recognition model;

[0010] Step 5: Use the passenger identification model to complete the identification of passengers to be registered.

[0011] Preferably, the step 2: expanding the data set of the target passenger's facial image to generate training samples includes:

[0012] Step 2.1: De-noising the face image of the target passenger to obtain a denoised face image;

[0013] Step 2.2: Obtain the pixel value of each point in the denoised face image;

[0014] Step 2.3: Construct an adaptive pixel adjustment formula based on the pixel value of each point in the denoised face image;

[0015] Step 2.4: Using the adaptive pixel adjustment formula to process the pixel value of each point in the denoised face image to obtain an adjusted face image;

[0016] Step 2.5: Stretch and compensate each pixel of the adjusted face image to obtain a training sample.

[0017] Preferably, the step 2.3: constructing an adaptive pixel adjustment formula according to the pixel value of each point in the denoised face image comprises:

[0018] An adaptive pixel adjustment formula is constructed according to the pixel mean, maximum value and minimum value of each point in the denoised face image; wherein the adaptive pixel adjustment formula is:

[0019]

[0020] in, represents the pixel mean, Represents the minimum pixel value, Indicates the maximum value of the pixel, S c Represents the pixel value of the denoised face image at any position, represents the adjusted face image, L represents the first preset value, Indicates that the pixel value is less than or equal to S c % of.

[0021] Preferably, the step 2.5: stretching and compensating each pixel of the adjusted face image to obtain a training sample comprises:

[0022] Using the formula:

[0023]

[0024] Each pixel of the adjusted face image is stretched and compensated to obtain a training sample; where I r (x,y) represents the pixel value of the denoised face image in the R channel. It represents the pixel mean of the adjusted face image in the R channel, I b (x,y) represents the pixel value of the denoised face image in channel B. It represents the pixel mean of the adjusted face image in the B channel, I g (x,y) represents the pixel value of the denoised face image in the G channel. represents the pixel mean of the adjusted face image in the G channel, a represents the compensation coefficient, and I re (x, y) represents the pixel value of the training sample image in the R channel, I ge (x, y) represents the pixel value of the training sample image in the G channel, I be(x, y) represents the pixel value of the training sample image in the B channel.

[0025] Preferably, in step 2.5, it also includes:

[0026] Stretching and compensating each pixel of the adjusted face image to obtain a stretched and compensated image, evaluating each stretched and compensated image, and using the images that pass the evaluation as training samples;

[0027] Among them, the evaluation formula of the image after stretching and compensation is:

[0028]

[0029] Among them, MSE represents the mean square error evaluation index, M represents the length of the image after stretching and compensation, N represents the width of the image after stretching and compensation, I(i,j) represents the pixel value of the denoised face image at (i,j), R(i,j) represents the pixel value of the denoised face image at (i,j), AG represents the gradient error evaluation index, Represents the gradient value of the image in the x direction after stretching and compensation. Indicates the gradient value in the y direction of the image after stretching and compensation.

[0030] Preferably, the step 2.1: performing denoising on the face image of the target passenger to obtain a denoised face image comprises:

[0031] The face image of the target passenger is input into the filter to obtain a denoised face image; wherein the filter is:

[0032]

[0033] Among them, output(x,y) represents the face image of the target passenger, input(x+i,y+j) represents the pixel value of the face image of the target passenger at point (x+i,y+j), and N represents the size of the filter.

[0034] Preferably, in step 2, it also includes:

[0035] The facial image of the target passenger is input into the neural network image degradation model and trained to obtain training samples; the loss function in the training process is:

[0036]

[0037] Among them, Image HR is the face image of the target passenger, Image LRis the image with random noise added, Net is the output of the neural network image degradation model, W is the width of the target passenger’s face image, and H is the height of the target passenger’s face image.

[0038] The present invention also provides a passenger identification system for hotel management, comprising:

[0039] A face image acquisition module is used to acquire the face image of the target passenger;

[0040] The data set expansion module is used to expand the data set of the target passenger's facial images to generate training samples;

[0041] A normalization module, used for performing normalization processing on the training samples to obtain normalized training samples;

[0042] A training module is used to input the normalized training samples into the deep learning model for training to obtain a passenger identity recognition model;

[0043] The identity recognition module is used to complete the identity recognition of the passengers to be registered using the passenger identity recognition model.

[0044] The present invention also provides a computer-readable storage medium having a computer program stored thereon, characterized in that when the computer program is executed by a processor, the steps in the above-mentioned method for identifying a traveler's identity for hotel management are implemented.

[0045] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0046] The present invention relates to a method for identifying a traveler for hotel management. Compared with the prior art, the present invention can increase the diversity of training samples by expanding traveler facial images, which helps the model to better learn and understand different facial features, making the model more robust and better able to resist interference from the external environment, thereby improving the stability and reliability of identity recognition.

[0047] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 paying creative work.

[0049] Figure 1A flow chart of a passenger identity identification method for hotel management in an embodiment provided by the present invention;

[0050] Figure 2 This is a schematic diagram of a traveler identity recognition system for hotel management in an embodiment provided by the present invention. DETAILED DESCRIPTION

[0051] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.

[0052] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0053] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0054] See also Figure 1 , a traveler identification method for hotel management, comprising:

[0055] Step 1: Obtain the facial image of the target passenger;

[0056] Step 2: Expand the dataset of target passengers’ facial images to generate training samples;

[0057] Furthermore, step 2 includes:

[0058] Step 2.1: De-noising the face image of the target passenger to obtain a denoised face image;

[0059] In step 2.1, the present invention can input the face image of the target passenger into a filter to obtain a denoised face image; wherein the filter is:

[0060]

[0061] Among them, output(x,y) represents the face image of the target passenger, input(x+i,y+j) represents the pixel value of the face image of the target passenger at the point (x+i,y+j), and N represents the size of the filter, which is generally a square of N*N.

[0062] Step 2.2: Obtain the pixel value of each point in the denoised face image;

[0063] Step 2.3: Construct an adaptive pixel adjustment formula based on the pixel value of each point in the denoised face image;

[0064] The step 2.3: constructing an adaptive pixel adjustment formula according to the pixel value of each point in the denoised face image, including:

[0065] In actual applications, when collecting facial images of target passengers, facial images are generally exposed to different lights. Different types of lights have different color temperatures. If a balance calibration is not performed, the colors in the image may deviate from the real ones. Based on this, the present invention adopts an adaptive pixel adjustment formula to calibrate the image.

[0066] An adaptive pixel adjustment formula is constructed according to the pixel mean, maximum value and minimum value of each point in the denoised face image; wherein the adaptive pixel adjustment formula is:

[0067]

[0068] in, represents the pixel mean, Represents the minimum pixel value, Indicates the maximum value of the pixel, S c Represents the pixel value of the denoised face image at any position, represents the adjusted face image, L represents the first preset value, Indicates that the pixel value is less than or equal to S c % of.

[0069] Step 2.4: Using the adaptive pixel adjustment formula to process the pixel value of each point in the denoised face image to obtain an adjusted face image;

[0070] Step 2.5: Stretch and compensate each pixel of the adjusted face image to obtain a training sample.

[0071] In step 2.5, the present invention may adopt the formula:

[0072]

[0073] Each pixel of the adjusted face image is stretched and compensated to obtain a training sample; where I r (x,y) represents the pixel value of the denoised face image in the R channel. It represents the pixel mean of the adjusted face image in the R channel, I b (x,y) represents the pixel value of the denoised face image in channel B. It represents the pixel mean of the adjusted face image in the B channel, I g (x,y) represents the pixel value of the denoised face image in the G channel. represents the pixel mean of the adjusted face image in the G channel, a represents the compensation coefficient, and I re (x, y) represents the pixel value of the training sample image in the R channel, I ge (x, y) represents the pixel value of the training sample image in the G channel, I be (x, y) represents the pixel value of the training sample image in the B channel.

[0074] By stretching and compensating pixels, a face image with certain changes can be generated, so that the model can learn more features of different angles, lighting conditions, expressions, etc. during the training process, thereby improving the generalization ability and robustness of the model. In addition, the present invention can also help reduce overfitting by stretching and compensating pixels, thereby improving the performance and effect of the model. Therefore, stretching and compensating pixels of the adjusted face image can effectively improve the training effect and accuracy of the model.

[0075] It should be noted that, after stretching and compensating each pixel point of the adjusted face image to obtain a stretched and compensated image, each stretched and compensated image is evaluated, and the image that passes the evaluation is used as a training sample;

[0076] Among them, the evaluation formula of the image after stretching and compensation is:

[0077]

[0078] Among them, MSE represents the mean square error evaluation index, M represents the length of the image after stretching and compensation, N represents the width of the image after stretching and compensation, I(i,j) represents the pixel value of the denoised face image at (i,j), R(i,j) represents the pixel value of the denoised face image at (i,j), AG represents the gradient error evaluation index, Represents the gradient value of the image in the x direction after stretching and compensation. Indicates the gradient value in the y direction of the image after stretching and compensation.

[0079] By evaluating the generated images, the present invention can screen out facial images with higher quality and more in line with actual conditions as training samples, which can avoid the interference of noise and erroneous data on the model and improve the quality and accuracy of the data.

[0080] Step 3: normalizing the training samples to obtain normalized training samples;

[0081] Normalization can make the distribution of input sample data more uniform, which is conducive to the model converging to the optimal solution more quickly. The present invention can achieve this by using the maximum and minimum normalization method.

[0082] Step 4: Input the normalized training samples into the deep learning model for training to obtain a passenger identity recognition model;

[0083] Step 5: Use the passenger identification model to complete the identification of passengers to be registered.

[0084] In the embodiment of the present invention, the present invention can also input the face image of the target passenger into the neural network image degradation model to perform training to obtain training samples; wherein the loss function in the training process is:

[0085]

[0086] Among them, Image HR is the face image of the target passenger, Image LR is the image with random noise added, Net is the output of the neural network image degradation model, W is the width of the target passenger’s face image, and H is the height of the target passenger’s face image.

[0087] The present invention can simulate factors such as noise, distortion or deformation that may exist in real scenes by performing degradation processing on face images, so as to make the model more robust and better adapt to situations in various practical environments.

[0088] The present invention can increase the diversity of training samples by expanding passenger facial images, which helps the model to better learn and understand different facial features, makes the model more robust, can better resist interference from the external environment, and improves the stability and reliability of identity recognition.

[0089] The present invention also provides a passenger identification system for hotel management, comprising:

[0090] A face image acquisition module is used to acquire the face image of the target passenger;

[0091] The data set expansion module is used to expand the data set of the target passenger's facial images to generate training samples;

[0092] A normalization module, used for performing normalization processing on the training samples to obtain normalized training samples;

[0093] A training module is used to input the normalized training samples into the deep learning model for training to obtain a passenger identity recognition model;

[0094] The identity recognition module is used to complete the identity recognition of passengers to be registered using the passenger identity recognition model.

[0095] The present invention also provides a computer-readable storage medium having a computer program stored thereon, characterized in that when the computer program is executed by a processor, the steps in the above-mentioned method for identifying a traveler's identity for hotel management are implemented.

[0096] Compared with the prior art, the beneficial effects of a computer-readable storage medium provided by the present invention are the same as the beneficial effects of a passenger identity identification method for hotel management described in the above technical solution, and are not described in detail here.

[0097] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technical solution that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A method for identifying a traveler for hotel management, characterized in that: include: Step 1: Obtain the facial image of the target passenger; Step 2: Expand the dataset of target passengers’ facial images to generate training samples; Step 3: normalizing the training samples to obtain normalized training samples; Step 4: Input the normalized training samples into the deep learning model for training to obtain a passenger identity recognition model; Step 5: Use the passenger identification model to complete the identification of passengers to be registered.

2. A method for identifying a traveler for hotel management according to claim 1, characterized in that: The step 2: expanding the data set of the target passenger's facial image to generate training samples, includes: Step 2.1: De-noising the face image of the target passenger to obtain a denoised face image; Step 2.2: Obtain the pixel value of each point in the denoised face image; Step 2.3: Construct an adaptive pixel adjustment formula based on the pixel value of each point in the denoised face image; Step 2.4: Using the adaptive pixel adjustment formula to process the pixel value of each point in the denoised face image to obtain an adjusted face image; Step 2.5: Stretch and compensate each pixel of the adjusted face image to obtain a training sample.

3. A method for identifying a traveler for hotel management according to claim 2, characterized in that: The step 2.3: constructing an adaptive pixel adjustment formula according to the pixel value of each point in the denoised face image, including: An adaptive pixel adjustment formula is constructed according to the pixel mean, maximum value and minimum value of each point in the denoised face image; wherein the adaptive pixel adjustment formula is: in, represents the pixel mean, Represents the minimum pixel value, Indicates the maximum value of the pixel, S c Represents the pixel value of the denoised face image at any position, represents the adjusted face image, L represents the first preset value, Indicates that the pixel value is less than or equal to S c % of.

4. A method for identifying a traveler for hotel management according to claim 3, characterized in that: The step 2.5: stretching and compensating each pixel of the adjusted face image to obtain a training sample, includes: Using the formula: Each pixel of the adjusted face image is stretched and compensated to obtain a training sample; where I r (x, y) represents the pixel value of the denoised face image in the R channel, I r It represents the pixel mean of the adjusted face image in the R channel, I b (x,y) represents the pixel value of the denoised face image in channel B. It represents the pixel mean of the adjusted face image in the B channel, I g (x,y) represents the pixel value of the denoised face image in the G channel. represents the pixel mean of the adjusted face image in the G channel, a represents the compensation coefficient, and I re (x, y) represents the pixel value of the training sample image in the R channel, I ge (x, y) represents the pixel value of the training sample image in the G channel, I be (x, y) represents the pixel value of the training sample image in the B channel.

5. A method for identifying a traveler for hotel management according to claim 4, characterized in that: In the step 2.5, it also includes: Stretching and compensating each pixel of the adjusted face image to obtain a stretched and compensated image, evaluating each stretched and compensated image, and using the images that pass the evaluation as training samples; Among them, the evaluation formula of the image after stretching and compensation is: Among them, MSE represents the mean square error evaluation index, M represents the length of the image after stretching and compensation, N represents the width of the image after stretching and compensation, I(i,j) represents the pixel value of the denoised face image at (i,j), R(i,j) represents the pixel value of the denoised face image at (i,j), AG represents the gradient error evaluation index, Represents the gradient value of the image in the x direction after stretching and compensation. Indicates the gradient value in the y direction of the image after stretching and compensation.

6. A method for identifying a traveler for hotel management according to claim 5, characterized in that: The step 2.1: performing denoising on the face image of the target passenger to obtain a denoised face image, comprises: The face image of the target passenger is input into the filter to obtain a denoised face image; wherein the filter is: Among them, output(x,y) represents the face image of the target passenger, input(x+i,y+j) represents the pixel value of the face image of the target passenger at point (x+i,y+j), and N represents the size of the filter.

7. A method for identifying a traveler for hotel management according to claim 6, characterized in that: In the step 2, it also includes: The facial image of the target passenger is input into the neural network image degradation model and trained to obtain training samples; the loss function in the training process is: Among them, Image HR is the face image of the target passenger, Image LR is the image with random noise added, Net is the output of the neural network image degradation model, W is the width of the target passenger’s face image, and H is the height of the target passenger’s face image.

8. A passenger identification system for hotel management, characterized in that: include: A face image acquisition module is used to acquire the face image of the target passenger; The data set expansion module is used to expand the data set of the target passenger's facial images to generate training samples; A normalization module, used for performing normalization processing on the training samples to obtain normalized training samples; A training module is used to input the normalized training samples into the deep learning model for training to obtain a passenger identity recognition model; The identity recognition module is used to complete the identity recognition of the passengers to be registered using the passenger identity recognition model.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of a traveler identification method for hotel management as described in any one of claims 1 to 7 are implemented.