Passenger information system playing format recommendation method and device and electronic equipment

By generating an initial layout population and using a metaheuristic algorithm for iterative optimization, the problems of difficulty in satisfying user preferences and high labor costs in traditional layout production methods are solved, realizing intelligent layout generation and rapid updates, and improving the operational efficiency of the passenger information system.

CN116431842BActive Publication Date: 2026-01-06INST OF COMPUTING TECH CHINA ACAD OF RAILWAY SCI +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310231987.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-10
Publication Date
2026-01-06
Estimated Expiration
2043-03-10

AI Technical Summary

Technical Problem

Traditional passenger information system layout design methods are difficult to meet user preferences, take a long time to develop, have high labor costs, and are difficult to update quickly.

Method used

By generating an initial pattern population, a metaheuristic algorithm is used to iteratively optimize the pattern population and generate recommended patterns, including selection, crossover, and mutation operations, until a preset threshold is met, thus realizing intelligent pattern generation and updating.

Benefits of technology

It shortens the layout creation and update process, saves labor costs, improves the operational efficiency of the passenger information system, and enables continuous optimization of the layout based on user preferences.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116431842B_ABST
    Figure CN116431842B_ABST
Patent Text Reader

Abstract

This invention provides a method, apparatus, and electronic device for recommending playback layouts in a passenger information system. The method involves generating an initial layout population based on preset layout parameters; converting this initial layout population into multiple previewable and rating layout images according to layout decoding rules; and pushing these previewable and rating images to the user terminal. In response to the ratings of each layout image from the user terminal, a metaheuristic algorithm is used to iteratively optimize the initial layout population, generating at least one recommended layout, which is then recommended to the user terminal. This achieves intelligent layout generation, shortens the layout production and update process, saves labor costs, and can be continuously optimized based on user preferences, thereby improving the operational efficiency of the passenger information system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of rail transit information technology, and in particular to a method, apparatus, and electronic device for recommending playback formats in a passenger information system. Background Technology

[0002] Passenger information systems (CIS) are widely used in modern urban rail transit to provide passengers with diverse multimedia information services, including train operation information, network operation information, convenience information, and emergency evacuation information. As a crucial component of the passenger information system's information dissemination, the system's presentation layout plays a vital role in displaying diverse information to passengers in a neat, aesthetically pleasing, and comprehensive manner. Currently, the layout production process involves interface designers creating the layout, operators editing and setting it in the network management system, and finally publishing it through the playback terminal. However, this process may not produce layouts that meet user preferences, makes it difficult to meet the need for rapid layout updates, and because the layout includes many component types, each requiring various attribute settings, and involves previewing after editing, the production process is time-consuming and labor-intensive, impacting the efficiency of rail transit operations. Summary of the Invention

[0003] This invention provides a method, apparatus, and electronic device for recommending playback layouts in a passenger information system, which addresses the shortcomings of traditional layout production methods that are difficult to meet user preferences and rapid update needs, and that production takes a long time and incurs high labor costs.

[0004] This invention provides a method for recommending playback formats in a passenger information system, comprising:

[0005] Generate an initial layout population based on the layout preset parameters;

[0006] According to the layout decoding rules, the initial layout population is converted into multiple layout effect images for users to preview and rate, and the multiple layout effect images for users to preview and rate are pushed to the user terminal.

[0007] In response to the rating of each layout image provided by the user terminal, the initial layout population is iteratively optimized using a metaheuristic algorithm to generate at least one recommended layout, and the at least one recommended layout is recommended to the user terminal.

[0008] According to the passenger information system playback format recommendation method provided by the present invention, the initial format population includes multiple initial format individuals, and the step of iteratively optimizing the initial format population using a metaheuristic algorithm to generate at least one recommended format includes:

[0009] The appropriate value for each initial layout is calculated based on the score of each layout rendering;

[0010] Based on the fitness value of each individual pattern, several excellent pattern individuals are selected from the initial pattern population;

[0011] Perform cross-operations on the aforementioned multiple excellent layout individuals;

[0012] Mutate the pattern individuals generated after the crossover operation to obtain new pattern individuals;

[0013] The multiple new layout individuals are converted into multiple layout effect images for users to preview and rate. The appropriate value of each new layout individual is calculated based on the rating of each layout effect image.

[0014] Repeat the above selection, crossover, and mutation operations until at least one recommended version with a score that meets the preset threshold is generated.

[0015] According to the passenger information system playback format recommendation method provided by the present invention, the step of selecting multiple excellent playback formats from the initial playback format population based on the fitness value of each playback format individual includes:

[0016] Based on the fitness value of each individual pattern, a selection strategy is used to select superior pattern individuals from the initial pattern population.

[0017] According to the passenger information system playback format recommendation method provided by the present invention, the cross-operation on the plurality of excellent individual formats includes:

[0018] When the generated random number is less than the preset crossover rate, crossover operation is performed on the crossover positions of each component in the excellent layout individual. The selection range of the crossover positions is a preset position in the encoding of each component.

[0019] According to the passenger information system playback format recommendation method provided by the present invention, the step of performing a mutation operation on the individual formats generated after the crossover operation to obtain a new individual format includes:

[0020] When the generated random number is less than the preset mutation rate, the mutation bit of the pattern individual generated after the crossover operation is mutated. The selection range of the mutation bit is the preset bit in the code of each component in the pattern individual generated after the crossover.

[0021] Generate a new version of the individual based on the mutated component code.

[0022] According to the passenger information system playback format recommendation method provided by the present invention, the step of generating an initial format population based on preset format parameters includes:

[0023] Generate a layout encoding format based on the preset layout parameters;

[0024] Based on the value range of each parameter in the layout encoding format, assign values ​​to the area occupied by each component in the layout encoding format and the corresponding playback parameters to generate individual layouts;

[0025] An initialized pattern population is generated based on the pattern individuals corresponding to the preset population size.

[0026] According to the passenger information system playback layout recommendation method provided by the present invention, the step of converting the multiple newly generated layout individuals into multiple layout effect images for user preview and rating includes:

[0027] Decode the multiple newly generated individual layouts to obtain the component information in each newly generated individual layout;

[0028] Determine whether there is overlap between components in the layout based on the component parameters of each component in the component information;

[0029] If so, update the values ​​of the individual layout code bits according to the adjusted layout, and decode the updated layout individual to obtain the updated component information and generate a layout effect diagram for users to preview and rate.

[0030] The layout adjustment method includes: when there are two overlapping components, the overlapping components in the layout preview are adaptively adjusted according to the principle of evenly dividing the overlapping area, and the direction of the dividing line is determined according to the ratio of the width and height of the overlapping area; when there are more than two overlapping components, the principle of priority for the upper left position is adopted, and the component ranked on the left in the horizontal position occupies the overlapping area involved, and the component ranked at the top in the vertical position occupies the overlapping area involved.

[0031] The passenger information system playback format recommendation method provided by the present invention further includes:

[0032] Store recommended layouts that meet the preset threshold in the layout database;

[0033] Receive the user's layout requirements and match the layout requirements with layouts in the layout database that meet a preset threshold.

[0034] A layout rendering is generated based on the successfully matched layout, and the layout rendering is pushed to the user terminal.

[0035] The present invention also provides a device for recommending playback formats in a passenger information system, comprising:

[0036] The generation module is used to generate an initial layout population based on preset layout parameters.

[0037] The conversion module is used to convert the initial layout population into multiple layout effect images for users to preview and rate according to the layout decoding rules, and push the multiple layout effect images for users to preview and rate to the user terminal.

[0038] An optimization module is used to respond to the rating of each layout effect image fed back by the user terminal, use a metaheuristic algorithm to iteratively optimize the initial layout population, generate at least one recommended layout, and recommend the at least one recommended layout to the user terminal.

[0039] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the passenger information system playback format recommendation method as described above.

[0040] The present invention provides a method, apparatus, and electronic device for recommending playback layouts in a passenger information system. This method generates an initial layout population based on preset layout parameters; converts the initial layout population into multiple previewable and rating layout images according to layout decoding rules; pushes these images to the user terminal; and in response to the ratings of each layout image from the user terminal, iteratively optimizes the initial layout population using a metaheuristic algorithm to generate at least one recommended layout. This at least one recommended layout is then recommended to the user terminal, achieving intelligent layout generation, shortening the layout production and update process, saving labor costs, and continuously optimizing based on user preferences to improve the operational efficiency of the passenger information system. Attached Figure Description

[0041] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0042] Figure 1 This is one of the flowcharts illustrating the passenger information system playback format recommendation method provided by the present invention;

[0043] Figures 2(a) to 2(d) This is a schematic diagram of overlapping component segmentation in the layout preview provided by the present invention;

[0044] Figure 3 This is a schematic diagram of the page layout individual generation and decoding process provided by the present invention;

[0045] Figure 4 This is the second flowchart illustrating the passenger information system playback format recommendation method provided by the present invention;

[0046] Figure 5 This is a schematic diagram of the cross operator designed based on the layout encoding provided by the present invention;

[0047] Figure 6 This is a schematic diagram of the mutation operator designed based on the layout encoding provided by the present invention;

[0048] Figure 7 This is the third flowchart illustrating the passenger information system playback format recommendation method provided by the present invention;

[0049] Figure 8 This is the fourth flowchart of the passenger information system playback format recommendation method provided by the present invention;

[0050] Figure 9 This is a schematic diagram of the structure of the passenger information system playback format recommendation device provided by the present invention;

[0051] Figure 10 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation

[0052] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0053] Figure 1 A flowchart of the passenger information system playback format recommendation method provided in the embodiments of the present invention is shown below. Figure 1 As shown, the passenger information system playback format recommendation method provided in this embodiment of the invention includes:

[0054] Step 101: Generate an initial layout population based on the layout preset parameters;

[0055] In this embodiment of the invention, generating an initial layout population based on preset layout parameters includes:

[0056] Step 1011: Generate the layout encoding format according to the layout preset parameters;

[0057] The layout preset parameters include required parameters and optional parameters. Required parameters include layout size, required component types, required number of each type of component, display ratio of each type of component, minimum size of each type of component, maximum size of each type of component, horizontal position definition of each component, and vertical position definition of each component. Optional parameters include parameters that affect the playback effect of components when the layout is played, such as the static and dynamic parameters of the message component, playback direction, playback speed, and font size, and the time representation method and time language parameters of the time component. Users can preset these parameters when they have specific requirements for component playback, while optional parameters can be set to default.

[0058] Step 1012: Based on the value range of each parameter in the layout encoding format, assign values ​​to the area occupied by each component in the layout encoding format and the corresponding playback parameters to generate individual layouts;

[0059] Step 1013: Generate an initial pattern population based on the pattern individuals corresponding to the preset population size.

[0060] Step 102: According to the layout decoding rules, the initial layout population is converted into multiple layout effect images for users to preview and rate, and the multiple layout effect images for users to preview and rate are pushed to the user terminal.

[0061] In this embodiment of the invention, multiple newly generated layouts are converted into multiple layout effect images for users to preview and rate, including:

[0062] Step 1021: Decode multiple new template individuals to obtain the component information in each new template individual;

[0063] Step 1022: Determine whether there is overlap between components in the layout based on the component parameters of each component in the component information. If yes, proceed to step 1023; otherwise, proceed to step 1024.

[0064] In this embodiment of the invention, the presence or absence of overlap between components in the layout can be determined based on parameters such as the position, width, and height of the components.

[0065] Step 1023: Update the value of the individual layout code bit according to the adjusted layout, and decode the updated layout individual to obtain the updated component information and generate a layout effect diagram for users to preview and rate.

[0066] In this embodiment of the invention, the layout adjustment method includes:

[0067] When there are two overlapping components, the overlapping components in the layout preview are adaptively adjusted according to the principle of evenly dividing the overlapping area, and the direction of the dividing line is determined according to the ratio of the width to the height of the overlapping area.

[0068] As shown in Figure 2(a), when two components overlap, if the width of the overlapping area is less than the height of the overlapping area, the longitudinal direction is used as the dividing line of the overlapping area, and the division result is shown in Figure 2(b).

[0069] As shown in Figure 2(c), when two components overlap, if the width of the overlapping area is greater than the height of the overlapping area, the horizontal direction is used as the dividing line of the overlapping area, and the division result is shown in Figure 2(d).

[0070] When the number of overlapping components exceeds two, the left-hand priority principle is adopted. The component that is on the left in the horizontal position occupies the overlapping area it is involved in, and the component that is on the top in the vertical position occupies the overlapping area it is involved in.

[0071] Step 1024: Generate a layout mockup for users to preview and rate based on the component information.

[0072] When newly generated layout individuals, after cross-pollination and mutation, have overlapping areas between components in the global area, if there are two overlapping components, the overlapping areas are evenly distributed, and the direction of the dividing line is determined based on the width-to-height ratio of the overlapping areas. If there are more than two overlapping components, the left-hand priority principle is adopted, that is, starting horizontally, the component ranked to the left occupies its overlapping area, and then vertically, the component ranked higher occupies its overlapping area. The values ​​of each bit of the layout individual code are updated according to the adjusted layout, which can adaptively adjust the layout and improve the user viewing experience.

[0073] like Figure 3 As shown, firstly, the individual layout coding format (301) is generated. The number of coding rows is defined according to the specific number of components, and the number of coding columns in each row is defined according to the component type. Each component code includes component type F, horizontal position Lo, vertical position Tr, and component width and height ratio P. w P h Nine columns of basic information: x-axis (X), y-axis (Y), width (W), and height (H);

[0074] In this embodiment of the invention, the component types include: video, image, ATS, time, and message, with type codes of 1, 2, 3, 4, and 5, respectively; the component attributes include the component's aspect ratio, minimum aspect ratio, and maximum aspect ratio; the orientation information includes horizontal position and vertical position, wherein the horizontal position includes three positions: left, center, and right, which are encoded using 1, 2, and 3, respectively, and the vertical position includes three positions: top, center, and bottom, which are encoded using 1, 2, and 3, respectively. In some specific embodiments, the preset layout includes five components (302), namely video (303), ATS (304), time (305), image (306), and message (307). Among them, the video, ATS, and image component types are not configured with playback parameters; the time component type is set with time format parameters, where the parameter hour represents 12-hour format or 24-hour format, with encodings of 1 and 2 respectively, and the parameter lang represents the time language as Chinese or English, with encodings of 1 and 2 respectively; the message component type is set with playback parameters, including message static / dynamic parameters play, playback direction parameters dirt, playback speed parameters v, and font size (308). Among them, the parameter play has two types: dynamic and static, with encodings of 1 and 0 respectively; the parameter dirt has two types: horizontal playback and vertical playback, with encodings of 1 and 2 respectively; the parameter v is a real number encoding, with the unit being words per second; and the parameter font has three types: large, medium, and small, with encodings of 1, 2, and 3 respectively.

[0075] After the encoding is completed, a value is randomly selected from the range of values ​​of each parameter of each component to generate a specific layout encoding individual (309);

[0076] The encoding format is defined as follows:

[0077]

[0078] Where P represents the individual layout, and T1 to T... c These are the various components in the layout, and the component information format is shown in the following formula:

[0079] T = [F Lo Tr P] w P h XYWH At]

[0080] Where F is the type number corresponding to the component, Lo is the vertical position number of the component, Tr is the horizontal position number of the component, and P... w P h X and Y represent the ratio of the width to the height of the component, respectively. X and Y are the horizontal and vertical coordinates of the top left corner of the area occupied by the component in the layout. W and H are the width and height of the area occupied by the component in the layout, respectively. At is the playback parameter array corresponding to the type of the component.

[0081] Finally, the individual layout codes are decoded to obtain the information of each component and generate a visual layout effect diagram. In some specific embodiments, the decoding information of the first component is a video type component, located at the top vertically and on the left horizontally, with a component aspect ratio of 16:9, a horizontal and vertical coordinate of (0, 0), a width of 1280, and a height of 720 (310); the decoding information of the second component is an ATS type component, located at the top vertically and on the right horizontally, with a component aspect ratio of 1:1, a horizontal and vertical coordinate of (1280, 0), a width of 640, and a height of 640 (311); the decoding information of the third component is a time type component, located in the middle vertically and on the right horizontally, with a component aspect ratio of... 2:1, with horizontal and vertical coordinates of (1280, 640), width of 640, height of 320, using 24-hour clock, and Chinese display (312); the fourth component's decoding information is an image type component, located on the lower vertical side and the left horizontal side, with a component width-to-height ratio of 1:3, horizontal and vertical coordinates of (0, 720), width of 120, and height of 360 (313); the fifth component's decoding information is a message type component, located on the lower vertical side and the right horizontal side, with no fixed component width-to-height ratio, horizontal and vertical coordinates of (120, 960), width of 1800, height of 120, using dynamic, left and right playback, movement speed of 1 character per second, and message font size of medium (314).

[0082] Step 103: In response to the rating of each layout image provided by the user terminal, use a metaheuristic algorithm to iteratively optimize the initial layout population, generate at least one recommended layout, and recommend at least one recommended layout to the user terminal.

[0083] The traditional process for creating presentation layouts for passenger information systems involves several steps: first, interface designers create the layout; then, operations staff edit and set it in the network management system; and finally, it is published through the playback terminal. However, this layout presentation often fails to meet user preferences and hinders rapid updates. Because the layout contains numerous component types, each requiring various attribute settings, and involves editing and previewing, the production process is time-consuming, labor-intensive, and impacts the operational efficiency of rail transit.

[0084] The passenger information system playback layout recommendation method provided in this invention generates an initial layout population based on preset layout parameters; converts the initial layout population into multiple layout effect images for user preview and rating according to layout decoding rules, and pushes these multiple layout effect images to the user terminal; responds to the rating of each layout effect image fed back by the user terminal, iteratively optimizes the initial layout population using a metaheuristic algorithm to generate at least one recommended layout, and recommends at least one recommended layout to the user terminal, thereby realizing intelligent layout generation, shortening the layout production and update process, saving labor costs, and continuously optimizing according to user preferences to improve the operational efficiency of the passenger information system.

[0085] Based on any of the above embodiments, such as Figure 4 As shown, step 103 uses a metaheuristic algorithm to iteratively optimize the initial template population, generating at least one recommended template, specifically including:

[0086] Step 401: Calculate the suitability value for each initial layout based on the score of each layout rendering;

[0087] In this embodiment of the invention, the fitness value of each layout is calculated by linear normalization based on the score of each layout rendering using the following formula:

[0088]

[0089] Among them, f i S is the fit of the i-th individual layout. i Let S be the score of the i-th pattern individual, maxS be the highest score in the pattern population, and minS be the lowest score in the pattern population.

[0090] Step 402: Select several excellent pattern individuals from the initial pattern population based on the fitness value of each pattern individual;

[0091] In this embodiment of the invention, a selection strategy is used to select excellent pattern individuals from the initial pattern population based on the fitness value of each pattern individual.

[0092] The principle of the selection strategy is that the higher the fitness value of a pattern individual, the higher the probability that the pattern individual will be selected. This allows for the selection of excellent pattern individuals suitable for iterative optimization for subsequent operations, thereby accelerating the algorithm optimization speed. The selection strategy can be a roulette strategy, a tournament selection strategy, or an elite selection strategy, etc., and this invention does not limit it.

[0093] Step 403: Perform cross-processing on multiple excellent individual layouts;

[0094] In this embodiment of the invention, cross-operation is performed on multiple excellent layout individuals, including:

[0095] When the generated random number is less than the preset crossover rate, crossover operation is performed on the crossover positions of each component in the excellent layout individual. The selection range of the crossover positions is a preset position in the encoding of each component.

[0096] Based on the metaheuristic algorithm's "survival of the fittest" principle, individuals are selected from the previous generation for crossover and mutation. The crossover and mutation operators have been redesigned according to a formatted encoding scheme.

[0097] The crossover operator selects two layout individuals and determines whether to crossover and the crossover position for each component in each layout individual. For each component in a layout individual, crossover is performed when the generated random number is less than the crossover rate; otherwise, the component is not crossovered. Since the first five digits of the corresponding code of each component are related to the layout preset conditions, the first five digits of the code of the same component corresponding to different layout individuals are the same fixed value. Moreover, the length of the last part of the component code—the playback parameter array (At) corresponding to the component type—varies with different component types. Therefore, the crossover position is defined as a random position from the sixth digit to the last digit. When the crossover part involves the width and height (W, H) of the area occupied by the component in the layout, the two are crossovered as a whole.

[0098] Step 404: Perform a mutation operation on the pattern individuals generated after the crossover operation to obtain new pattern individuals;

[0099] In this embodiment of the invention, a mutation operation is performed on the pattern individuals generated after the crossover operation to obtain new pattern individuals, including:

[0100] When the generated random number is less than the preset mutation rate, the mutation bit of the pattern individual generated after the crossover operation is mutated. The selection range of the mutation bit is the preset bit in the code of each component in the pattern individual generated after the crossover.

[0101] Generate a new version of the individual based on the mutated component code.

[0102] The mutation operator sequentially checks whether to mutate each component and each code bit of the individual layout generated after crossover. When the generated random number is less than the mutation rate, the code bit is mutated, and any value within the range of the code bit parameter is generated to replace the original parameter value. Considering that the first five bits of the corresponding code of each component are related to the layout preset conditions, the first five bits of the component code are fixed values. Therefore, the determination of whether to mutate starts from the sixth bit. Since the component width and height values ​​are generated according to the preset ratio, when either the width and height (W, H) code bit of the area occupied by the component in the layout is a mutated bit, the parameter value of the other code bit also changes proportionally.

[0103] Step 405: Convert multiple new layout individuals into multiple layout effect images for users to preview and rate, and calculate the appropriate value for each new layout individual based on the rating of each layout effect image.

[0104] Step 406: Repeat the above selection, crossover, and mutation operations until at least one recommended version with a score that meets the preset threshold is generated.

[0105] In this embodiment of the invention, the preset threshold is, for example, the full score (100 points).

[0106] like Figure 5 As shown, layout individuals are selected for crossover based on their appropriate values. Since the first five digits of each component are preset fixed values, the first five digits are not crossovered (501). Each component in the layout individual is judged to determine whether it is crossover and the crossover position is selected (502). The part after the crossover position is crossovered to obtain the new layout component after crossover (503). Crossover operation is performed on each component to obtain the layout individual after crossover. In a specific embodiment, the randomly selected crossover position is the ninth digit.

[0107] like Figure 6 As shown, mutation operation is performed on each component in the layout individual after the cross operation is performed (601). Since the first five bits of the code in each component are preset fixed values, the first five bits are not mutated (602). Each bit in the component starting from the sixth bit is judged one by one to see if it is mutated. When the random number generated by the corresponding bit is less than the mutation rate, the selected bit bit is mutated (603). After completing the bit by bit, the mutated layout component is obtained (604). When the mutated bit involves the width and height values ​​of the component with a preset fixed ratio, the width and height values ​​are adjusted to ensure that the ratio is fixed (605). Cross operation is performed on each component to obtain the cross-up layout individual.

[0108] In a specific embodiment, the randomly selected variant bits are the sixth and eighth bits, and the height value of the ninth bit changes with the width value of the eighth bit.

[0109] Repeat the layout optimization steps until a perfect layout is generated and stored in the historical layout database along with the corresponding preset conditions.

[0110] like Figure 7As shown, the passenger information system's playback layout recommendation method includes: first, the system user presets mandatory parameters such as layout size, required component type, quantity, attributes, and orientation, as well as optional parameters such as component playback attributes (701); based on the preset parameters, a layout encoding format is formed (702), and values ​​are assigned to the corresponding parameters of each encoding position to generate individual layouts, generating a population of layout individuals to form an initial layout population (703); the generated layouts are decoded to obtain a visual layout effect image and pushed to the user, resulting in a layout score, and the appropriateness is calculated based on the score. The appropriate value of the corresponding layout is calculated (704); it is determined whether the generated layout has received a perfect score from the user (705). If no perfect score layout is obtained, the layout is optimized based on the metaheuristic algorithm. The layout population is selected, crossovered, and mutated according to the layout appropriate value to generate a new generation of optimized layout population (706); the layout is continuously optimized based on the user score until a perfect score layout is obtained. The perfect score layout and its corresponding preset conditions are stored in the database (707). When the preset conditions are the same in the future, the historical perfect score layout is pushed first to improve the system recommendation efficiency.

[0111] In some embodiments of the present invention, the passenger information system playback format recommendation method further includes:

[0112] Store recommended layouts that meet the preset threshold in the layout database;

[0113] Receive layout requirements from users and match the layout requirements with layouts in the layout database that meet preset thresholds;

[0114] Generate a layout mockup based on the successfully matched layout, and push the layout mockup to the user's terminal.

[0115] like Figure 8 As shown, the specific implementation steps of the passenger information system's playback format recommendation method are as follows:

[0116] S1: The system user defines preset parameters, presets the layout size, i.e. the width and height of the layout (801), then presets the component types, quantities, attributes and orientation information to be included in the required layout (802), and finally presets optional parameters, i.e. the playback parameters of each component, according to the user's needs (803).

[0117] In a specific embodiment: the component types include video, image, ATS, time, and message, with type codes of 1, 2, 3, 4, and 5 respectively; the component attributes include the component's aspect ratio, minimum aspect ratio, and maximum aspect ratio; the orientation information includes horizontal and vertical positions, where the horizontal position includes three positions: left, center, and right, encoded with 1, 2, and 3 respectively, and the vertical position includes three positions: top, center, and bottom, encoded with 1, 2, and 3 respectively.

[0118] S2: Define the layout encoding format according to the preset parameters, and randomly assign values ​​to the required and optional parameters within the range to generate random layout individuals (804). Decode the layout individuals to obtain a visual layout effect image (805). Users rate the layout effect image according to their preferences and needs (806). Calculate the appropriate value for the layout individuals based on the user ratings. Optimize the layout using a metaheuristic algorithm and push the optimized layout to the user. Continue the optimization and push process until a layout with a full score that satisfies the user is generated (807).

[0119] S3: After obtaining the full score format, store the full score format and the current preset conditions into the database (808). When the user inputs preset conditions and there are historical records, push the corresponding historical full score format in the database first (809).

[0120] The passenger information system playback layout recommendation method provided by this invention can be widely applied to scenarios such as editing and creating passenger information layouts in rail transit. By defining the layout encoding format, generation rules, and decoding methods, it can generate individual layouts that meet preset conditions and have complete parameter configurations based solely on preset layout parameters. This achieves convenient, diversified, and visual layout generation. Furthermore, the method of setting layout requirements using preset parameters is quite flexible, enabling real-time response to newly proposed layout requirements and generating layouts that meet user needs at a speed far exceeding traditional layout design and configuration. By designing crossover and mutation operators based on the layout encoding format, it solves the problem that layout encoding differs from traditional metaheuristic algorithm encoding methods and cannot directly use traditional crossover and mutation operators. It also continuously optimizes the layout population using metaheuristic algorithms, enabling the generation and push of better-rated individual layouts in batches. By backing up perfect-score layouts and their preset parameters, it establishes a layout history database. When the same layout requirement exists again, it can quickly respond and push historical perfect-score layouts, effectively avoiding repeated scoring operations and greatly improving recommendation efficiency.

[0121] The following describes the passenger information system playback format recommendation device provided by the present invention. The passenger information system playback format recommendation device described below can be referred to in correspondence with the passenger information system playback format recommendation method described above.

[0122] Figure 9 This is a schematic diagram of a passenger information system playback format recommendation device provided in an embodiment of the present invention, such as... Figure 9 As shown, the passenger information system playback format recommendation device provided in this embodiment of the invention includes:

[0123] The generation module 901 is used to generate an initial layout population based on the layout preset parameters;

[0124] The conversion module 902 is used to convert the initial layout population into multiple layout effect images for users to preview and rate according to the layout decoding rules, and push the multiple layout effect images for users to preview and rate to the user terminal.

[0125] The optimization module 903 is used to respond to the rating of each layout effect image in the user terminal feedback, use a metaheuristic algorithm to iteratively optimize the initial layout population, generate at least one recommended layout, and recommend at least one recommended layout to the user terminal.

[0126] The generation module 901 allows system users to preset relevant parameters according to layout requirements. The system provides users with preset parameters, including mandatory and optional parameters. Mandatory parameters include layout size, required component types, required number of each type of component, display ratio of each component, minimum size of each component, maximum size of each component, horizontal position definition of each component, and vertical position definition of each component. Optional parameters include playback parameters corresponding to the component type of each component.

[0127] The optimization module 903 generates layouts that meet user requirements randomly based on user-preset layout parameters. The generated layouts are then decoded and sent to the user for preview as visual mockups. Users rate the layouts within a specified range, with layouts that match their preferences receiving higher scores. The system employs a metaheuristic algorithm to optimize layouts based on user ratings, providing users with a new batch of layouts. The system continuously optimizes layouts in line with user preferences until a perfect score is achieved, representing the highest score within the range of possible ratings.

[0128] In some embodiments of the present invention, a full-score layout backup module is also included. After the system user obtains a satisfactory full-score layout, the system stores the full-score layout and its corresponding user preset parameters together in the layout history database. When the layout preset parameters are the same as the user preset parameters in the layout history database, the system will prioritize pushing the corresponding full-score layout from the layout history database to the system user.

[0129] The passenger information system playback layout recommendation device provided in this embodiment of the invention generates an initial layout population based on preset layout parameters; converts the initial layout population into multiple layout effect images for user preview and rating according to layout decoding rules, and pushes the multiple layout effect images for user preview and rating to the user terminal; responding to the rating of each layout effect image fed back by the user terminal, iteratively optimizes the initial layout population using a metaheuristic algorithm to generate at least one recommended layout, and recommends at least one recommended layout to the user terminal, thereby realizing intelligent layout generation, shortening the layout production and update process, saving labor costs, and continuously optimizing according to user preferences to improve the operational efficiency of the passenger information system.

[0130] Figure 10 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 10 As shown, the electronic device may include a processor 1010, a communications interface 1020, a memory 1030, and a communication bus 1040, wherein the processor 1010, the communications interface 1020, and the memory 1030 communicate with each other via the communication bus 1040. The processor 1010 can call logical instructions in the memory 1030 to execute a passenger information system playback layout recommendation method. This method includes: generating an initial layout population based on layout preset parameters; converting the initial layout population into multiple layout effect images for user preview and rating according to layout decoding rules; pushing the multiple layout effect images for user preview and rating to the user terminal; responding to the rating of each layout effect image fed back by the user terminal, iteratively optimizing the initial layout population using a metaheuristic algorithm to generate at least one recommended layout, and recommending at least one recommended layout to the user terminal.

[0131] Furthermore, the logical instructions in the aforementioned memory 1030 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0132] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0133] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0134] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A passenger information system play pattern recommendation method characterized by, The method comprises the following steps: generating an initial layout population according to layout preset parameters; converting the initial layout population into a plurality of layout effect pictures for user preview scoring according to layout decoding rules, and pushing the plurality of layout effect pictures to a user terminal; in response to scores of each layout effect picture fed back by the user terminal, iteratively optimizing the initial layout population using a meta-heuristic algorithm to generate at least one recommended layout, and recommending the at least one recommended layout to the user terminal; the initial layout population comprises a plurality of initial layout individuals, and the iteratively optimizing the initial layout population using the meta-heuristic algorithm to generate the at least one recommended layout comprises: calculating a fitness value of each initial layout individual according to the score of each layout effect picture; selecting a plurality of excellent layout individuals from the initial layout population according to the fitness value of each layout individual; performing a crossover operation on the plurality of excellent layout individuals; performing a mutation operation on the layout individuals generated after the crossover operation to obtain newborn layout individuals; converting the plurality of newborn layout individuals into a plurality of layout effect pictures for user preview scoring, and calculating a fitness value of each newborn layout individual according to the score of each layout effect picture; repeating the selection, crossover and mutation operations until at least one recommended layout with a score meeting a preset threshold is generated.

2. The passenger information system layout recommendation method according to claim 1, characterized by, the selecting the plurality of excellent layout individuals from the initial layout population according to the fitness value of each layout individual comprises: selecting excellent layout individuals from the initial layout population using a selection strategy according to the fitness value of each layout individual.

3. The passenger information system layout recommendation method according to claim 1, characterized by, the performing the crossover operation on the plurality of excellent layout individuals comprises: performing a crossover operation on a crossover position of each component in the excellent layout individuals when a random number is less than a preset crossover rate, and the crossover position is selected from a preset bit in the component code of each component.

4. The passenger information system layout recommendation method according to claim 3, characterized by, the performing the mutation operation on the layout individuals generated after the crossover operation to obtain the newborn layout individuals comprises: performing a mutation operation on a mutation position of the layout individuals generated after the crossover operation when a random number is less than a preset mutation rate, and the mutation position is selected from a preset bit in the component code of each component in the layout individuals generated after the crossover operation; generating the newborn layout individuals according to the mutated component codes.

5. The passenger information system layout recommendation method according to claim 1, characterized by, the generating the initial layout population according to the layout preset parameters comprises: generating a layout code format according to the layout preset parameters; assigning values to regions occupied by each component and corresponding playing parameters in the layout code format to generate a layout individual according to the value range of each parameter in the layout code format; generating an initial layout population according to the layout individuals corresponding to a preset population size.

6. The passenger information system layout recommendation method according to claim 1, characterized by, the converting the plurality of newborn layout individuals into a plurality of layout effect pictures for user preview scoring comprises: decoding the plurality of newborn layout individuals to obtain component information in each newborn layout individual; judging whether there is an overlap between components in a layout according to the component parameters of each component in the component information; If yes, the value of the layout individual code bit is updated according to the adjusted layout, and the updated layout individual is decoded to obtain updated component information and generate a layout effect picture for user preview scoring; The layout adjustment method comprises: when the number of overlapping components is two, the overlapping components in the layout preview picture are adaptively adjusted using the principle of equal division of the overlapping area, and the direction of the division line is determined according to the width-to-height ratio of the overlapping area; when the number of overlapping components exceeds two, the principle of left-top position sorting priority is used, and the component with the leftmost position in the horizontal direction occupies the overlapping area involved, and the component with the uppermost position in the vertical direction occupies the overlapping area involved.

7. The passenger information system layout recommendation method according to claim 1, characterized by, Also comprising: storing the recommended layout whose score meets the preset threshold into a layout database; receiving a layout requirement of a user, and matching the layout requirement with the layout in the layout database that meets the preset threshold; generating a layout effect picture according to the layout that matches successfully, and pushing the layout effect picture to the user terminal.

8. A passenger information system play pattern recommendation apparatus characterized by comprising: Comprising: a generating module configured to generate an initial layout population according to layout preset parameters; a conversion module configured to convert the initial layout population into a plurality of layout effect pictures for user preview scoring according to a layout decoding rule, and push the plurality of layout effect pictures for user preview scoring to a user terminal; an optimization module configured to use a meta-heuristic algorithm to iteratively optimize the initial layout population in response to the score of each layout effect picture fed back by the user terminal, generate at least one recommended layout, and recommend the at least one recommended layout to the user terminal; the initial layout population comprises a plurality of initial layout individuals, and the use of the meta-heuristic algorithm to iteratively optimize the initial layout population to generate at least one recommended layout comprises: calculating the fitness value of each initial layout individual according to the score of each layout effect picture; selecting a plurality of excellent layout individuals from the initial layout population according to the fitness value of each layout individual; performing a crossover operation on the plurality of excellent layout individuals; performing a mutation operation on the layout individuals generated after the crossover operation to obtain new layout individuals; converting a plurality of new layout individuals into a plurality of layout effect pictures for user preview scoring, and calculating the fitness value of each new layout individual according to the score of each layout effect picture; repeating the selection, crossover, and mutation operations until at least one recommended layout whose score meets the preset threshold is generated.

9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor implements the passenger information system playing layout recommendation method of any one of claims 1 to 7 when executing the program.